Skip to content

Commit feaa2ed

Browse files
committed
Simplify call to vncconfig
1 parent 5f7bf75 commit feaa2ed

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

vncdesk/vnc_server.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,8 @@ def run_startup(arguments, invocation_dir, xauthority_path):
144144

145145
def configure_xvnc(xauthority_path):
146146
global _number
147-
log_and_call("export XAUTHORITY=" + xauthority_path +
148-
"; vncconfig -display=:" + str(_number) +
149-
" -list >/dev/null 2>&1" +
150-
" && (vncconfig -nowin -display=:" + str(_number) + " &)" +
151-
" || echo 'Failure running vncconfig'")
147+
log_and_call("XAUTHORITY=" + xauthority_path + " " +
148+
"vncconfig -nowin -display=:" + str(_number) + " &")
152149

153150
def change_to_configuration_dir():
154151
global _number

0 commit comments

Comments
 (0)