LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changin Icons in LXDE (https://www.linuxquestions.org/questions/linux-newbie-8/changin-icons-in-lxde-740079/)

DetroitLibertyPenguin 07-14-2009 04:28 PM

Changin Icons in LXDE
 
I have a really old (about 11 years) PC originally equipped with Win98 with a Intel Celeron processor. Since switching to Linux, its always been faster than it was with windoze, but I've always been looking for faster and comprehensive.

After dozens of distros (only a few which I used as my day to day) and several years I feel like I'm falling in love with Debian running the LXDE desktop. Pretty, reasonably fast, and not a lot of crap I don't need. And has helped fall back in love with the command prompt and writing some easy scripts after almost a year on Xubuntu.

Anyway only a couple things specific to LXDE that I'm yet to figure out.

One, is there anyway to change the desktop icon for the home directory. By default its a house, fine, but its name MY DOCUMENTS. Gag me with a spoon! Holy Windows redirect Batman! If I could name it HOME I'd be fine (the directory itself is /home/jim). Everything I've read just says "no its build in the source" well how do I edit the source!

The other, which may be easier said than done as well is two fold. If I write new scripts to launch programs and place these on my desktop (i.e. desktop shortcuts) is there anyway to change this icon to anything other than a gear, whether it be a specified .ico, .png, .gif, whatever. Secondly is there anyway to add your own "shortcuts" in the LXDE (START) menu?

weibullguy 07-14-2009 09:42 PM

Quote:

Originally Posted by DetroitLibertyPenguin (Post 3607707)
Everything I've read just says "no its build in the source" well how do I edit the source!

With a text editor. I prefer vim, but you can use your favorite. In the pcmanfm source code, find the file src/desktop/desktop-window.c. Find this line (1842 in version 0.5.1)
Code:

fi->disp_name = g_strdup( _("My Documents") );
Change the "My Documents" to whatever you want. Execute the configure script, make, and as root make install. Restart LXDE.

Quote:

Originally Posted by DetroitLibertyPenguin (Post 3607707)
...is there anyway to change this icon to anything other than a gear, whether it be a specified .ico, .png, .gif, whatever.

Edit your icon theme. pcmanfm follows the shared-mime-info and icon-theme specs from freedesktop.org. The gear (or something gearish) is the default icon for executables. Lots of documentation on the ARPANet about both specs and their implemenation. Google is a good place to start.

Quote:

Originally Posted by DetroitLibertyPenguin (Post 3607707)
Secondly is there anyway to add your own "shortcuts" in the LXDE (START) menu?

http://wiki.lxde.org/en/Main_Menu. IMHO the LXDE wiki is far from complete, but its always a good place to start.

DetroitLibertyPenguin 07-14-2009 09:50 PM

Holy Crap! I have never seen such a useful, thoughtful, quick response on any forum in a long time! (At the very least not since I stopped using Mandravia back in 2007.1)

weibullguy 07-14-2009 10:12 PM

Quote:

Originally Posted by DetroitLibertyPenguin (Post 3607911)
Holy Crap! I have never seen such a useful, thoughtful, quick response

Actually, five hours is pretty slow at LQ!


All times are GMT -5. The time now is 06:03 AM.