diff options
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 |