Results 1 to 6 of 6

Thread: Desktop Launcher Icon won't change

  1. #1
    Join Date
    Feb 2015
    Beans
    1

    Question Desktop Launcher Icon won't change

    Firstly if I'm duplicating anything I apologise. I've tried searching and can't find anything so I don't think I am.

    I run UBUNTU 16.04 lts.
    I have a problem with the icon for one of my desktop launchers which refuses to change.
    I have edited the .desktop file and it won't change.
    I have gone into the properties and selected a totally different icon and it won't change.
    I have three background process which each automatically changes the icons for some of 15 desktop launchers and all work perfectly except for this one.
    I have deleted the .desktop file and re created it by copying and editing a working one but to no avail.
    I have rebooted the system several times (not just for this)

    It's starting to dive me mad. Can anyone advise what else I can do?

  2. #2
    Join Date
    Oct 2004
    Location
    33.4N -112.1W
    Beans
    2,328
    Distro
    Ubuntu Budgie

    Re: Desktop Launcher Icon won't change

    Desktop files in ~/.local/share/applications will override the ones of same name in /usr/share/applications.

    If that has no impact then post the contents of this particular .desktop file.
    /path/to/Truth

  3. #3
    Join Date
    Feb 2015
    Beans
    1

    Re: Desktop Launcher Icon won't change

    The files in question are in ~/Desktop

    Here is the one that is giving trouble

    #!/usr/bin/env xdg-open


    [Desktop Entry]
    Version=0.0
    Encoding=UTF-8
    Name=ONN7
    Type=Application
    Terminal=false
    Exec=/usr/local/bin/onn7
    Icon=/home/mark/Desktop/.onn_icons/ceh7566.png

    And here is one that works

    #!/usr/bin/env xdg-open


    [Desktop Entry]
    Version=0.0
    Encoding=UTF-8
    Name=ONN6
    Type=Application
    Terminal=false
    Exec=/usr/local/bin/onn6
    Icon=/home/mark/Desktop/.onn_icons/onn6222.png

  4. #4
    Join Date
    Aug 2013
    Beans
    3,902

    Re: Desktop Launcher Icon won't change

    Quote Originally Posted by mark199 View Post
    The files in question are in ~/Desktop

    Here is the one that is giving trouble

    #!/usr/bin/env xdg-open


    [Desktop Entry]
    Version=0.0
    Encoding=UTF-8
    Name=ONN7
    Type=Application
    Terminal=false
    Exec=/usr/local/bin/onn7
    Icon=/home/mark/Desktop/.onn_icons/ceh7566.png

    And here is one that works

    #!/usr/bin/env xdg-open


    [Desktop Entry]
    Version=0.0
    Encoding=UTF-8
    Name=ONN6
    Type=Application
    Terminal=false
    Exec=/usr/local/bin/onn6
    Icon=/home/mark/Desktop/.onn_icons/onn6222.png
    You icon (picture) is in your desktop, but where is the .desktop file you edited? It seems that you are editing a file in /usr/local/share/applications but there is another one in ~/.local/share/applications that overrides it. BTW it seems strange to put your icon in your desktop (even in a hidden folder) I would put it in ~/.local/share/icons just for consistency even though functionally it doesn't matter where you put it.

  5. #5
    Join Date
    Feb 2015
    Beans
    1

    Re: Desktop Launcher Icon won't change

    No. I'm talking about icons that overlay the desktop background.
    As I said above, the file I am editing is in ~/Desktop which is where all the desktop launcher files reside.
    The images for these particular ones are in ~/Desktop/.onn_icons
    Ones monitoring other things have images different directories.

    /usr/local/share/applications and ~/.local/share/applications are for icons on the launcher bar at the side of the screen.

    https://www.dropbox.com/s/gak4ugrr1tgj144/Desktop.png?dl=0
    Last edited by mark199; 1 Day Ago at 02:55 PM. Reason: Added link to image

  6. #6
    Join Date
    Aug 2013
    Beans
    3,902

    Re: Desktop Launcher Icon won't change

    Quote Originally Posted by mark199 View Post
    As I said above, the file I am editing is in ~/Desktop which is where all the desktop launcher files reside.
    /usr/local/share/applications and ~/.local/share/applications are for icons on the launcher bar at the side of the screen.
    ?? I am not sure what you are talking about. So your .desktop file (a "launcher file") is in ~/Desktop?? The .desktop files should be in ~/.local/share/applications /usr/local/share/applications or /usr/share/applications for the system to pick up so it appears in menu or the dash etc.

    The picture (icon) can be anywhere as long as your Icon= line in the .desktop file uses its correct path. If you have .desktop files for the same application (same EXEC=) then the ones in one of the share/applications directory always take precedent (in order) so the one in ~/Desktop would be overridden. It is possible to create different launchers for the same application where you change the EXEC= line with different environmental variables, but it only works with some applications (I have tried that with rstudio for two different variations of R)

    Which DE is that? I don't think it is even possible to put launchers on the Desktop for gnome shell (though I can be wrong on that)
    Last edited by monkeybrain20122; 1 Day Ago at 04:44 PM.

Bookmarks

Posting Permissions

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