If you explicitly set the env in ExecStart like below, does it work? ExecStart= /bin/sh -c 'export XDG_RUNTIME_DIR=/run/user/5000 ; /usr/bin/weston-launch -- -i0 --current-mode'
Thanks, Ning From: IVI [mailto:[email protected]] On Behalf Of kongling Sent: Monday, September 15, 2014 10:14 AM To: [email protected] Subject: Weston-launch failed in systemd Hi, I run the ivi image and weston-launch failed. version : http://download.tizen.org/releases/daily/tizen/ivi/tizen-ivi_20140909.4/ Dec 31 16:04:19 localhost weston-launch[260]: [16:04:19.285] Loading module '/usr/lib/weston/fbdev-backend.so' Dec 31 16:04:19 localhost weston-launch[260]: [16:04:19.307] initializing fbdev backend Dec 31 16:04:19 localhost weston-launch[260]: [16:04:19.326] Loading module '/usr/lib/weston/gl-renderer.so' Dec 31 16:04:19 localhost weston-launch[260]: [16:04:19.334] fbGetDisplay failed. Dec 31 16:04:19 localhost weston-launch[260]: [16:04:19.334] fatal: failed to create compositor I recognized that the env "XDG_RUNTIME_DIR" is not set, so I set the env in the tty2 and weston-launch worked manually.Thus, the problem is the env "XDG_RUNTIME_DIR". The env is setted in "[email protected]<mailto:[email protected]>", but it seems like not worked. Then, I add "Environment=XDG_RUNTIME_DIR=/run/user/5000" before "ExecStart=/usr/bin/weston-launch -- -i0 --current-mode" in the "weston.service", and it's no use. Is there anyway to set "XDG_RUNTIME_DIR" before "weston-launch" ? BR, kongling
_______________________________________________ IVI mailing list [email protected] https://lists.tizen.org/listinfo/ivi
