Commit a3a02515 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Made the winelauncher support winelib app invocations. Fixed a few

file path issues.
parent d90e964c
...@@ -29,8 +29,8 @@ prefix=@prefix@ ...@@ -29,8 +29,8 @@ prefix=@prefix@
exec_prefix=@exec_prefix@ exec_prefix=@exec_prefix@
WINEBIN=@bindir@ WINEBIN=@bindir@
WINELIB=@libdir@ WINELIB=@libdir@
WINESERVERBIN= WINESERVER=
WINELIBDLLS= WINELIBDLLS=@libdir@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Establish Color Scheme # Establish Color Scheme
...@@ -74,10 +74,18 @@ fi ...@@ -74,10 +74,18 @@ fi
# of the actual script we're running (and lets remove at least # of the actual script we're running (and lets remove at least
# one level of symlinking). # one level of symlinking).
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
real_name=`find $0 -type l -printf "%l\n"` argv0_path=`which $0`
if [ -z $argv0_path ] ; then
argv0_path=$0
fi
real_name=`find $argv0_path -type l -printf "%l\n"`
if [ ! $real_name ]; then if [ ! $real_name ]; then
real_name=$0; real_name=$argv0_path
elif [ ! -x $real_name ]; then
real_name=`find $argv0_path -printf "%h\n"`/$real_name
fi fi
argv0_dir=`find $real_name -printf "%h\n"` argv0_dir=`find $real_name -printf "%h\n"`
if [ -z $argv0_dir ] ; then if [ -z $argv0_dir ] ; then
...@@ -130,7 +138,7 @@ if [ -x $WINEBIN/server/wineserver ] ; then ...@@ -130,7 +138,7 @@ if [ -x $WINEBIN/server/wineserver ] ; then
WINESERVER=$WINEBIN/server/wineserver WINESERVER=$WINEBIN/server/wineserver
fi fi
if [ -r $WINELIB/dlls/libuser.so ] ; then if [ -r $WINELIB/dlls/libntdll.so ] ; then
WINELIBDLLS=$WINELIB/dlls WINELIBDLLS=$WINELIB/dlls
fi fi
...@@ -161,6 +169,16 @@ fi ...@@ -161,6 +169,16 @@ fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Handle winelib apps going through here
#------------------------------------------------------------------------------
winelib=0
if [ -f $argv0_path.so ] ; then
winelib=1
export WINEPRELOAD=$argv0_path.so
fi
#------------------------------------------------------------------------------
# No arguments? Help 'em out # No arguments? Help 'em out
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
always_see_output=0 always_see_output=0
...@@ -173,6 +191,10 @@ if [ $# -eq 1 -a foo$1 = foo ] ; then ...@@ -173,6 +191,10 @@ if [ $# -eq 1 -a foo$1 = foo ] ; then
no_args=1 no_args=1
fi fi
if [ $winelib -eq 1 ] ; then
no_args=0
fi
if [ $no_args -eq 1 ] ; then if [ $no_args -eq 1 ] ; then
echo "Wine called with no arguments." echo "Wine called with no arguments."
echo "Invoking $WINEBIN/$WINE_BIN_NAME $@ ..." echo "Invoking $WINEBIN/$WINE_BIN_NAME $@ ..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment