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
724c7d7a
Commit
724c7d7a
authored
Sep 14, 2001
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 14, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Place the log in $TMP if set and /tmp otherwise.
parent
04717f0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
winelauncher.in
tools/winelauncher.in
+11
-6
No files found.
tools/winelauncher.in
View file @
724c7d7a
...
...
@@ -364,13 +364,18 @@ clean_up_info_message ()
#------------------------------------------------------------------------------
# Generate a temporary log file name
#------------------------------------------------------------------------------
if
[
-n
"
$TMP
"
]
;
then
log_dir
=
"
$TMP
"
else
log_dir
=
"/tmp"
fi
use_log_name
=
0
log_name
=
`
mktemp
/tmp/wine.log.XXXXXX
`
log_name
=
`
mktemp
"
$log_dir
/wine.log.XXXXXX"
`
if
[
$?
-eq
0
]
;
then
use_log_name
=
1
fi
use_status_name
=
0
status_name
=
`
mktemp
/tmp/wine.status.XXXXXX
`
status_name
=
`
mktemp
"
$log_dir
/wine.status.XXXXXX"
`
if
[
$?
-eq
0
]
;
then
use_status_name
=
1
fi
...
...
@@ -379,7 +384,7 @@ fi
# Okay, really launch Wine...
#------------------------------------------------------------------------------
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
(
$WINEBIN
/
$WINE_BIN_NAME
"
$@
"
;
echo
$?
>
$status_name
)
2>&1 |
tee
"
$log_name
"
wine_return
=
`
cat
$status_name
`
else
$WINEBIN
/
$WINE_BIN_NAME
"
$@
"
...
...
@@ -395,7 +400,7 @@ fi
if
[
$always_see_output
-eq
0
-a
$wine_return
-eq
0
]
;
then
echo
"Wine exited with a successful status"
if
[
$use_log_name
-ne
0
]
;
then
rm
-f
$log_name
rm
-f
"
$log_name
"
fi
else
if
[
$always_see_output
-eq
0
]
;
then
...
...
@@ -490,10 +495,10 @@ You may view this file by selecting View Log, below."
# Process a view instruction
#------------------------------------------------------------------------------
if
[
$debug_return
-eq
1
]
;
then
$XMESSAGE
-title
"View Wine Log"
-file
$log_name
-buttons
" Okay "
:0,
"Delete
$log_name
"
:1
$XMESSAGE
-title
"View Wine Log"
-file
"
$log_name
"
-buttons
" Okay "
:0,
"Delete
$log_name
"
:1
if
[
$?
-eq
1
]
;
then
echo
"Deleting
$log_name
"
rm
-f
$log_name
rm
-f
"
$log_name
"
use_log_name
=
0
fi
else
...
...
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