Xpra: Ticket #115: Bail out when password file is not present

Hello,

when Xpra is passed an incorrect password file when starting a session (xpra start), it spits out the following:

cannot open password file passwd: [Errno 2] No such file or directory: 'passwd' and happily goes on.

It should actually exit.



Mon, 23 Apr 2012 17:28:24 GMT - Antoine Martin:

Strongly disagree: the password file can be created, or changed, at any time. If it does not exist then the password just won't match - which is also fine. This way, scripts and tools can change/delete the password file to prevent/give-new access to a session.


Mon, 23 Apr 2012 17:49:28 GMT - ahuillet:

I understand and it's a good idea.

I have one question however: it seems that Xpra's CWD becomes / for some reason, so passing a relative path to the password file doesn't work (at least in the case I tried). Are you aware of that?


Mon, 23 Apr 2012 17:52:04 GMT - Antoine Martin: status changed; resolution set

hmmm, I don't know about CWD changing to '/' - it sort of rings a bell.


Sat, 23 Jan 2021 04:45:57 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/115