<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v6.05-12338">
  <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  <title>RE: Re: [X2go-dev] Extra functions requested in x2go</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<p>Hi List,<br /> </p><p>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.</p><p> </p><p>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"</p><p> </p><p>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.<br /> </p><p>Cheers,</p><p>Dick</p><blockquote style="border-left: 2px solid rgb(50, 95, 186); padding-left: 5px; margin-left: 5px;">-----Oorspronkelijk bericht-----<br /><strong>Van:</strong> John A. Sullivan III <jsullivan@opensourcedevel.com><br /><strong>Verzonden:</strong> di 22-06-10 14:07:09<br /><strong>Aan:</strong> x2go-dev@lists.berlios.de; <br /><strong>Onderwerp:</strong> Re: [X2go-dev] Extra functions requested in x2go<br /><br />On Tue, 2010-06-22 at 12:37 +0200, Dick Kniep wrote:<br />> Hi LIst, <br />>  <br />> <br />> A little more explanation. We publish our application from Linux, but<br />> NO desktop. So the user double-clicks an icon on his desktop and the<br />> application starts in its own window powered by x2go (currently<br />> GoGlobal). So for the user it is simply an application on his own<br />> windows/mac/linux desktop.<br />> <br />>  <br />> <br />> In our application there is a menu option to export a list to Excel.<br />> So I would like to be able to do several things from our application:<br />> <br />>  <br />> <br />> 1. Copy the file to the shared directory of the client<br />> <br />> 2. Start that file (based on the mime type) on the client<br />> <br />>  <br />> <br />> I hope this clears things up.<br /><snip><br />Yes, I think I'm getting it.  So your application runs on a a Linux X2Go<br />Server.  The user clicks the icon on their desktop and launches an X2Go<br />Client which presents your application as a window on their physical<br />desktop.  You then want your application to be able to copy an excel<br />spreadsheet to the physical computer where it will automatically open<br />using whatever application on the physical computer is associated with<br />the mime-type.  Is that correct?<br /><br />If so, I'd imagine there is a way but it might be a little tricky.  The<br />full client (as opposed to the Firefox plugin I've been testing) allows<br />one to automount local shares.  I suppose one could do this to a<br />consistent place (that might present some cross platform difficulties).<br />I'm not sure how one would automate the process of copying to that local<br />share mounted in /tmp/<uid_media which is soft links to ~/media.  I'm<br />also not sure if there will be permissions issues trying to copy to the<br />physical computer unless the copy is done as the user.<br /><br />I'm also not sure how one would get it to auto-open upon copy.  I<br />suppose one could write some sort of script to poll the directory where<br />the files are stored.  Certainly getting out of my depth now! Hope this<br />helps at least a little bit - John<br /><br />_______________________________________________<br />X2go-dev mailing list<br />X2go-dev@lists.berlios.de<br />https://lists.berlios.de/mailman/listinfo/x2go-dev<br /><br />!DSPAM:4c20a76d290751343511188!<br /><br /></blockquote>
</body>
</html>