mirror of
https://github.com/nmap/nmap.git
synced 2026-07-11 18:55:08 +00:00
Don't hack_xinitrc if system xinitrc doesn't exist.
This commit is contained in:
parent
4c9a3ef4de
commit
d662ef817b
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ def start_x11():
|
|||
return
|
||||
system_xinitrc_filename = "/usr/X11R6/lib/X11/xinit/xinitrc"
|
||||
home_xinitrc_filename = os.path.join(HOME, ".xinitrc")
|
||||
if not os.path.exists(home_xinitrc_filename):
|
||||
if os.path.exists(system_xinitrc_filename) and not os.path.exists(home_xinitrc_filename):
|
||||
hack_xinitrc(system_xinitrc_filename, home_xinitrc_filename)
|
||||
os.system("open -a X11")
|
||||
os.environ["DISPLAY"] = ":0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue