wok-current annotate pekwm/stuff/scripts/pekwm-freedesktop-menu.sh @ rev 13976
Up: wine (1.5.23)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Wed Feb 06 19:41:12 2013 +0000 (2013-02-06) |
parents | |
children |
rev | line source |
---|---|
pankso@2880 | 1 #!/bin/sh |
pankso@2880 | 2 # |
pankso@2880 | 3 # Freedesktop standard Dynamic menu for PekWM. Look into all files |
pankso@2880 | 4 # into /usr/share/applications and display Entry with Exec, no icons |
pankso@2880 | 5 # to speed-up menu generation. Created for SliTaz GNU/Linux project. |
pankso@2880 | 6 # |
pankso@2880 | 7 |
pankso@2880 | 8 echo "Dynamic {" |
pankso@2880 | 9 for app in /usr/share/applications/* |
pankso@2880 | 10 do |
pankso@2880 | 11 name=`grep ^Name= $app | sed s/Name=//` |
pankso@2880 | 12 exec=`grep ^Exec= $app | sed s/Exec=//` |
pankso@2880 | 13 echo " Entry = \"$name\" { Actions = \"Exec $exec\" }" |
pankso@2880 | 14 done |
pankso@2880 | 15 echo "}" |