[PATCH UPDATE] tools/wineshelllink *METHOD 4*
Speeddymon
speeddymon at yahoo.com
Thu Apr 25 16:02:00 CDT 2002
this is the updated version of tools/wineshelllink
method 1 to add menu items for installed programs
works on mandrake and debian
note that this is exactly the same as method 2 except
that it asks for the root password to install to the
mandrake/debian menu directory
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
-------------- next part --------------
Name: tools_wineshelllink-dnavea-patch_fixed-METHOD2
ModifiedFiles: tools/wineshelllink
ChangeLog: checks if you are root and if not runs su, checks for
/usr/lib/menu and if it exists copies menu config info to
there
NOTE: this is the fixed patch, the last one had not been
tested well enough to be used on any system but my own
NOTE2: this patch should fix any system which uses a K Menu
format that is different from the KDE Default (i.e. Mandrake)
Licensed-to: WineHQ, TransGaming, CodeWeavers, anyone else
Author: Dustin Navea
===============================================================================
--- /wine-20020411/tools/wineshelllink.backup Thu Apr 25 07:51:41 2002
+++ /wine-20020411/tools/wineshelllink Thu Apr 25 08:04:19 2002
@@ -145,6 +145,15 @@
xpmicon=""
fi
mdk_entry >> "$HOME/.menu/wine"
+ if [ -d "/usr/lib/menu" -a "$mode" = "menu" -a ! `whoami` = "root" ]
+ then
+ echo "You must be root to install menu items, please type in the
+ echo "root password."
+ su -c "mdk_entry >> \"/usr/lib/menu/wine\""
+ elif [ `whoami` = "root" ]
+ then
+ mdk_entry >> "/usr/lib/menu/wine"
+ fi
update-menus > /dev/null 2>&1
fi
@@ -182,8 +191,6 @@
then
gnome_entry > "$HOME/Desktop2/$link.desktop"
fi
-
-
fi
More information about the wine-patches
mailing list