aboutsummaryrefslogtreecommitdiffstats
path: root/menu/menustyle.csh
diff options
context:
space:
mode:
authorDexter Morgan <dmorgan@mageia.org>2011-06-02 20:30:42 +0000
committerDexter Morgan <dmorgan@mageia.org>2011-06-02 20:30:42 +0000
commitac5099ebf8fced835c2108ce4d2d327762d0e595 (patch)
treec9d6bb9a8e3a7e3de6a100e2ae300922003f995e /menu/menustyle.csh
downloadcommon-data-ac5099ebf8fced835c2108ce4d2d327762d0e595.tar
common-data-ac5099ebf8fced835c2108ce4d2d327762d0e595.tar.gz
common-data-ac5099ebf8fced835c2108ce4d2d327762d0e595.tar.bz2
common-data-ac5099ebf8fced835c2108ce4d2d327762d0e595.tar.xz
common-data-ac5099ebf8fced835c2108ce4d2d327762d0e595.zip
Branch for updates
Diffstat (limited to 'menu/menustyle.csh')
-rwxr-xr-xmenu/menustyle.csh13
1 files changed, 13 insertions, 0 deletions
diff --git a/menu/menustyle.csh b/menu/menustyle.csh
new file mode 100755
index 0000000..a3e6960
--- /dev/null
+++ b/menu/menustyle.csh
@@ -0,0 +1,13 @@
+set MGA_MENU_STYLE=mageia
+
+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 ($MGA_MENU_STYLE == discovery && ! ${?XDG_CONFIG_DIRS}) then
+ set MGA_MENU_STYLE=mageia
+endif
+
+setenv MGA_MENU_STYLE $MGA_MENU_STYLE