Summary: | Drag-n-drop for a URL onto .desktop icon opens mangled URL | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Andrei Rybak <rybak.a.v> |
Component: | general | Assignee: | David Edmundson <kde> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | nate, plasma-bugs-null |
Priority: | NOR | ||
Version First Reported In: | 5.22.4 | ||
Target Milestone: | 1.0 | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Screenshot of "kioexec Copying" notification |
Description
Andrei Rybak
2021-08-15 23:07:59 UTC
Also, per comments in https://bugs.kde.org/show_bug.cgi?id=420131 this used to work in 5.19.5. Hello Andrei! Works for me when dragging that link from the page in Firefox onto: - A Chromium icon pinned on the task manager - A Chromium icon on the desktop as a .desktop file If I drag it onto a Chromium icon on the desktop that's a widget, it hangs forever though. In no circumstances do I see a kioexec notification. Can you confirm whether or not dragging the link onto a Chromium icon pinned to your Task Manager works, or is that broken in the same way, or is it broken in a different way? @Nate, both the pinned task manager icon and a _differently created_ desktop icon work. By "differently created" I mean created via "Right click in Application Launcher > + Add to Desktop". I didn't realize that the contents of .desktop file would matter that much. However, it apparently matters for this use case. The bug as described above only reproduces with a .desktop file I've created myself in a text editor. The whole contents of the file are: #!/usr/bin/env xdg-open [Desktop Entry] Exec=/snap/bin/chromium Terminal=false Type=Application Icon=/snap/chromium/current/chromium.png It is a bare minimum of what's needed for an otherwise working .desktop icon. The icon created via Application Launcher is actually a symlink to /var/lib/snapd/desktop/applications/chromium_chromium.desktop, which has 296 lines. I'm trying to figure out which of these are needed for the icon to behave differently on drag-n-drop of URLs (drag-n-drop of files works fine with the bare minimum .desktop file). Figured out what was missing: "%U" at the end of the "Exec" value: #!/usr/bin/env xdg-open [Desktop Entry] Exec=/snap/bin/chromium %U Terminal=false Type=Application Icon=/snap/chromium/current/chromium.png Now my icon works. Sorry for the noise. Yup, that'll do it. The "%U" is needed for letting the app handle URLs. |