From c1c7ef8546baca79f5f6a9363b3a4561324a9d54 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Thu, 17 Aug 2006 17:56:38 +0000 Subject: - Add discovery menu and script to support MDV_MENU_STYLE --- menu/menustyle.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 menu/menustyle.sh (limited to 'menu/menustyle.sh') 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 -- cgit v1.2.1