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

Mantas Mikulėnas grawity at gmail.com
Sat Aug 31 08:18:09 PDT 2013


A somewhat more informative reply...

On Sat, Aug 31, 2013 at 4:35 PM, Jan Engelhardt <jengelh at 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= to the right path --
> since you do not want just anybody to be able to connect to your :0.

Xorg also allows giving access by UID, using `xhost
SI:localuser:$UID`, which removes the requirement to have access to
Xauthority data.

-- 
Mantas Mikulėnas <grawity at gmail.com>


More information about the systemd-devel mailing list