On Wed, 22 Sep 2010 15:56:01 +0200, Jörg Sawatzki <joerg.sawatzki@web.de> wrote:
Basically, I'd say this is actually not a plugin specific question. What you need to do is (1) make your webapp talk to the x2go server to get the list of sessions. The webapp should then dynamically create a configuration file that is loaded by the plugin,
It's already done :)
1: Getting the list of sessions shouldn't be a problem at all: If your webapp is in python, you can use the pyx2go library and only need three lines of code - if not, find an ssh library for your programming language, connect to the x2go host using ssh, execute x2golistsessions and parse the output.
For another reason I already use paramiko (maybe I'll release some code). Then it's exactly what I do.
(is it possible to write a Python plugin for web browser ?)
2: This is probably the point where it all breaks: As far as I can see, the x2goplugin does not have an option for this "x2go.server" file that tells it to resume a specified session. Maybe dig through the docs if
Indeed, I didn't see any option in the docs and the code.
you can find something. If not - get the source code for the plugin and the x2goclient and modify it to your needs. It is GPL and it should _theoretically_ be possible to get it.
I'm afraid I don't have time to do this now, and I don't want to modify the code before the — official — release. Maybe in one month if the plugin is officially released.
I'll read again the code and see if I find something… Thanks for your reply !
Guillaume