Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a3a02515
Commit
a3a02515
authored
Feb 23, 2001
by
Ove Kaaven
Committed by
Alexandre Julliard
Feb 23, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the winelauncher support winelib app invocations. Fixed a few
file path issues.
parent
d90e964c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
winelauncher.in
tools/winelauncher.in
+27
-5
No files found.
tools/winelauncher.in
View file @
a3a02515
...
...
@@ -29,8 +29,8 @@ prefix=@prefix@
exec_prefix
=
@exec_prefix@
WINEBIN
=
@bindir@
WINELIB
=
@libdir@
WINESERVER
BIN
=
WINELIBDLLS
=
WINESERVER
=
WINELIBDLLS
=
@libdir@
#------------------------------------------------------------------------------
# Establish Color Scheme
...
...
@@ -74,10 +74,18 @@ fi
# of the actual script we're running (and lets remove at least
# 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
real_name
=
$0
;
real_name
=
$argv0_path
elif
[
!
-x
$real_name
]
;
then
real_name
=
`
find
$argv0_path
-printf
"%h
\n
"
`
/
$real_name
fi
argv0_dir
=
`
find
$real_name
-printf
"%h
\n
"
`
if
[
-z
$argv0_dir
]
;
then
...
...
@@ -130,7 +138,7 @@ if [ -x $WINEBIN/server/wineserver ] ; then
WINESERVER
=
$WINEBIN
/server/wineserver
fi
if
[
-r
$WINELIB
/dlls/lib
user
.so
]
;
then
if
[
-r
$WINELIB
/dlls/lib
ntdll
.so
]
;
then
WINELIBDLLS
=
$WINELIB
/dlls
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
#------------------------------------------------------------------------------
always_see_output
=
0
...
...
@@ -173,6 +191,10 @@ if [ $# -eq 1 -a foo$1 = foo ] ; then
no_args
=
1
fi
if
[
$winelib
-eq
1
]
;
then
no_args
=
0
fi
if
[
$no_args
-eq
1
]
;
then
echo
"Wine called with no arguments."
echo
"Invoking
$WINEBIN
/
$WINE_BIN_NAME
$@
..."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment