Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.98k stars 169 forks source link

Bugfix: When checking for existing user config, expand tilde to HOME #4296

Closed luke-jr closed 4 months ago

luke-jr commented 4 months ago

Without this, os.path.exists looks for a literal directory named '~' and returns False, causing Xpra to overwrite the existing user config

totaam commented 4 months ago

Please use https://github.com/Xpra-org/xpra/blob/d0f325c8981dde8258e9b08a109ffb6275501e96/xpra/util/env.py#L90 instead. How did this get triggered?

luke-jr commented 4 months ago

idk, it always happens every time for me

totaam commented 4 months ago

How, what specific command?

luke-jr commented 4 months ago

xpra --help is enough

totaam commented 4 months ago

Done in 11a2239ca89f7457ab0ca91097d777e3ac17f981