Xpra: Ticket #2523: attach to existing server instead of trying to start another one on the same display

See xpra upgrade-or-start --use-display=auto.

Make it possible to start a new session if one does not exist, otherwise upgrade the existing one. Also adding use-display=auto since the display may have been left behind by a server crash.



Fri, 20 Dec 2019 14:17:01 GMT - Antoine Martin: status, description changed


Fri, 27 Dec 2019 15:43:35 GMT - Antoine Martin:

r24791 adds use-display=auto


Thu, 06 Feb 2020 06:36:15 GMT - Antoine Martin:

See also #2426.


Tue, 11 Feb 2020 19:49:06 GMT - stdedos:

To get it right: This requires a v4.0 server?


Wed, 12 Feb 2020 04:43:07 GMT - Antoine Martin:

To get it right: This requires a v4.0 server?

Yes. And for remote starts via ssh, this is likely to require a v4 client too. We'll see once that part is implemented.


Sat, 11 Apr 2020 16:31:49 GMT - Antoine Martin: owner, status, summary changed

Done using a new --use-existing=yes|no|auto flag in r26091.

Usage examples:

xpra start ssh://host/10 --start=xterm --use-existing=yes

Can be repeated any number of times, only the first one will start new server.

xpra shadow ssh://host/ --use-existing=yes

If a server exists it is re-used and the connection succeeds.

EDIT: this syntax is now invalid, see comment:8.

Note: --use-existing=yes will be passed on to the server via the ssh command, if that server is a v3.0 or older then it won't know about this option and the whole thing will fail.

@stdedos: I think you will like this one.


Sat, 11 Apr 2020 16:37:44 GMT - stdedos:

Replying to Antoine Martin:

@stdedos: I think you will like this one.

I like this one more 😛:

Note: --use-existing=yes will be passed to the server via the ssh command, if that server is a v3.0 or older then it won't know about this option and the whole thing will fail.


Sun, 12 Apr 2020 15:55:34 GMT - Antoine Martin:

Updates:

Ignore comment:6, I found a way to make it work just by overloading --attach=yes. The --use-existing option has been removed, the benefit is that this will also degrade well with 3.x servers.

It is now even easier:

xpra start ssh://localhost/3 --start=xterm

Locally:

xpra start :3 --start=xterm --attach=yes

Sun, 12 Apr 2020 15:56:57 GMT - Antoine Martin: summary changed


Fri, 08 May 2020 14:19:58 GMT - Antoine Martin: status changed; resolution set


Sat, 23 Jan 2021 05:53:35 GMT - migration script:

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