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

2013-10-01 Thread Manuel Amador (Rudd-O
D-BUS. XAUTHORITY. Other session variables (including KIO / GPG password manager / et cetera). 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. Thus, why I wrote my program. On

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

2013-09-01 Thread James May
On 1 September 2013 01:16, Mantas Mikulėnas graw...@gmail.com wrote: On Sat, Aug 31, 2013 at 4:35 PM, Jan Engelhardt jeng...@inai.de wrote: On Saturday 2013-08-31 14:28, killermoehre wrote: Doesn't Amarok starts if you prefix it with the right DISPLAY variable? Like »DISPLAY=:0 amarok«.

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

2013-08-31 Thread Jan Engelhardt
On Saturday 2013-08-31 14:28, killermoehre wrote: 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

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

2013-08-31 Thread Mantas Mikulėnas
On Sat, Aug 31, 2013 at 4:35 PM, Jan Engelhardt jeng...@inai.de wrote: On Saturday 2013-08-31 14:28, killermoehre wrote: Doesn't Amarok starts if you prefix it with the right DISPLAY variable? Like »DISPLAY=:0 amarok«. This should work from cron, too. Normally, you also need to set XAUTHORITY=

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

2013-08-31 Thread Mantas Mikulėnas
A somewhat more informative reply... On Sat, Aug 31, 2013 at 4:35 PM, Jan Engelhardt jeng...@inai.de wrote: On Saturday 2013-08-31 14:28, killermoehre wrote: Doesn't Amarok starts if you prefix it with the right DISPLAY variable? Like »DISPLAY=:0 amarok«. This should work from cron, too.