<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    D-BUS.<br>
    <br>
    XAUTHORITY.<br>
    <br>
    Other session variables (including KIO / GPG password manager / et
    cetera).<br>
    <br>
    You get the use of none of these things in your cron-started
    programs... unless you use my program.  Some programs even flat out
    refuse to start, actually.<br>
    <br>
    Thus, why I wrote my program.<br>
    <br>
    <div class="moz-cite-prefix">On 08/31/2013 05:28 AM, killermoehre
      wrote:<br>
    </div>
    <blockquote cite="mid:5221E153.6030200@gmx.net" type="cite">
      <pre wrap="">Am 31.08.2013 11:09, schrieb Manuel Amador (Rudd-O):
</pre>
      <blockquote type="cite">
        <pre wrap="">Based on systemd's related sibling loginctl, I managed to accomplish the
holy grail of the 90's: get Amarok to play music on my desktop sessiom
from a crontab (motivated by the missus' desire to have an alarm in the
home theater that requires her to walk downstairs, to adapt to her
polyphasic sleep):

<a class="moz-txt-link-freetext" href="https://github.com/Rudd-O/run-in-gui">https://github.com/Rudd-O/run-in-gui</a>

Pull requests to, well, there.  Flames to my personal email.  I'm sure
it's buggy as fuck since it's been working only for the last half an
hour or so, but we pulled it off together in the space of 2 hours.

Enjoy!
</pre>
      </blockquote>
      <pre wrap="">
Doesn't Amarok starts if you prefix it with the right DISPLAY variable?
Like »DISPLAY=:0 amarok«. This should work from cron, too.

Regards


</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
systemd-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>