[systemd-devel] Small tool to spawn programs in graphical sessions from non-graphical ones

killermoehre killermoehre at gmx.net
Sat Aug 31 05:28:03 PDT 2013


Am 31.08.2013 11:09, schrieb Manuel Amador (Rudd-O):
> 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):
> 
> https://github.com/Rudd-O/run-in-gui
> 
> 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!

Doesn't Amarok starts if you prefix it with the right DISPLAY variable?
Like »DISPLAY=:0 amarok«. This should work from cron, too.

Regards


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130831/0cadfd3d/attachment.pgp>


More information about the systemd-devel mailing list