aboutsummaryrefslogtreecommitdiffstats
path: root/menu/menustyle.csh
blob: da29e20f5a25a1c0f518aee3296e94dab4ca961c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 && ! ${?XDG_CONFIG_DIRS}) then
	setenv XDG_CONFIG_DIRS /etc/xdg/discovery:/etc/xdg
endif

setenv MDV_MENU_STYLE $MDV_MENU_STYLE