1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Don't hack_xinitrc if system xinitrc doesn't exist.

This commit is contained in:
david
2012-11-29 20:49:47 +00:00
parent 4c9a3ef4de
commit d662ef817b

View File

@@ -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"