diff options
author | Frederic Crozat <fcrozat@mandriva.com> | 2006-08-17 17:56:38 +0000 |
---|---|---|
committer | Frederic Crozat <fcrozat@mandriva.com> | 2006-08-17 17:56:38 +0000 |
commit | c1c7ef8546baca79f5f6a9363b3a4561324a9d54 (patch) | |
tree | 5e9a3192fd78b046c1038c94f170be958ae41dcc /menu/menustyle.csh | |
parent | 6f449f71241016e78eefe398489df594321fa3fc (diff) | |
download | common-data-c1c7ef8546baca79f5f6a9363b3a4561324a9d54.tar common-data-c1c7ef8546baca79f5f6a9363b3a4561324a9d54.tar.gz common-data-c1c7ef8546baca79f5f6a9363b3a4561324a9d54.tar.bz2 common-data-c1c7ef8546baca79f5f6a9363b3a4561324a9d54.tar.xz common-data-c1c7ef8546baca79f5f6a9363b3a4561324a9d54.zip |
- Add discovery menu and script to support MDV_MENU_STYLE
Diffstat (limited to 'menu/menustyle.csh')
-rwxr-xr-x | menu/menustyle.csh | 18 |
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 |