On Sat, Dec 14, 2013 at 04:13:21PM +0100, Alec Leamas wrote: > On 2013-12-14 15:31, Mattia Verga wrote: > >This is the log output: > >+ xhost +SI:localuser:boinc > >xhost: unable to open display "" > >+ sleep 1 > > > I. e., there's no DISPLAY defined when running the systemd script. > I'm not sure there's any easy fix, perhaps some of the elderly have > a hint. You migh ttry to hardcode it (DISPLAY=:0 xhost...) but that > would probably lead to permissions problem (or timing, are you sure > the X server is up&running when running this script? systemd's > parallellization have sometimes surprises ). Yeah, this isn't going to work in any robust way. If you really want to use xhost, it'd be better to run xhost from whatever starts X. (And just to clear up some confusion that you need a shell to do those things, you can set variables with Environment=DISPLAY=:0 ExecStartPre=/usr/bin/xhost +SI:localuser:boinc ... or ExecStartPre=/usr/bin/env DISPLAY=:0 xhost +SI:localuser:boinc ) Zbyszek -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct