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.sh | |
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.sh')
-rwxr-xr-x | menu/menustyle.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/menu/menustyle.sh b/menu/menustyle.sh new file mode 100755 index 0000000..d9788ab --- /dev/null +++ b/menu/menustyle.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +if [ "$META_CLASS" = "desktop" ]; then + MDV_MENU_STYLE=discovery +else + MDV_MENU_STYLE=mandriva +fi + +[ -r /etc/sysconfig/menustyle ] && source /etc/sysconfig/menustyle +[ -r $HOME/.menustyle ] && source $HOME/.menustyle + +if [ "$MDV_MENU_STYLE" = "discovery" ]; then + XDG_CONFIG_DIRS=/etc/xdg/discovery:/etc/xdg + export XDG_CONFIG_DIRS +fi + +export MDV_MENU_STYLE |