Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Adam Jackson
xserver
Commits
80b67685
Commit
80b67685
authored
Oct 23, 2008
by
Jeremy Huddleston
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XQuartz: Do check_xinitrc() later to avoid possible deadlock.
(cherry picked from commit
af95174a
)
parent
d837d4e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
hw/xquartz/X11Application.m
hw/xquartz/X11Application.m
+16
-13
hw/xquartz/bundle/Resources/English.lproj/Localizable.strings
...quartz/bundle/Resources/English.lproj/Localizable.strings
+0
-0
No files found.
hw/xquartz/X11Application.m
View file @
80b67685
...
...
@@ -788,20 +788,19 @@ static void check_xinitrc (void) {
Windows displayed by X11 applications may not have titlebars, or may look \
different to windows displayed by native applications.
\n\n
\
Would you like to move aside the existing file and use the standard X11 \
environment?"
,
@"Startup xinitrc dialog"
);
if
(
NSRunAlertPanel
(
nil
,
msg
,
NSLocalizedString
(
@"Yes"
,
@""
),
NSLocalizedString
(
@"No"
,
@""
),
nil
)
==
NSAlertDefaultReturn
)
{
char
buf2
[
1024
];
int
i
=
-
1
;
snprintf
(
buf2
,
sizeof
(
buf2
),
"%s.old"
,
buf
);
environment the next time you start X11?"
,
@"Startup xinitrc dialog"
);
if
(
NSAlertDefaultReturn
==
NSRunAlertPanel
(
nil
,
msg
,
NSLocalizedString
(
@"Yes"
,
@""
),
NSLocalizedString
(
@"No"
,
@""
),
nil
))
{
char
buf2
[
1024
];
int
i
=
-
1
;
for
(
i
=
1
;
access
(
buf2
,
F_OK
)
==
0
;
i
++
)
snprintf
(
buf2
,
sizeof
(
buf2
),
"%s.old.%d"
,
buf
,
i
);
snprintf
(
buf2
,
sizeof
(
buf2
),
"%s.old"
,
buf
);
rename
(
buf
,
buf2
);
for
(
i
=
1
;
access
(
buf2
,
F_OK
)
==
0
;
i
++
)
snprintf
(
buf2
,
sizeof
(
buf2
),
"%s.old.%d"
,
buf
,
i
);
rename
(
buf
,
buf2
);
}
done:
...
...
@@ -824,7 +823,6 @@ void X11ApplicationMain (int argc, char **argv, char **envp) {
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
NSApp
selector:
@selector
(
became_key
:)
name:
NSWindowDidBecomeKeyNotification
object
:
nil
];
check_xinitrc
();
/*
* The xpr Quartz mode is statically linked into this server.
...
...
@@ -850,6 +848,11 @@ void X11ApplicationMain (int argc, char **argv, char **envp) {
/* Tell the server thread that it can proceed */
QuartzInitServer
(
argc
,
argv
,
envp
);
/* This must be done after QuartzInitServer because it can result in
* an mieqEnqueue() - <rdar://problem/6300249>
*/
check_xinitrc
();
[
NSApp
run
];
/* not reached */
...
...
hw/xquartz/bundle/Resources/English.lproj/Localizable.strings
View file @
80b67685
B
/* Dialog title when quitting */
...
...
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