wok diff pekwm/stuff/scripts/pekwm-freedesktop-menu.sh @ rev 15666
Add ddumbfs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 13 16:18:29 2013 +0000 (2013-12-13) |
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 Fri Dec 13 16:18:29 2013 +0000 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 "}"