diff options
author | Bill Allombert <ballombe@debian.org> | 2011-11-16 12:33:27 +0100 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-03-05 16:39:28 +0000 |
commit | dd7279795c97aa356727d366a2149c9bc838b496 (patch) | |
tree | a87d19d2e5220f5b38aec3b5b036235a59f971c9 /examples/gnome-panel | |
download | menu-debian/2.1.46.tar.gz |
Imported Debian version 2.1.46debian/2.1.46
Diffstat (limited to 'examples/gnome-panel')
-rwxr-xr-x | examples/gnome-panel | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/examples/gnome-panel b/examples/gnome-panel new file mode 100755 index 0000000..68efbd2 --- /dev/null +++ b/examples/gnome-panel @@ -0,0 +1,48 @@ +#!/usr/bin/install-menu +compat="menu-1" + +!include menu.h + +compat="menu-2" + +function findicon($filename)= + ifelsefile($filename, $filename, + iffile("/usr/X11R6/include/X11/pixmaps/" $filename, + "/usr/X11R6/include/X11/pixmaps/" $filename)); + +function AppEntry($var)= + "[Desktop Entry]\n" + "Name=" title() "\n" + "Comment=" ifelse($longtitle,$longtitle,$title) "\n" + "Exec=" $command "\n" + $var + ifnempty($icon,"Icon=" findicon($icon) "\n") + "Type=Application\n" ; + +function SubmenuEntry()= + "[Desktop Entry]\n" + "Name=" $title "\n" + "Icon=gnome-folder.png\n" + "Type=Directory\n"; + +supported; + x11= AppEntry("Terminal=false\n"); + text= AppEntry("Terminal=true\n"); +endsupported; + +genmenu=parent($section) "/" $title ifeqelse($needs, "", "/.directory", ".desktop") ""; +startmenu=""; +endmenu=""; + +rootsection=""; + +rootprefix="/var/lib/gnome/Debian/"; +userprefix=".gnome/Debian"; + +treewalk="M"; +#submenutitle="SUBMENUTITLE section=[" $section "] title=[" $title "]"; +submenutitle=SubmenuEntry(); + +prerun="rm -rf " prefix() "/*"; + +preoutput=""; |