Hi,
I have noticed that the command "vncserver -list" returns error code 1.
This can be seen from this Python snippet:
>>> import subprocess
>>> subprocess.run(["vncserver", "-list"], shell=False, check=True)
TigerVNC server sessions:
X DISPLAY # PROCESS ID
:2 1646
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['vncserver', '-list']' returned non-zero exit status 1.
The same behavior can be seen in a normal terminal:
$ vncserver -list
TigerVNC server sessions:
X DISPLAY # PROCESS ID
:2 1646
$ echo $?
1
Is this intended or might it be a bug?
Regards
Magnus