[X2go-dev] Extra functions requested in x2go

Dick Kniep dick.kniep at lindix.nl
Tue Jun 22 17:10:57 CEST 2010


Hi List,

Well, actually it is not that difficult to export from the server to the client. In fact, as the user directory is mounted and the user is logged on to the server and is executing our system, it is quite easy. From our system we write the file to the mounted directory and voila it is on the client. No problems with authorization either, because the user himself is writing to the mounted directory.


The next part is trickier. If we want to start the application on the client we should have a command in x2go so that it signals the x2goclient to start the specific file. So no polling, but simply an extra command that is called on the server and sends a message to the client. Now this means a change in the client, and a protocol for the message that is used. Furthermore a command on the server should be there to signal the start of the program on the client. This could be something like "x2gorunclient path-to-the-file"


Added is a drawing of the different parts of the extension. I hope it clears any misunderstanding of what I want. The yellow marked boxes are to be changed, so the x2gorunclient command is to be created and the client has to be changed so it will understand the signal of the x2gorunclient command, interpret it and start the file.



 -----Oorspronkelijk bericht-----
Van: John A. Sullivan III <jsullivan at opensourcedevel.com>
Verzonden: di 22-06-10 14:07:09
Aan: x2go-dev at lists.berlios.de; 
Onderwerp: Re: [X2go-dev] Extra functions requested in x2go

On Tue, 2010-06-22 at 12:37 +0200, Dick Kniep wrote:
> Hi LIst, 
> A little more explanation. We publish our application from Linux, but
> NO desktop. So the user double-clicks an icon on his desktop and the
> application starts in its own window powered by x2go (currently
> GoGlobal). So for the user it is simply an application on his own
> windows/mac/linux desktop.
> In our application there is a menu option to export a list to Excel.
> So I would like to be able to do several things from our application:
> 1. Copy the file to the shared directory of the client
> 2. Start that file (based on the mime type) on the client
> I hope this clears things up.
Yes, I think I'm getting it.  So your application runs on a a Linux X2Go
Server.  The user clicks the icon on their desktop and launches an X2Go
Client which presents your application as a window on their physical
desktop.  You then want your application to be able to copy an excel
spreadsheet to the physical computer where it will automatically open
using whatever application on the physical computer is associated with
the mime-type.  Is that correct?

If so, I'd imagine there is a way but it might be a little tricky.  The
full client (as opposed to the Firefox plugin I've been testing) allows
one to automount local shares.  I suppose one could do this to a
consistent place (that might present some cross platform difficulties).
I'm not sure how one would automate the process of copying to that local
share mounted in /tmp/<uid_media which is soft links to ~/media.  I'm
also not sure if there will be permissions issues trying to copy to the
physical computer unless the copy is done as the user.

I'm also not sure how one would get it to auto-open upon copy.  I
suppose one could write some sort of script to poll the directory where
the files are stored.  Certainly getting out of my depth now! Hope this
helps at least a little bit - John

X2go-dev mailing list
X2go-dev at lists.berlios.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20100622/e18235b3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X2go extension.pdf
Type: application/pdf
Size: 66251 bytes
Desc: not available
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20100622/e18235b3/attachment.pdf>

More information about the x2go-dev mailing list