summaryrefslogtreecommitdiff
path: root/examples/gnome-panel
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gnome-panel')
-rwxr-xr-xexamples/gnome-panel48
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="";