.desktop not executable

Hi,

I upgrade from Leap 15.1 to 15.2. During this upgrade my desktop items are no longer executable. Instead an editor opens when clicked on. I use Gnome

This problem has been desribed in some forums, yet I have not seen an answer yet that works

  • the files are executable
  • I addtionally chown 777 them
  • I copied the files from /usr/share/gnome-shell/extensions also on /home/.local/share/ as suggestion by one forum.

Neither helps so far. Any suggestions?

Thanks

All my custom ones I put in /usr/local/share/applications/ with ordinary read permissions, not executable. Maybe /home/.local/share/ applications/ is worth trying if you don’t want them to be available to all users.

I went through this recently (i.e. the .desktop file opened in kate). IIRC the issue was the destination was not in my PATH. I fixed it by adding the directory to PATH in my ~/.profile.

Hi, thanks for the tip. Could you detail a bit more what you did?

Thanks

I appended this to ~/.profile:

NEW_PATHS="$HOME/src/dockerfiles/bin"
if  ! :$PATH: == *:"$NEW_PATHS":* ]] ; then
    export PATH="$NEW_PATHS:$PATH"
fi

The condition above is to avoid having the entry duplicated in bash, it seems to read that file twice, don’t know why.