title: Integrate web with desktop application
body: <p>I have to integrate a single page javascript web application which I wrote with a bunch of desktop applications which I don't control, but I'm expected to provide integration instructions.</p>
  
  <p>The initiator of communication is a desktop application. Let say, users presses F5 and browser opens with certain url. A simple way must be provided for the user to return to
  the desktop application.</p>
  
  <p>The solution does not have to be browser and OS agnostic. It is OK if it works only for firefox or IE on windows (XP and later).</p>
  
  <p>I intended to create XUL plugin which opens a socket server and launches web application with the received url. For the way back, I would provide a simple button to close the browser window.</p>
  
  <p>Is there a better way to do the integration?</p>