Bug 417731 - Dragging icon of Flatpak app from Kickoff/Kicker etc. to Dolphin and selecting "Copy" produces broken desktop file ("Link" works)
Summary: Dragging icon of Flatpak app from Kickoff/Kicker etc. to Dolphin and selectin...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) widget (other bugs)
Version First Reported In: 5.18.0
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks: 446031
  Show dependency treegraph
 
Reported: 2020-02-16 08:26 UTC by Lach Sławomir
Modified: 2025-08-08 15:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.5
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lach Sławomir 2020-02-16 08:26:29 UTC
SUMMARY
When I drag and drop Steam icon from left panel of menu and select copy on folderview, broken link was created. Steam is pinned to the current activity and installed by flatpak in system installation. I must open properties on the icon in menu and copy path to newly created icon on desktop.

The path for icon on desktop starts with ./../../app/
But it should start with /var/app ...


STEPS TO REPRODUCE
1. Install Steam from flathub system-wide
2. Pin Steam to current activity 
3. Drag it to folder view placed on desktop and select copy option

OBSERVED RESULT
Link with broken path was created

EXPECTED RESULT
At least Plasma should check link is correct and show message. Better option is append prefix used to run programs from menu (working directory)

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
This error exists on Plasma 5.18, but I think it also exist on 5.17 .
Comment 1 Nate Graham 2023-09-19 20:21:28 UTC
Hello and thank you again for the bug report! Unfortunately we were not able to address it yet, nor even manage to reproduce the issue ourselves. Can we ask you to please check if this issue is still happening with Plasma 5.27?

If it is, please change the status to REPORTED. Thanks a lot!
Comment 2 Lach Sławomir 2023-09-29 14:08:16 UTC
https://www.rcgstore.pl/Screenshot_20230929_160524.png
https://www.rcgstore.pl/Screencast_20230929_155928.webm

Sorry for giving link to my site, but movie reached limit of file size.
Comment 3 Lach Sławomir 2023-09-29 14:09:21 UTC
So I have installed Plasma 5.27.8 with Frameworks 5.110.0 and Qt 5.15.10 .
Comment 4 Nate Graham 2023-09-29 19:13:26 UTC
Unfortunately those links are broken or inaccessible for me.
Comment 5 Lach Sławomir 2023-10-01 07:18:06 UTC
Sorry. Previous media was added here by mistake. I put it into correct bug topic. I try to prepare correct description in future, if I realize what problem was.
Comment 6 Lach Sławomir 2023-10-01 07:21:37 UTC
http://rcgstore.pl/Screencast_20231001_091906.webm

Bug still occur. Sorry for language is not English. Skopiuj means copy.
Comment 7 Nate Graham 2023-10-11 18:11:08 UTC
Can reproduce, thanks.
Comment 8 Nate Graham 2025-07-23 14:41:31 UTC
In progress with https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5700.
Comment 9 Marco Martin 2025-08-07 14:38:29 UTC
Git commit 9a03ad4f5674ef3c96ad7d4ac6cffe24be96918d by Marco Martin.
Committed on 07/08/2025 at 14:38.
Pushed by mart into branch 'master'.

applets/kicker: Resolve symlinks when possible

flatpak puts in its applications/ folder a relative symlink
to the desktop file starting with "../../" so when an entry from
flatpak is dragged and copied to the desktop, it will be a broken
link.

When resolving urls for ApplicationEntry and RunnerModel results,
Resolve the symlink and return an url with the actual full path of the target
Related: bug 505247

Needs https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3115

M  +18   -1    applets/kicker/appentry.cpp
M  +26   -2    applets/kicker/runnermatchesmodel.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/9a03ad4f5674ef3c96ad7d4ac6cffe24be96918d
Comment 10 Bug Janitor Service 2025-08-07 14:39:15 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5741
Comment 11 Marco Martin 2025-08-07 14:58:30 UTC
Git commit 96422b757c4f922b41e7e7963db161b486bd4b95 by Marco Martin.
Committed on 07/08/2025 at 14:38.
Pushed by mart into branch 'Plasma/6.4'.

applets/kicker: Resolve symlinks when possible

flatpak puts in its applications/ folder a relative symlink
to the desktop file starting with "../../" so when an entry from
flatpak is dragged and copied to the desktop, it will be a broken
link.

When resolving urls for ApplicationEntry and RunnerModel results,
Resolve the symlink and return an url with the actual full path of the target
Related: bug 505247

Needs https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3115


(cherry picked from commit 9a03ad4f5674ef3c96ad7d4ac6cffe24be96918d)

370d6043 Add an Utils singleton to resolve symlinks
114d730b Apply 1 suggestion(s) to 1 file(s)
38e7f4aa move the resolve code in appentry and runnermatches

Co-authored-by: Marco Martin <notmart@gmail.com>

M  +18   -1    applets/kicker/appentry.cpp
M  +26   -2    applets/kicker/runnermatchesmodel.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/96422b757c4f922b41e7e7963db161b486bd4b95
Comment 12 Nate Graham 2025-08-08 15:59:21 UTC
This is also fixed by that commit.