Bug 315482

Summary: gwenview should follow symlinks on the "copy to..." operation.
Product: [Applications] gwenview Reporter: Thiago Jung Bauermann <thiago.bauermann>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: arthur, benni, luke-jr+kdebugs, nate, shlomif, simonandric5
Priority: NOR    
Version: 4.10.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thiago Jung Bauermann 2013-02-20 00:01:50 UTC
When copying an image via gwenview's "Copy to..." menu option, if the file it is viewing is actually a symlink to the real file, it copies the symlink and not the image.

I use git-annex to manage my pictures, which stores the files in a git repository and keeps links to them in the working tree, so this is important since it means I can't use gwenview's copy functionality, which is very convenient, with any of my pictures (this is admitedly an uncommon workflow).

Interestingly, the "Exporto to HTML" option does follow the symlinks and work as I would expect.

Reproducible: Always

Steps to Reproduce:
1. Open a symlink to an image in gwenview.
2. Use gwenview to copy it to somewhere else.
3. Check the destination folder.
Actual Results:  
A symlink is copied.

Expected Results:  
The symlink is followed and a regular file is created in the destination folder.
Comment 1 Shlomi Fish 2015-09-14 18:51:01 UTC
See the patch to KIO here: https://git.reviewboard.kde.org/r/125227/ .
Comment 2 Nate Graham 2017-09-08 22:07:05 UTC
*** Bug 335808 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2017-09-08 22:08:06 UTC
Thanks for the patch, Shlomi! Sadly, reviewboard is gone now, recently replaced with phabricator. If your patch was never accepted, I encourage you to submit it again to http://phabricator.kde.org/! I will make sure folks see it.
Comment 4 Shlomi Fish 2017-10-13 09:34:20 UTC
(In reply to Nate Graham from comment #3)
> Thanks for the patch, Shlomi! Sadly, reviewboard is gone now, recently
> replaced with phabricator. If your patch was never accepted, I encourage you
> to submit it again to http://phabricator.kde.org/! I will make sure folks
> see it.

Hi Nate!

Please see https://phabricator.kde.org/D8274 -  note that I have problems with my right hand.