The point is that the profile names / profile IDs are client-side only. Nothing on the server is aware of them.
Ok, it makes sense.
What I do in another project, I compare the commands that launched the session. For this, I quite recently added this commit:
https://code.x2go.org/gitweb?p=python-x2go.git;a=commitdiff;h=f89baa4e4c810f3f1b30e8ce080769d0f996fb43
Yes, comparing the command should work in my case too. I just didn’t feel comfortable processing the session id on my side as I don’t know the exact logic of its creation (and I should not care). But when this processing is done on the side of python-x2go itself, I’m fine with that. Thank you for pointing this out!
Yes. Our client UI is quite specific, but I still have a few ideas for things, which might be useful generally.