I copied an existing and working
.desktop file for an application that can be launched from Applications → Favorites into
~/Desktop but the file is displayed on and opened from the desktop as text file only.
Chapter 1. Getting started with GNOME just mentions:
1.4.3. Creating a desktop icon for a file
This procedure creates a desktop icon for an existing file.
and nothing about an application/launcher.
There's a comment to Create menu entry and desktop icon for application installed from .tar.gz for Fedora 24:
When placing launchers in
~/.local/share/applicationsyou have to mark them as trusted - i.e. either double click it > follow instructions or
chmod +xand add
#!/usr/bin/env xdg-openon top.
Does this apply to RHEL 8 as well? Where, as mentioned above, when double-clicking my
.desktop it opens in a text editor.
A solution for both Gnome Classic and Gnome Shell would be highly appreciated (if it's not the same anyway).