From ce8e6b2b51b08e37573265097744b0d77d2b09df Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 3 Oct 2005 10:14:47 +0000 Subject: [PATCH] Do not append empty ":" in LD_LIBRARY_PATH. --- programs/winelauncher.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/programs/winelauncher.in b/programs/winelauncher.in index 55f6c0ef9b6..dd26af572e6 100755 --- a/programs/winelauncher.in +++ b/programs/winelauncher.in @@ -195,7 +195,11 @@ fi #------------------------------------------------------------------------------ # Okay, set the paths and move on. #------------------------------------------------------------------------------ -export LD_LIBRARY_PATH=$WINELIB:$LD_LIBRARY_PATH +if [ -n "$LD_LIBRARY_PATH" ]; then + export LD_LIBRARY_PATH=$WINELIB:$LD_LIBRARY_PATH +else + export LD_LIBRARY_PATH=$WINELIB +fi export PATH=$WINEBIN:$PATH export WINELOADER=$WINEBIN/$WINE_BIN_NAME export WINEDLLPATH