Desktop Icon properties

Discussion in 'Modding and Customization' started by StevieDee, Dec 24, 2008.

  1. StevieDee

    StevieDee

    Joined:
    Sep 5, 2008
    Messages:
    6
    Likes Received:
    0
    What is the procedure for editing icon properties in Linpus? An upgrade of Open Office has left the original icons giving me a "/home/user/%u does not exist" message.

    I can access the programs OK via right clicking but not via the desktop icons. I have had a rummage around and can find various files that might be editable, but would rather find an easier way if possible.

    Steve
     
    StevieDee, Dec 24, 2008
    #1
  2. StevieDee

    markh

    Joined:
    Oct 6, 2008
    Messages:
    299
    Likes Received:
    0
    You need to edit the .desktop file for your application (so openoffice-writer.desktop, or something like that). Most .desktop files are in /usr/share/applications/. Check the exec= line, and it may have a %u after the main exec command. Removing that could fix your problem.
     
    markh, Dec 24, 2008
    #2
  3. StevieDee

    StevieDee

    Joined:
    Sep 5, 2008
    Messages:
    6
    Likes Received:
    0
    Ta, I'll have look tomorrow (looks at watch) later today...

    Thanks

    Steve
     
    StevieDee, Dec 24, 2008
    #3
  4. StevieDee

    StevieDee

    Joined:
    Sep 5, 2008
    Messages:
    6
    Likes Received:
    0
    Hmmm. I try to edit the file and it tells me the changes cannot be saved - so I assume the file is in use.

    Looking at the file, the "%u" is there that appears in the error message when launching off the desktop, but clicking on the .desktop file in the folder listing results in the application launching correctly. If the .desktop file is OK, I assume it takes us back the properties of the icon concerned.

    Steve
     
    StevieDee, Dec 25, 2008
    #4
  5. StevieDee

    Frits

    Joined:
    Jul 28, 2008
    Messages:
    44
    Likes Received:
    0
    Location:
    The Netherlands
    I have the same problem.
    anyone a how to do solution????

    oke found this one:
    sudo mousepad /usr/share/applications/openoffice.org-1.9-writer.desktop
    sudo mousepad /usr/share/applications/openoffice.org-1.9-calc.desktop
    sudo mousepad /usr/share/applications/openoffice.org-1.9-impress.desktop

    AND REMOVE per item the %U . now the icons work, still have to figure out how to replace these icons with the deleted old ones......
     
    Frits, Dec 27, 2008
    #5
  6. StevieDee

    SirWilliam

    Joined:
    Oct 19, 2008
    Messages:
    22
    Likes Received:
    0
    Greetings...

    icons, that are used by the default desktop are stored in
    Code:
    /usr/share/pixmaps
    ... somewhere... .

    If you want to edit the icon of Writer, you edit the desktop file
    Code:
    /usr/share/applications/openoffice.org-1.9-writer.desktop
    (line5, make sure you have root permissions)
    Change
    Code:
    Icon=openofficeorg-writer
    to the icon you want, i.e.
    Code:
    Icon=/usr/share/pixmaps/<myicon>
    Make sure <myicon> exist, you can copy any picturefile there to.

    The second way of obtaiuning the icon you want is to edit your desktopfile
    Code:
    /home/user/.config/xfce4/desktop/group-app.xml
    .

    You only have to write to the entry the path where to find the icon, i.e.:
    Code:
    <app sequence="3" icon="Terminal.matrix.png">/usr/share/applications/Terminal.desktop</app>
    
    Hope that helps...

    greeting
     
    SirWilliam, Dec 28, 2008
    #6
  7. StevieDee

    jbrew

    Joined:
    Dec 31, 2008
    Messages:
    4
    Likes Received:
    0
    I'm a total Linux newb. How do I get access to edit the .desktop file? I am having the same issue. Thank you for your help!
     
    jbrew, Jan 5, 2009
    #7
  8. StevieDee

    markh

    Joined:
    Oct 6, 2008
    Messages:
    299
    Likes Received:
    0
    The default text editor is called mousepad. To edit a .desktop file, you will need to launch mousepad with "root" privileges (basically with full permission to mess with the system - warning, do not use root lightly, as you can wreck stuff). To do this, get a terminal up (alt-f2, type terminal, hit return). You can then type
    sudo mousepad /usr/share/applications/openoffice.org-1.9-writer.desktop
    The "sudo" part executes the follow command with root privileges. Alternatively, just type sudo mousepad, and then use the open menu item to find your file.
     
    markh, Jan 6, 2009
    #8
  9. StevieDee

    StevieDee

    Joined:
    Sep 5, 2008
    Messages:
    6
    Likes Received:
    0
    Hmmm.... Tried all this, and got nowhere really. Either nothing changes or it alters the icon properties and it does something different before reverting back to how it was before.

    The .desktop file title refers to OpenOffice 1.9 but I am running Open office 2.3.

    In the right click drop-down menu, the icon works. So, where is the icon properties properties file for the drop-down menu found, and can I copy the properties to the .desktop file?

    None of the open office icons seem to be found in my pixmaps folder, although everything else appears to be there. I'll keep looking around....

    Steve
     
    StevieDee, Jan 6, 2009
    #9
  10. StevieDee

    Quagmire

    Joined:
    Jan 5, 2009
    Messages:
    3
    Likes Received:
    0
    Re: Desktop Icon properties +

    Hi im total new in Linux linpus lite!

    Just a question, i know i little about how to get icons to the desktop, i succeded with the VLC into to ...fun... Categori:)
    Now im trying to get Quake 3 arena into the ...fun-->Games...! But every time i trying it wont work (and yes i reboot wont work anyway) ;)
    The vlc icon shows when i try this with vlc and on the same place but it wont work with quake?
    I know im doing something wrong but w00t? help me with the script plx.

    Thanks and sorry for my bad english :p
     
    Quagmire, Jan 6, 2009
    #10
  11. StevieDee

    SirWilliam

    Joined:
    Oct 19, 2008
    Messages:
    22
    Likes Received:
    0
    Okay, i guess we have to do that step by step...
    first of all you should tell us some more...
    go to
    Code:
    /home/user/.config/xfce4/desktop
    and open group-app.xml scroll down to the menu section of workdirectory...this should look like:
    Code:
    <group>
    <id>6</id>
    <sequence>5</sequence>
    <directory_file [...]>/usr/share/desktop-directories/Works.directory</directory_file>
    [...]
    </group>
    there you find to which desktop-files you (default) desktop is referring.

    open that file with (whatever) texteditor you like (i like vi) [example]:
    Code:
    sudo vi /usr/share/applications/openoffice-[...]-writer.desktop
    look for the line:
    Code:
    Exec=
    it should be
    Code:
    Exec=openoffice.org -writer
    look for the line:
    Code:
    TryExec=
    it should be
    Code:
    TryExec=oowriter
    check if those command run in a terminal...

    If yes, everything should be allright and we only have to care about the icons....

    If that does not work, try these commands by hand in a terminal:
    Code:
    openoffice.org; ooffice 
    and check which version they refer to...

    Now go ahead and check that out...and tell me if that works...i will check back and tell the rest of the story...but i have no time left atm.

    Greetings
     
    SirWilliam, Jan 7, 2009
    #11
  12. StevieDee

    atomicmedic

    Joined:
    Mar 11, 2009
    Messages:
    9
    Likes Received:
    0
    Does anybody know how I can put my .png files in the pixmaps folder - it wont let me paste!
     
    atomicmedic, Jul 31, 2009
    #12
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.