Show / Hide Desktop Icons in Ubuntu

  • Thread starter Thread starter alig
  • Start date Start date
  • Replies Replies 5
  • Views Views 6,137

alig

The NeXt GeneraTion
Messages
357
Location
NA
ISP
Airtel
My ubuntu desktop has recently started to get really cluttered, so I was looking around if I could have show/hide Desktop Icons (like windows :P) and I came across an article. I thought I'd share it with our community.

It was easy basically make an empty file, (I made mine in home folder, You can keep it where ever you want),
then paste the following,

#!/bin/bash
if ( `gconftool --get /apps/nautilus/preferences/show_desktop` == "true" ) then
gconftool --set /apps/nautilus/preferences/show_desktop \
--type boolean false
else
gconftool --set /apps/nautilus/preferences/show_desktop \
--type boolean true
fi
# EOF

close and save.

Then right-click on an empty space in your top or bottom gnome panel, select the "Add to panel" menu entry. Fill in the form in a similar way as illustrated below, making sure that you give the path to the script you just saved (also make sure the script has +x rights -i.e -right click on the script file that you have created goto properties>permissions. and check the allow to execute as a program option for the file ).

http://img2.imageshack.us/img2/4146/toggledesktopproperties.png

you can download the icon here

http://img44.imageshack.us/img44/7699/toggledesktopicon.png

I have tested this with ubuntu 9.04 but should work with any debian based linux system. Please leave your feedback. I am not the original creater of this script, all the credit goes to the original creator.
 
Thanks. Also Ubuntu-Tweak provide this option.

Ahh yes I remember ubuntu tweak. I should have tried it before, but will its fun to compile you own little programs :D:happy:
Thanks for sharing I know Ubuntu Tweak is a very good program, now I know it also has this feature.
 
lol its was in default in KDE ...... :palig's Avatar alig alig is offlineRegularBroadband Connection Type: AirtelGender: MaleOperating System: Ubuntu 9.04 / Vista - Only for iTunes. i was sad to see that u use Vista for only Itunes ............. use Banshee or Songbird or Atunes ...................
 
i was sad to see that u use Vista for only Itunes ............. use Banshee or Songbird or Atunes ...................

I tried but I think its not compatible with iPhone 3G.

Yep! makes me sad too sometimes :icry:

Age: 20

Wow. U'z a young Linux Geek! Bravo :clap:
 
I have been using this script for sometime but it seems a little big slow. Can someone tweak it? @Kanishka you know how to script right? you think you can maybe fine tune the script?
 
Back