If you are using some old application or want to install some application that was developed quite some time back with GTK GUI, then you may find the application using gdialog. gdialog is no more available and is deprecated in Fedora and same functionality is provided by zenity. But the options to call zenity are slightly different so what do you do. I did a google search and found the following script. The credit of script is not mine and credit goes to \”Mike Newman <firstname.lastname@example.org>\”
Note: I needed it for some nautilus script for image resize.
I wrote a blog on bash script to change the icon/cursor theme using a bash script. Lets extend the same concept a little more and use the script to change the gtk theme for gnome and at the same time take a screenshot also.
[[ \”$1\” == \”\” ]] && time=5 || time=$1
[[ \”$2\” == \”\” ]] && (
echo \”Select one of the icon themes\”
echo \”When you like some theme just press Ctrl+c\”
for i in *
[[ -d $i/cursors ]] || (
echo \”Now trying …. : $i\”
gconftool-2 –type string -s /desktop/gnome/interface/gtk_theme \”$i\”
import -window root -quality 95 \”$j\”
) || gconftool-2 –type string -s /desktop/gnome/interface/gtk_theme \”$2\”
This use\’s the import command to take the screenshot. Hope you like it. You can specify the path for the screenshots in the path variable at the begining of the script.
Here are two themes from Ian.. Link: http://ardchoille42.blogspot.com/2009/09/new-gtk2-and-metacity-themes.html