Results 1 to 5 of 5

Thread: .desktop not executable

  1. #1

    Default .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

  2. #2
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    2,328

    Default Re: .desktop not executable

    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.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 15.1,TW,15.2 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&15.1 on 965P/Radeon
    Tertiary: TW,15.2,15.1,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  3. #3
    Join Date
    Mar 2020
    Location
    São Leopoldo, RS, Brazil
    Posts
    231

    Default Re: .desktop not executable

    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.
    openSUSE Tumbleweed

  4. #4

    Default Re: .desktop not executable

    Quote Originally Posted by awerlang View Post
    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

  5. #5
    Join Date
    Mar 2020
    Location
    São Leopoldo, RS, Brazil
    Posts
    231

    Default Re: .desktop not executable

    Quote Originally Posted by alganius View Post
    Hi, thanks for the tip. Could you detail a bit more what you did?

    Thanks
    I appended this to ~/.profile:
    Code:
    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.
    openSUSE Tumbleweed

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •