Monday, February 28, 2011

Desktop icons

I love having icons on my desktop, not hunderds of icons, but having a shortcut to Trash is handy. I could not find a setting to do this and set out in search of a solution.

Thank you to Chaos from the Peppermint forum (to view the full article, go to http://peppermintos.net/viewtopic.php?f=40&t=236)


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 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


For 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


Trash Can:
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

I only put a shortcut to Trash on my desktop, but this is a great tutorial. A lot of things are not as "easy" to do when you come from a Windows background. I am glad that there are people out there who are willing to share their knowledge.

No comments:

Post a Comment