Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31

Thread: Change desktop icon

  1. #11
    Join Date
    Nov 2013
    Location
    Canadiana
    Posts
    461

    Default Re: Change desktop icon

    Ian Gay wrote:
    > If, on the other hand, the desktop icon links to a document, you will
    > see the current icon, but it is not in a clickable buttton. In this
    > case, there is a button a bit lower down labelled File Type Options.
    > Click this. You get a new dialog where the icon is now in a clickable
    > button. Click this and choose a new icon.
    >
    > The new icon may not show on desktop until KDE is restarted.


    But that will change the icon for all files of that type (like *.c files).

  2. #12

    Default Re: Change desktop icon

    I changed the icon for one script that was on the desktop. Now it and another script on the desktop no longer work when clicking on it.

    However, they work from a console ?

    Time for a long break. :-)

    Andy

    I miss Windows exes that have the icon embedded in the executable. :-)
    Thanks, Andy

    openSUSE 13.1 KDE (x86_64)
    Puppy Slacko 5.6.0
    Occasionally Windows XP

  3. #13
    Join Date
    Nov 2013
    Location
    Canadiana
    Posts
    461

    Default Re: Change desktop icon

    Quote Originally Posted by andy77586 View Post
    I changed the icon for one script that was on the desktop. Now it and another script on the desktop no longer work when clicking on it.
    Yes like I said *.desktop files link to the actual executable. You will need the file to be something like this

    Code:
    [Desktop Entry]
    Comment=Open Kwrite
    Exec=/usr/bin/kwrite %U
    Name=abc
    Type=Application

    The *.desktop file cannot be your script it must point to your script in the Exec= part.
    openSUSE Leap (42.1) 64 bit
    Plasma 5.4

  4. #14

    Default Re: Change desktop icon

    What file are you referring to?
    Thanks, Andy

    openSUSE 13.1 KDE (x86_64)
    Puppy Slacko 5.6.0
    Occasionally Windows XP

  5. #15

    Default Re: Change desktop icon

    When I click on this, it said it could not launch logoff.sh.

    [Desktop Entry]
    Comment=Log Off
    Exec=~/Scripts/logoff.sh
    Name=abc
    Type=Application
    Thanks, Andy

    openSUSE 13.1 KDE (x86_64)
    Puppy Slacko 5.6.0
    Occasionally Windows XP

  6. #16
    Join Date
    Nov 2013
    Location
    Canadiana
    Posts
    461

    Default Re: Change desktop icon

    Quote Originally Posted by andy77586 View Post
    When I click on this, it said it could not launch logoff.sh.

    [Desktop Entry]
    Comment=Log Off
    Exec=~/Scripts/logoff.sh
    Name=abc
    Type=Application
    Do you get any errors? I tried it with a bash script and its working fine for me.

    What I did was make a name.desktop file and then set the exec to ~/bin/test and finally
    Code:
    chmod u+x ~/bin/test
    If you could share the script that might help figure out why its not working.
    openSUSE Leap (42.1) 64 bit
    Plasma 5.4

  7. #17

    Default Re: Change desktop icon

    This works fine when run from a console, so the script must be o.k.

    Andy

    # Logout from within OpenSuse
    #
    #!/bin/bash
    #
    #
    #
    # SiegeWorks 2014 A.P.K.
    #
    # if file is a script, make it executable
    chmod +x *.sh
    # Start here
    qdbus org.kde.ksmserver /KSMServer logout 0 0 0
    Thanks, Andy

    openSUSE 13.1 KDE (x86_64)
    Puppy Slacko 5.6.0
    Occasionally Windows XP

  8. #18

    Default Re: Change desktop icon

    contents of logoff.desktop

    When I click on it, it says "Can not launch logoff.sh."

    [Desktop Entry]
    Comment[en_US]=Log Off
    Comment=Log Off
    Exec=Scripts/logoff.sh
    GenericName[en_US]=
    GenericName=
    MimeType=
    Name[en_US]=abc
    Name=abc
    Path=
    StartupNotify=true
    Terminal=false
    TerminalOptions=
    Type=Application
    X-DBUS-ServiceName=
    X-DBUS-StartupType=
    X-KDE-SubstituteUID=false
    X-KDE-Username=
    Thanks, Andy

    openSUSE 13.1 KDE (x86_64)
    Puppy Slacko 5.6.0
    Occasionally Windows XP

  9. #19
    Join Date
    Nov 2013
    Location
    Canadiana
    Posts
    461

    Default Re: Change desktop icon

    andy77586 wrote:

    >
    > This works fine when run from a console, so the script must

    be o.k.
    >
    > Andy
    >
    > # Logout from within OpenSuse
    > #
    > #!/bin/bash


    Doesn't #!/bin/bash need to be the first line of the script? I
    think any other line than the first and it is just interpreted
    as a comment.


  10. #20

    Default Re: Change desktop icon

    It isn't a requirement to be the first line.

    The same script works fine in Puppy Slacko 5.6.0.
    Thanks, Andy

    openSUSE 13.1 KDE (x86_64)
    Puppy Slacko 5.6.0
    Occasionally Windows XP

Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions

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