Peppermint | Linux OS Community Forum
 
It is currently Sat Dec 16, 2017 10:16 pm

All times are UTC - 5 hours [ DST ]





Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Desktop icons
PostPosted: Tue Jun 01, 2010 7:40 pm 
Offline
User avatar

Joined: Thu May 20, 2010 8:56 am
Posts: 2132
The following useful tip was provided by chaos

Class: Desktop customization how to
Difficulty: Just a bit of script to copy into .desktop files
Time: Up to a couple of minutes for each one
Desirability: If you like Redmond (as in MS) style desktop icons you will want these

New users might want to know how to get icons on the desktop for home folder etc, so here goes;

For your home folder, right click on your desktop and scroll to new/blank file and create a blank file on your desktop, open the blank file with leafpad and copy the code below,
Code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Home
Comment=Browser
Exec=pcmanfm
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=gnome-fs-home.svg
Categories=Application;Desktop;Filemanager
StartupWMClass=Pcmanfm
StartupNotify=true


and save to desktop as home.

For firefox enter do as above but enter this code
Code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Firefox Web Browser
Name[sv]=Webbläsaren Firefox
Comment=Browse the World Wide Web
GenericName=Web Browser
Exec=firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox
Categories=Application;Internet;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;
StartupWMClass=Firefox
StartupNotify=true


and save as firefox.

For root folder, similar to Windows' 'My Computer':

Code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Computer
Comment=Browser
Exec=pcmanfm /
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=gnome-computer
Categories=Application;Desktop;Filemanager
StartupWMClass=Pcmanfm
StartupNotify=true


For network:

Code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Network
Exec=pyNeighborhood
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=network
Categories=Application;Desktop
StartupWMClass=Pcmanfm
StartupNotify=true


and finally, a shortcut to terminal:

Code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Terminal
Exec=lxterminal
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=gnome-terminal
Categories=Application;Desktop
StartupWMClass=Pcmanfm
StartupNotify=true


Here's one for the trash can, too:

Code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Rubbish
Comment=Browser
Exec=pcmanfm trash:///
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=gnome-stock-trash.svg
Categories=Application;Desktop;Filemanager
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;
StartupWMClass=Pcmanfm
StartupNotify=true


Many thanks to chaos for submitting this awesome tip!

_________________
Admin


Last edited by Rich_Roast on Sun Aug 08, 2010 12:36 pm, edited 3 times in total.
Code clean up, additional items


Top
 Profile  
 
 

Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL