slitaz-tools rev 637

tazbox: add command all-apps to display all installed application
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jun 17 20:51:43 2011 +0200 (2011-06-17)
parents 04f34d2e0930
children b40be2d57c54
files tazbox/tazbox
line diff
     1.1 --- a/tazbox/tazbox	Fri Jun 17 20:30:23 2011 +0200
     1.2 +++ b/tazbox/tazbox	Fri Jun 17 20:51:43 2011 +0200
     1.3 @@ -45,6 +45,7 @@
     1.4    tz         $(gettext "Configure system timezone (root)")
     1.5    setup      $(gettext "System initial setup (locale, keymap & timezone)")
     1.6    new-file   $(gettext "Create a new file or folder on the desktop")
     1.7 +  all-apps   $(gettext "Icons of all installed applications.")
     1.8  
     1.9  EOT
    1.10  }
    1.11 @@ -245,6 +246,14 @@
    1.12  	esac
    1.13  }
    1.14  
    1.15 +# All applications
    1.16 +all_apps() {
    1.17 +	yad --icons --title="$(gettext "All Applications")" \
    1.18 +		--compact --read-dir=/usr/share/applications \
    1.19 +		--window-icon=$icon --width=400 --height=400 \
    1.20 +		--button="gtk-close:0"
    1.21 +}
    1.22 +
    1.23  #
    1.24  # Commands
    1.25  #
    1.26 @@ -317,6 +326,8 @@
    1.27  		killall Xorg 2>/dev/null ;;
    1.28  	new-file)
    1.29  		newfile ;;
    1.30 +	all-apps)
    1.31 +		all_apps ;;
    1.32  	*)
    1.33  		usage ;;
    1.34  esac