Hi all,
I'm one of the main Remmina contributors, a C/GTK application used to connect to a remote server using different protocols.
We have an NX plugin, that I'm even not sure is working, so I decided to write an X2Go plugin.
So far so good, I was able to implement a kind of wrapper around pyhoca-cli, but as I'm far to be a good developer, I'm having some hard time to try to embed/reparent, the X2Go windows inside our GTK container.
This is usually achieved implementing the Xembed protocol, on both side and for what I can see/understand, X2Go, or at least Pyhoca-cli, doesn't.
Am I wrong? In the case would it be possible to implement or are you aware of any other approach of doing it?
Some references:
https://github.com/FreeRDP/Remmina/tree/x2goplugin https://github.com/FreeRDP/Remmina/tree/x2goplugin/remmina-plugins/x2go The "xterm -into windowID" it's just to showcase the fact that the reparenting works.
http://standards.freedesktop.org/xembed-spec/xembed-spec-latest.html
https://developer.gnome.org/gtk3/unstable/GtkSocket.html
Thanks a lot for your precious work and support!
Best regards Antenore
-- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GIT !d s: !a C++ UL++++ P+++ L+++ E--- W+++ N+++ o-- K- w--- O+ M-- V-- PS+++ PE Y+ PGP t+++ 5++ X R++ tv- b+ DI D++ G e+ h---- r+++ y++++ ------END GEEK CODE BLOCK------
On Wed, 15 Jul 2015, Antenore Gatta wrote:
Hi all,
I'm one of the main Remmina contributors, a C/GTK application used to connect to a remote server using different protocols.
We have an NX plugin, that I'm even not sure is working, so I decided to write an X2Go plugin.
The NX plugin is working, I'm using it. But would very much like an
X2Go plugin.
So far so good, I was able to implement a kind of wrapper around pyhoca-cli, but as I'm far to be a good developer, I'm having some hard time to try to embed/reparent, the X2Go windows inside our GTK container.
This is usually achieved implementing the Xembed protocol, on both side and for what I can see/understand, X2Go, or at least Pyhoca-cli, doesn't.
Am I wrong? In the case would it be possible to implement or are you aware of any other approach of doing it?
Some references:
https://github.com/FreeRDP/Remmina/tree/x2goplugin https://github.com/FreeRDP/Remmina/tree/x2goplugin/remmina-plugins/x2go The "xterm -into windowID" it's just to showcase the fact that the reparenting works.
http://standards.freedesktop.org/xembed-spec/xembed-spec-latest.html
https://developer.gnome.org/gtk3/unstable/GtkSocket.html
Thanks a lot for your precious work and support!
Best regards Antenore
Wish I understood it better, not well enough to be of help. But I can
tell you with certainty, the NX plugin does work (but no sound).
Hi Antenore,
I am the main upstream dev of PyHoca.
On Mi 15 Jul 2015 09:44:52 CEST, Antenore Gatta wrote:
Hi all,
I'm one of the main Remmina contributors, a C/GTK application used to connect to a remote server using different protocols.
We have an NX plugin, that I'm even not sure is working, so I decided to write an X2Go plugin.
So far so good, I was able to implement a kind of wrapper around pyhoca-cli, but as I'm far to be a good developer, I'm having some hard time to try to embed/reparent, the X2Go windows inside our GTK container.
This is usually achieved implementing the Xembed protocol, on both side and for what I can see/understand, X2Go, or at least Pyhoca-cli, doesn't.
Am I wrong? In the case would it be possible to implement or are you aware of any other approach of doing it?
Some references:
https://github.com/FreeRDP/Remmina/tree/x2goplugin https://github.com/FreeRDP/Remmina/tree/x2goplugin/remmina-plugins/x2go The "xterm -into windowID" it's just to showcase the fact that the reparenting works.
http://standards.freedesktop.org/xembed-spec/xembed-spec-latest.html
https://developer.gnome.org/gtk3/unstable/GtkSocket.html
Thanks a lot for your precious work and support!
As you have NX embedding working, something similar should be doable
with X2Go. Under the hood, PyHoca-CLI calls the nxproxy binary.
How do you handle embedding in the NX plugin from remmina?
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
On Wed, 15 Jul 2015 10:41:17 +0000 Mike Gabriel <mike.gabriel@das-netzwerkteam.de> wrote:
Hi Antenore,
I am the main upstream dev of PyHoca.
^_^
..
As you have NX embedding working, something similar should be doable
with X2Go. Under the hood, PyHoca-CLI calls the nxproxy binary.How do you handle embedding in the NX plugin from remmina?
I was looking for the easiest solution, because, as everybody, I've limited time.
In lines of code, the solution with pyhoca-cli, is the easiest:
SLOC Directory SLOC-by-Language (Sorted) 1817 nx ansic=1817 185 x2go ansic=185
The nx plugin is quite (relatively) complex, using threads, xlib and XKB functions.
Reimplementing everything for x2go will be quite hard for me, that's why I asked if you have an easy solution.
The behavior I'm looking for it's the same as some applications like xterm or vim.
xterm -into $windowid vim --socketid $windowid
Obviously I can find out how to "duplicate" the remmina-nx functions with x2go.. JU hoping to have a easier solution
Greets, Mike
Greetings Antenore
-- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GIT !d s: !a C++ UL++++ P+++ L+++ E--- W+++ N+++ o-- K- w--- O+ M-- V-- PS+++ PE Y+ PGP t+++ 5++ X R++ tv- b+ DI D++ G e+ h---- r+++ y++++ ------END GEEK CODE BLOCK------
Hi Antenore,
On Mi 15 Jul 2015 14:24:48 CEST, Antenore Gatta wrote:
The behavior I'm looking for it's the same as some applications like xterm or vim.
xterm -into $windowid vim --socketid $windowid
Obviously I can find out how to "duplicate" the remmina-nx functions with x2go.. JU hoping to have a easier solution
We have such an option on the todo list for nxproxy (and then for pyhoca-cli).
I'll see what I can do in the next couple of days...
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...