patched $DISPLAY error for Systemd

modified indentation server_thread function
This commit is contained in:
Matteo ℱan 2019-06-03 23:23:36 +02:00 committed by GitHub
parent 236845f4c0
commit 21ac398f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,4 +263,7 @@ if __name__ == "__main__":
if sys.stdout.isatty(): if sys.stdout.isatty():
srv_main_without_gui() srv_main_without_gui()
else: else:
try:
srv_main_with_gui() srv_main_with_gui()
except:
srv_main_without_gui()