Sample Header Ad - 728x90

Can't get .desktop files to launch in KDE

0 votes
0 answers
45 views
I've recently set up a new computer running Kubuntu 25.04 (KDE 6.3.4), and I have a few .desktop files I've brought over from my previous computer (which was using Gnome), where they worked fine. However, now I can't get them to be launchable. They're basically just designed to launch Chrome with a few specific settings. For example:
[Desktop Entry]
Categories=Network;Chat;
Comment[en_US]=A shortcut for Disney+
Comment=A shortcut for Disney+
Exec=/home/ross/scripts/disneyplus.sh
GenericName[en_US]=
GenericName=
Icon=/home/ross/Pictures/icons/disney-plus-logo.png
MimeType=
Name[en_US]=Disney+
Name=Disney+
NoDisplay=false
Path=/home/ross/scripts/
StartupNotify=true
Terminal=false
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
which points to a script with the contents:
google-chrome --disable-extensions -url http://disneyplus.com  -start-fullscreen &
The script works fine from the command line. The .desktop file is set to be executable, but the Allow Launching option doesn't appear on the right click menu. [context menu for the .desktop file](https://i.sstatic.net/X8UxCgcg.png)
$ desktop-file-validate disneyplus.desktop
reports no errors. Most of what I've found online so far suggests using gio to set the trusted flag from CLI, but that isn't working:
$ gio set disneyplus.desktop metadata::trusted true
gio: Setting attribute metadata::trusted not supported
I don't know what else I can try. Does anyone have any ideas?
Asked by Ross Thompson (1 rep)
May 12, 2025, 09:03 PM
Last activity: May 12, 2025, 09:03 PM