[X2go-dev] Extra functions requested in x2go

John A. Sullivan III jsullivan at opensourcedevel.com
Tue Jun 22 14:07:00 CEST 2010

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

More information about the x2go-dev mailing list