Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
57f9c33c
Commit
57f9c33c
authored
Dec 04, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: Allow running installed builtin apps even when the 32-bit loader is missing.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
821c2ed6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
wineapploader.in
tools/wineapploader.in
+17
-5
No files found.
tools/wineapploader.in
View file @
57f9c33c
...
...
@@ -25,9 +25,6 @@ appname=`basename "$0" .exe`.exe
# first try explicit WINELOADER
if
[
-x
"
$WINELOADER
"
]
;
then
exec
"
$WINELOADER
"
"
$appname
"
"
$@
"
;
fi
# then default bin directory
if
[
-x
"@bindir@/wine"
]
;
then
exec
"@bindir@/wine"
"
$appname
"
"
$@
"
;
fi
# now try the directory containing $0
appdir
=
""
case
"
$0
"
in
...
...
@@ -47,6 +44,21 @@ case "$0" in
;;
esac
if
[
-x
"
$appdir
/wine"
]
;
then
exec
"
$appdir
/wine"
"
$appname
"
"
$@
"
;
fi
if
[
-x
"
$appdir
/wine64"
]
;
then
exec
"
$appdir
/wine64"
"
$appname
"
"
$@
"
;
fi
# now look in PATH
saved_ifs
=
$IFS
IFS
=
:
for
d
in
$PATH
do
IFS
=
$saved_ifs
if
[
-x
"
$d
/wine"
]
;
then
exec
"
$d
/wine"
"
$appname
"
"
$@
"
;
fi
if
[
-x
"
$d
/wine64"
]
;
then
exec
"
$d
/wine64"
"
$appname
"
"
$@
"
;
fi
done
# finally, the default bin directory
if
[
-x
"@bindir@/wine"
]
;
then
exec
"@bindir@/wine"
"
$appname
"
"
$@
"
;
fi
if
[
-x
"@bindir@/wine64"
]
;
then
exec
"@bindir@/wine64"
"
$appname
"
"
$@
"
;
fi
# finally look in PATH
ex
ec
wine
"
$appname
"
"
$@
"
echo
"
$0
: the Wine loader is missing"
ex
it
1
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