.desktop panel shortcuts no longer works?

If i right click on it i can “open with” and then set firefox manually and it will work but i cant set it to remain associated with firefox. This is its “properties/File type associations”. I have set it to firefox but it still fails

yep, it works fine in terminal
❰greg❙~/.local/share/plasma_icons❱✔≻ ~/.local/share/plasma_icons/https:⁄⁄web.whatsapp.com⁄.desktop

If it works in the terminal, try removing it from the panel and re-add it.

Ok re-added, I get a message pop-up that iv never seen before
ZZ_20201105-055842

I click “Continue” and it throws the same error as before.

Out of ideas. Sorry.

If you click “Continue” I think the Desktop (as well as the File Manager - but not xdg-open in a terminal) will just mark the desktop file executable and you will not see that prompt again. It’s “security”.

Checkout the later part of the thread below. We were just discussing this
Jar File won't launch from a loader.

Im not sure if i understood correctly but yes the .desktop file is marked as executable (im never sure if its supposed to be) and it does not show that “security” pop-up again. So i suspect people are on to this problem.

I shall just move these few shortcuts to my browsers bookmarks instead of my panel for now.

Thx.

Unless anyone does have the fix for this, of course.

I dont want people to think i dont want it back the way i have had it for ages.

Seems it actually is a valid one :wink:

https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#recognized-keys

You should not put desktop files inside an icons directory…
The correct place would be either ~/Desktop/ or ~/.local/share/applications/
And also rename that desktop file to be without slashes… eg rename it to web.whatsapp.com.desktop or similar…

1 Like

I didn’t write the .desktop file, or name it, or place it, kde did. I just dragged and dropped the browser tab onto the panel.

That might be a bug with that action then, but do as i say and see results :wink:

Result is, if i move the .desktop file out from the plasma_icons folder it no longer shows on my panel as an icon.

Putting it inside Desktop creates the shortcut on my desktop (as you’d expect) & applications is for my application-menu list.
It seems to me it needs to be in the plasma_icons to be a panel icon?

To be honest i don’t know what that directory is for, i only know how desktop files work and that slashes in file names mean subdirectories…

Ok so i renamed the .desktop file but when i clicked it, it still errored and when i checked its properties it re-created the old file with the original name. Weird ehh?

