<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
      On 05/13/2015 08:52 AM, John Hupp wrote:<br>
    </div>
    <blockquote cite="mid:55535729.5050102@prpcompany.com" type="cite">On
      5/13/2015 8:30 AM, Israel wrote:
      <br>
      <blockquote type="cite">...<br>
      </blockquote>
      <br>
      Hi, Israel.  Interesting thoughts.  Someone on the Ubuntu list
      thought that the upstart approach probably wouldn't work because
      1) $HOME is not part of the upstart environment (which I believe
      is true, and which you would attempt to work around), and 2) the
      upstart job would run as root, so even if available, $HOME
      wouldn't have the value I wanted.  If #2 is correct, then I
      imagine 'xdg-user-dir HOME' likewise would not return the value I
      wanted.
      <br>
      <br>
      But he did acknowledge that he was not highly knowledgeable about
      upstart, so maybe #2 is suspect.
      <br>
      <br>
      In any case, when the upstart job was not working for me, I bolted
      and used a script + autostarting desktop shortcut, which did work.
      <br>
      <br>
    </blockquote>
    Hi again John,<br>
    if this is for your own personal use (i.e. not needing to be used by
    other users, etc...)<br>
    you could make a hack and hard code your path:<br>
    /home/john<br>
    (or whatever it is)<br>
    but, I DON'T REALLY RECOMMEND HARD-CODED PATHS EVER!!!!!!<br>
    :D<br>
    <br>
    <tt>The desktop file solution, with something similar to:</tt><tt><br>
    </tt><tt>[Desktop Entry]</tt><tt><br>
    </tt><tt>Name=awesomeness</tt><tt><br>
    </tt><tt>Comment=Make awesomeness</tt><tt><br>
    </tt><tt>Exec=/path/to/script-awesomeness</tt><tt><br>
    </tt><tt>Terminal=false</tt><tt><br>
    </tt><tt>Type=Application</tt><tt><br>
    </tt><tt>Categories=System;</tt><tt><br>
    </tt><tt>StartupNotify=false</tt><br>
    <br>
    would be much more portable, as it has been pointed out, upstart is
    a technology that may be phased out.<br>
    AFAIK scripting will live on for a loooooooooong while.<br>
    Desktop files seem to be here for the foreseeable future<br>
    <br>
    So a desktop file with a script seems to be the nicest, easiest
    method, unless using xdg helps.<br>
    <br>
    I think it is <b>better</b> to do it this way, as the DE will be
    loaded and you will be logged in.<br>
    <br>
    I do something similar for my touchpad.  I have an autostart that
    sets all the synclient parameters I want (there are really no front
    ends that have the options I want... like 3 finger middle click)<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Regards</pre>
  </body>
</html>