Bug 312330 - Folder View: Add "Show Original File" to context menu when right-clicking on a symlink
Summary: Folder View: Add "Show Original File" to context menu when right-clicking on ...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder (show other bugs)
Version: master
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
: 336194 412660 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-29 09:29 UTC by Dmitry Mikhirev
Modified: 2023-04-04 17:53 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Mikhirev 2012-12-29 09:29:46 UTC
In ROSA Linux 2012.1 with KDE 4.9.4 popup menu option "Show Original File" pass wrong directory path to file manager while in Konqueror it works korrectly.

Reproducible: Always

Steps to Reproduce:
1. Create a symbolic link with absolute path to some file on desktop.
2. Right click on it in folderview.
3. Select "Show Original File".
Actual Results:  
File manager assotiated with inode/directory opened with error message "The file or folder /home/username/Desktop<path from root here> does not exist."

Expected Results:  
File manager opened displaying directory containing original file.

The same menu option in Konqueror works as expected, the bug is specific for folderview.
Comment 1 Ignat Semenov 2012-12-29 13:19:08 UTC
Aha, this is because the desktop:/ kioslave is used by default in folderview (when you select Show Desktop" on the Location config page in the folderview settings), and it most probably appends the desktop path during this operation mistakenly.

OK, I will see if this is reproducable, thank you for the report.
Comment 2 Ignat Semenov 2012-12-30 11:16:20 UTC
I can not reproduce this with the following steps:

set desktop layout to "Folder View"
touch ~/Desktop/foo.txt
ln -s ~/Desktop/foo.txt ~/Desktop/bar.txt
right-click foo.txt on the desktop
no "Show Original File" menu entry is present.

This is most probably a ROSA addition, please file a bug in the ROSA bug tracker.
Comment 3 Dmitry Mikhirev 2012-12-30 19:06:10 UTC
That's wrong. You should click on bar.txt to see this item, not foo.txt.
BTW I'm a ROSA maintainer and I have asked our developers if they changed something in folderview or libkonq before posting this bug here. In fact. I've just described bug already reported at ROSA bugzilla: http://bugs.rosalinux.ru/show_bug.cgi?id=977.
Comment 4 Dmitry Mikhirev 2012-12-30 19:11:17 UTC
Sorry, one more addition. This menu item can be hidden because both link and target file are placed in the same directory. Try to create symlink for file somewhere outside ~/Desktop.
Comment 5 Ignat Semenov 2012-12-31 13:26:40 UTC
I'd like to clarify:

Did you create the symbolic link with the "ln-s" command (a symbolic link in the UNIX sense) or did you use a .desktop file (iirc sometimes KDE creates .desktop files instead of real symbolic links)?

>I have asked our developers if they changed something in folderview or libkonq

May I ask what the answer was? Has anything been changed by the rosa team?

Anyway, I guess I know here the problem is, now I need to reproduce the bug to start fixing it.
Comment 6 Dmitry Mikhirev 2012-12-31 16:29:47 UTC
(In reply to comment #5)
> I'd like to clarify:
> 
> Did you create the symbolic link with the "ln-s" command (a symbolic link in
> the UNIX sense) or did you use a .desktop file (iirc sometimes KDE creates
> .desktop files instead of real symbolic links)?

It was a symbolic link. You may try to create it with this commands (note that target file must be not in ~/Desktop);
$ touch ~/foo
$ ln -s ~/foo ~/Desktop/foo
> 
> >I have asked our developers if they changed something in folderview or libkonq
> 
> May I ask what the answer was? Has anything been changed by the rosa team?

They told me that only Dolphin code was changed. You cat take a look at patches here: https://abf.rosalinux.ru/import/kdebase4/tree/rosa2012.1
Comment 7 Eike Hein 2015-10-24 15:02:19 UTC
*** Bug 336194 has been marked as a duplicate of this bug. ***
Comment 8 Eike Hein 2015-10-24 15:02:25 UTC
*** Bug 350517 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2017-12-13 14:01:33 UTC
Still can't reproduce the existence of the "Show Original File" menu item in Plasma 5.11. We should add one.
Comment 10 Nate Graham 2017-12-13 14:05:03 UTC
Related feature request for Dolphin: https://bugs.kde.org/show_bug.cgi?id=354260
Comment 11 Nate Graham 2019-10-06 22:32:50 UTC
*** Bug 412660 has been marked as a duplicate of this bug. ***