aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/menu/menustyle.csh
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/menu/menustyle.csh')
-rwxr-xr-xtrunk/menu/menustyle.csh13
1 files changed, 13 insertions, 0 deletions
diff --git a/trunk/menu/menustyle.csh b/trunk/menu/menustyle.csh
new file mode 100755
index 0000000..6c43314
--- /dev/null
+++ b/trunk/menu/menustyle.csh
@@ -0,0 +1,13 @@
+set MDV_MENU_STYLE=mandriva
+
+foreach file (/etc/sysconfig/menustyle $HOME/.menustyle)
+ if ( -f $file ) then
+ eval `sed 's|^#.*||' $file | sed 's|\([^=]*\)=\([^=]*\)|set \1=\2|g' | sed 's|$|;|' `
+ endif
+end
+
+if ($MDV_MENU_STYLE == discovery && ! ${?XDG_CONFIG_DIRS}) then
+ set MDV_MENU_STYLE=mandriva
+endif
+
+setenv MDV_MENU_STYLE $MDV_MENU_STYLE