❰greg❙~/.local/share/plasma_icons❱:heavy_check_mark:≻ mv https:⁄⁄web.whatsapp.com⁄.desktop web.whatsapp.com.desktop
❰greg❙~/.local/share/plasma_icons❱:heavy_check_mark:≻ ls -l
total 136
-rwxr–r-- 1 greg greg 4646 Nov 27 2019 brave.desktop*
-rwxr–r-- 1 greg autologin 810 Aug 26 2018 cherrytree.desktop*
-rwxr–r-- 1 greg greg 8490 Sep 22 22:15 chromium.desktop*
-rwx------ 1 greg greg 191 Nov 5 04:41 conversations.desktop*
-rwxr-xr-x 1 greg autologin 13404 May 14 2019 ‘firefox (1).desktop’*
-rwxr–r-- 1 greg greg 2031 Oct 10 2019 leafpad.desktop*
-rwxr–r-- 1 greg autologin 10508 Aug 28 2018 octopi.desktop*
-rwxr-xr-x 1 greg autologin 2740 Aug 26 2018 org.kde.dolphin.desktop*
-rwxr-xr-x 1 greg autologin 6371 Aug 26 2018 org.kde.kate.desktop*
-rwxr-xr-x 1 greg autologin 9757 Aug 29 2018 org.kde.konsole.desktop*
-rwxr–r-- 1 greg greg 20957 Jun 11 23:31 org.manjaro.pamac.manager.desktop*
-rwxr-xr-x 1 greg autologin 9017 Aug 26 2018 systemsettings.desktop*
-rwx------ 1 greg autologin 361 Oct 17 2018 thunderbird.desktop*
-rwxr–r-- 1 greg autologin 1175 Sep 2 2018 virtualbox.desktop*
-rwx------ 1 greg greg 155 Nov 5 09:01 web.whatsapp.com.desktop*
-rwxr–r-- 1 greg greg 554 Aug 18 2019 windows7.desktop*
❰greg❙~/.local/share/plasma_icons❱:heavy_check_mark:≻ ls -l
total 140
-rwxr–r-- 1 greg greg 4646 Nov 27 2019 brave.desktop*
-rwxr–r-- 1 greg autologin 810 Aug 26 2018 cherrytree.desktop*
-rwxr–r-- 1 greg greg 8490 Sep 22 22:15 chromium.desktop*
-rwx------ 1 greg greg 191 Nov 5 04:41 conversations.desktop*
-rwxr-xr-x 1 greg autologin 13404 May 14 2019 ‘firefox (1).desktop’*
-rw------- 1 greg greg 131 Nov 5 09:02 https:⁄⁄web.whatsapp.com⁄.desktop <<<<< its recreated it!
-rwxr–r-- 1 greg greg 2031 Oct 10 2019 leafpad.desktop*
-rwxr–r-- 1 greg autologin 10508 Aug 28 2018 octopi.desktop*
-rwxr-xr-x 1 greg autologin 2740 Aug 26 2018 org.kde.dolphin.desktop*
-rwxr-xr-x 1 greg autologin 6371 Aug 26 2018 org.kde.kate.desktop*
-rwxr-xr-x 1 greg autologin 9757 Aug 29 2018 org.kde.konsole.desktop*
-rwxr–r-- 1 greg greg 20957 Jun 11 23:31 org.manjaro.pamac.manager.desktop*
-rwxr-xr-x 1 greg autologin 9017 Aug 26 2018 systemsettings.desktop*
-rwx------ 1 greg autologin 361 Oct 17 2018 thunderbird.desktop*
-rwxr–r-- 1 greg autologin 1175 Sep 2 2018 virtualbox.desktop*
-rwx------ 1 greg greg 155 Nov 5 09:01 web.whatsapp.com.desktop*
-rwxr–r-- 1 greg greg 554 Aug 18 2019 windows7.desktop*
❰greg❙~/.local/share/plasma_icons❱:heavy_check_mark:

Try again while using escapes for the slashes, or perhaps simply put it inside single quotes:
eg: mv ‘https:⁄⁄web.whatsapp.com⁄.desktop’ web.whatsapp.com.desktop

well lets just forget whatsapp for now and use conversations (google messages) because that is acting in exactly the same way, with same error but has no odd characters in its name.

❰greg❙~/.local/share/plasma_icons❱✔≻ cat conversations.desktop  
#!/usr/bin/env xdg-open
[Desktop Entry]
Icon=/home/greg/.cache/favicons/messages_96dp.png
Name=messages.google.com
Type=Link
URL=https://messages.google.com/web/conversations?redirected=true
❰greg❙~/.local/share/plasma_icons❱✔≻

That should work, as a last resort maybe put the web address inside quotes because of the ?redirected=true part at end…

No, but thx for trying :slight_smile: Works fine if i execute it from terminal but if i click the panel icon it fails.

❰greg❙~/.local/share/plasma_icons❱✔≻ cat conversations.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Icon=/home/greg/.cache/favicons/messages_96dp.png
Name=messages.google.com
Type=Link
URL='https://messages.google.com/web/conversations?redirected=true'

Well in that case, because the .desktop file is correct, it is a bug with plasma…

I was able to repeat the problem. It seems more wide-spread than OP describes.

It also affects other widgets, like Spectacle. It didn’t work at all. Nothing. I removed it and added it back and I got the “security” dialog, and the next time I got the error that the file is not valid.

The way I added it was to go to the menu, search for Spectacle, right click Spectacle and select “Add to Panel (Widget)”. Konsole, Kate, Dolphin all seem okay.

Maybe: Bug 428550 - Launching Desktop icons fails follow to 427797. Per Merge Request - FIXED-IN: 5.20.3

I had also created a “Link to Location” desktop file. Same issues. As mention in 427797 they will run from Dolphin.