Bug 499133

Summary: Right-Clicking an .desktop shortcut file should have a "Open shortcut's folder" option on the Context Menu
Product: [Plasma] plasmashell Reporter: Fernando M. Muniz <fernandommuniz>
Component: Desktop icons & Folder View widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: hein, nate
Priority: NOR    
Version First Reported In: 6.2.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The system knows the path of the shortcut.
.desktop shortcut for game "Inside"
.desktop shortcut.

Description Fernando M. Muniz 2025-01-25 14:35:04 UTC
Created attachment 177671 [details]
The system knows the path of the shortcut.

I've noticed that when right-clicking this .lnk shortcut file, the Context Menu doesn't offer an option to open the folder the shorcut leads to.

So I'm requesting the addition of an option that opens the folders that .lnk shortcuts leads to.
Comment 1 Fernando M. Muniz 2025-01-25 16:00:22 UTC
Noticed that the shortcut file ended in .desktop
Comment 2 Nate Graham 2025-01-27 21:14:07 UTC
What create .lnk files? Where did you get this from? Can you attach it for inspection?
Comment 3 Fernando M. Muniz 2025-01-27 21:21:13 UTC
(In reply to Nate Graham from comment #2)
> What create .lnk files? Where did you get this from? Can you attach it for
> inspection?

It was actually a .desktop file, and it can be created by installing a Windows software with Wine and click the option to create a shortcut.
Steam also creates this .desktop shortcut, but it doesn't leave the address to the file like the attachment shows.
Comment 4 Nate Graham 2025-01-27 21:24:01 UTC
Please attach the file
Comment 5 Fernando M. Muniz 2025-01-27 21:36:53 UTC
Created attachment 177729 [details]
.desktop shortcut for game "Inside"
Comment 6 Fernando M. Muniz 2025-01-27 22:07:37 UTC
Created attachment 177730 [details]
.desktop shortcut.
Comment 7 Nate Graham 2025-01-28 00:41:00 UTC
So this is a shortcut that leads to an app, not a folder. As such, a feature to open the folder the shortcut leads to wouldn't be applicable to it. In this case it just opens `wine` in general, not even a specific version of it that has a known parent folder.
Comment 8 Fernando M. Muniz 2025-01-28 00:46:16 UTC
(In reply to Nate Graham from comment #7)
> So this is a shortcut that leads to an app, not a folder. As such, a feature
> to open the folder the shortcut leads to wouldn't be applicable to it. In
> this case it just opens `wine` in general, not even a specific version of it
> that has a known parent folder.

What is the purpose of that "Caminho de trabalho" highlighted in the first attachment? It points to where the files were installed.
Comment 9 Nate Graham 2025-01-28 00:48:59 UTC
It tells the system to `cd` to that folder before executing the command (in this case, `wine`) Sometimes this is needed for compatibility's sake. It's not the actual path that `wine` lives at.