PINE64
Help with (.desktop) Desktop Shortcut - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: PostmarketOS on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=124)
+---- Thread: Help with (.desktop) Desktop Shortcut (/showthread.php?tid=17860)



Help with (.desktop) Desktop Shortcut - jojuma - 01-27-2023

Hello,

I am trying to place shortcuts to some websites on my app drawer, but they don't show up. I created some simple .desktop files like this:

Code:
[Desktop Entry]
Name=Pine64 Forum
Type=Link
URL=https://forum.pine64.org
Icon=/home/user/.local/share/app_logos/logo.png

This is, what Firefox creates, when I do this on my desktop pc. The "desktop-file-validate" tool doesn't report errors.
I tried placing the file in "/usr/share/applications" and in "/home/user/.local/share/applications".

I rebooted several times, but I don't get to see anything in the app drawer.

Can someone help me with this?

Thanks!


RE: Help with (.desktop) Desktop Shortcut - AndyM - 06-09-2023

I would think you need to specify how to open the URL:
...
Type=Application
Exec - firefox %u
...
where %u is replace by the URL
Put the entry in "/home/user/.local/share/applications"