This is very specifically for a SBC running a single application(Browser) in weston. This script will launch it from a vt, but I need it to be able to be launched as a service.Įxec /usr/bin/luakit') keithspg Posts: 221 Joined: Mon 4:14 pm #backend=/usr/lib/libweston-9/drm-backend.so $this->bbcode_second_pass_code('', '#kiosk weston iniīackend=/usr/lib/libweston-9/fbdev-backend.so How do I launch the browser after weston is started?ĮxecStart=/usr/bin/weston -tty=1 -modules=systemd-notify.soĮxecStartPost=/usr/bin/sleep 2s /usr/bin/luakit It is the ExecStartPost line that is causing the problem. it is as if it is waiting to return and I have to ctrl-c to get the prompt back after I send 'systemctl start rvice. Now I cannot get the service file to return a prompt. When I run the script from a vt it works. I have a single program I want to run in weston and the script does it, I just need a service file to start and stop it. I do not get the difference between weston-launch and weston. I've tried the fbdev and drm backend and get the same error. Mar 07 15:21:18 rune64 systemd: local-browser_w.service: Failed with result 'exit-code'. Mar 07 15:21:18 rune64 systemd: local-browser_w.service: Control process exited, code=killed, status=15/TERM Mar 07 15:21:17 rune64 systemd: local-browser_w.service: Main process exited, code=exited, status=1/FAILURE Mar 07 15:21:17 rune64 weston: fatal: failed to create compositor backend Mar 07 15:21:17 rune64 weston: fatal: fbdev backend should be run using weston-launch binary, or your system should provide the logind D-Bus API. Mar 07 15:21:17 rune64 weston: logind: cannot setup systemd-logind helper (-61), using legacy fallback Mar 07 15:21:17 rune64 weston: logind: not running in a systemd session Mar 07 15:21:17 rune64 weston: initializing fbdev backend Mar 07 15:21:17 rune64 weston: Loading module '/usr/lib/libweston-9/fbdev-backend.so' Mar 07 15:21:17 rune64 weston: Output repaint window is 7 ms maximum. Mar 07 15:21:17 rune64 weston: Using config file '/srv/http/.config/weston.ini' Mar 07 15:21:17 rune64 weston: Command line: /usr/bin/weston Mar 07 15:21:17 rune64 weston: Bug reports to: $this->bbcode_second_pass_code('', 'ĭescription=Weston Local Browser Kiosk modeĮnvironment="XDG_RUNTIME_DIR=/run/weston"ĮxecStartPost=/usr/bin/sleep 2s /usr/bin/surfer ExecStop=/usr/bin/pkill -15 weston I created a service file and am trying to get it to launch but there is a problem with logind and something else, I imagine. Now I want to launch it as a service file. # And that $XDG_RUNTIME_DIR has been set and created.Įxec /usr/bin/surfer this works and does exactly what I want. $this->bbcode_second_pass_code('', '# Make sure that $DISPLAY is unset. Since the latest version supports this functionality, I have created a script to launch it and can verify that it does work:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |