aboutsummaryrefslogtreecommitdiffstats
path: root/menu/menustyle.csh
blob: a3e69604599519b454fe2160521616dd99cbc66c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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