wok-next diff pekwm/stuff/scripts/pekwm-freedesktop-menu.sh @ rev 5893
compcache: fix build with kernel 2.6.34
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Jul 22 23:03:19 2010 +0200 (2010-07-22) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/pekwm/stuff/scripts/pekwm-freedesktop-menu.sh Thu Jul 22 23:03:19 2010 +0200 1.3 @@ -0,0 +1,15 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# Freedesktop standard Dynamic menu for PekWM. Look into all files 1.7 +# into /usr/share/applications and display Entry with Exec, no icons 1.8 +# to speed-up menu generation. Created for SliTaz GNU/Linux project. 1.9 +# 1.10 + 1.11 +echo "Dynamic {" 1.12 +for app in /usr/share/applications/* 1.13 +do 1.14 + name=`grep ^Name= $app | sed s/Name=//` 1.15 + exec=`grep ^Exec= $app | sed s/Exec=//` 1.16 + echo " Entry = \"$name\" { Actions = \"Exec $exec\" }" 1.17 +done 1.18 +echo "}"