[winswitch] Xpra start applications as a new session

Antoine Martin antoine at nagafix.co.uk
Sun Jun 11 17:49:22 BST 2023


On 30/05/2023 21:46, svhb via shifter-users wrote:
> Hello,
> 
> I want to use xpra to serve an application from a server to some clients, but everyone has to see a newly started up version of the application. The application is a special calculator for material properties, and to prevent updates on every single system, using Xpra to show the application in a browser can be a perfect solution.
> However, if I try to login with a second browser, the first login exits..
To allow multiple clients to connect to *the same* session, use the 
`sharing` option.
When sharing is not enabled, new clients steal the session from the 
current one which is disconnected.

> I need multiple instances, if possible spawned right after connecting >
> Are there some settings/configuration I can do the realize this?
Yes, many.
Which one is right for you depends on a number of things.
OTOH: user density, hardware available, security concerns, reliability 
desired, type of application, etc.

If you can manage ports and / or user accounts and give each user a 
different URL to connect to, then you can simply spawn new instances as 
needed. (or even have a pool of sessions pre-launched, ready to be used)

If you want to use the same URL for all the clients, things are a bit 
more difficult, but not impossible.
You could use some sort of apache or nginx proxy that does the 
allocation. Or you could use xpra's builtin proxy server to spawn new 
sessions on demand by configuring it with the `allow` authentication and 
a matching "start-new-session" URL request.

The type of application matters: some applications don't mind running 
multiple instances under the same user account, others won't work 
properly, some will just refuse to run that way...

Cheers,
Antoine


> 
> Thanks in a advance,
> 
> Stefaan.
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> https://lists.devloop.org.uk/mailman/listinfo/shifter-users



More information about the shifter-users mailing list