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
ffc9c8a0
Commit
ffc9c8a0
authored
May 10, 2001
by
Francois Gouget
Committed by
Alexandre Julliard
May 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't start applications in the background to avoid breaking console
applications.
parent
adcc3ad0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
22 deletions
+12
-22
winelauncher.in
tools/winelauncher.in
+12
-22
No files found.
tools/winelauncher.in
View file @
ffc9c8a0
...
...
@@ -367,37 +367,27 @@ clean_up_info_message ()
use_log_name
=
0
log_name
=
`
mktemp
/tmp/wine.log.XXXXXX
`
if
[
$?
-eq
0
]
;
then
which
tail
>
/dev/null 2>&1
if
[
$?
-eq
0
]
;
then
use_log_name
=
1
fi
use_log_name
=
1
fi
use_status_name
=
0
status_name
=
`
mktemp
/tmp/wine.status.XXXXXX
`
if
[
$?
-eq
0
]
;
then
use_status_name
=
1
fi
#------------------------------------------------------------------------------
# Okay, really launch Wine...
#------------------------------------------------------------------------------
if
[
$use_log_name
-ne
0
]
;
then
#------------------------------------------------------------------------------
# Okay, we bend over backwards to run Wine, get that status,
# but still display its output to the screen.
# The obvious thing to do is to run wine and pipe output to tee,
# but then I can't find a way to get the return code of wine;
# I only get the return code of tee.
#------------------------------------------------------------------------------
$WINEBIN
/
$WINE_BIN_NAME
"
$@
"
>
$log_name
2>&1 &
wine_pid
=
$!
tail
-f
$log_name
&
tail_pid
=
$!
wait
$wine_pid
wine_return
=
$?
kill
$tail_pid
if
[
$use_log_name
-ne
0
-a
$use_status_name
-ne
0
]
;
then
(
$WINEBIN
/
$WINE_BIN_NAME
"
$@
"
;
echo
$?
>
$status_name
)
2>&1 |
tee
$log_name
wine_return
=
`
cat
$status_name
`
else
$WINEBIN
/
$WINE_BIN_NAME
"
$@
"
wine_return
=
$?
fi
if
[
$use_status_name
-ne
0
]
;
then
rm
-f
$status_name
fi
#------------------------------------------------------------------------------
# Test the return code, and see if it fails
...
...
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