aboutsummaryrefslogtreecommitdiffstats
path: root/menu/menustyle.csh
diff options
context:
space:
mode:
Diffstat (limited to 'menu/menustyle.csh')
-rwxr-xr-xmenu/menustyle.csh18
1 files changed, 18 insertions, 0 deletions
diff --git a/menu/menustyle.csh b/menu/menustyle.csh
new file mode 100755
index 0000000..d2c6502
--- /dev/null
+++ b/menu/menustyle.csh
@@ -0,0 +1,18 @@
+#!/bin/csh
+if ($META_CLASS == desktop ) then
+ set MDV_MENU_STYLE=discovery
+else
+ set MDV_MENU_STYLE=mandriva
+endif
+
+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 ) then
+ setenv XDG_CONFIG_DIRS /etc/xdg/discovery:/etc/xdg
+endif
+
+setenv MDV_MENU_STYLE $MDV_MENU_STYLE