On Mon, May 22, 2023 at 6:22 PM Khem Raj <[email protected]> wrote:
>
> On Mon, May 22, 2023 at 5:26 AM Marek Belisko <[email protected]> wrote:
> >
> > Hi,
> >
> > I'm using core-image-weston and adding chromium to the final image.
> > Weston is properly started on the hdmi monitor. I'm trying to start
> > chromium when weston starts with following:
> >
> > [Unit]
> > Description="Chromium browser start"
> > Requires=weston.service
> > After=weston.service
> >
> >
> > [Service]
> > Type=simple
> > Environment=XDG_RUNTIME_DIR="/run/user/0"
>
> Make it Environment=XDG_RUNTIME_DIR="/run/user/`id -u`"
>
> also add
>
> Environment=WAYLAND_DISPLAY="`ls -1 /run/user/`id -u`/ | egrep
> 'wayland-[0-9]+$'`"
Tried that but it was still not working. When I move
XDG_RUNTIME_DIR="/run/user/`id -u`" and the same for WAYLAND_DISPLAY
to my startup script it seems it works.
>
> > ExecStart=/usr/bin/chromium https://google.com
> > Restart=always
> > RestartSec=5
> >
> > User=weston
> > Group=weston
> >
> >
> > [Install]
> > WantedBy=multi-user.target
> >
> > but getting this:
> >
> > May 22 12:23:26 orange-pi-pc2 sh[254]:
> > [250:250:0522/122326.671204:ERROR:wayland_connection.cc(186)] Failed
> > to connect
> > to Wayland display: Permission denied (13)
> > May 22 12:23:26 orange-pi-pc2 sh[254]:
> > [250:250:0522/122326.674692:ERROR:ozone_platform_wayland.cc(233)]
> > Failed to init
> > ialize Wayland platform
> > May 22 12:23:26 orange-pi-pc2 sh[254]:
> > [250:250:0522/122326.674738:ERROR:env.cc(255)] The platform failed to
> > initialize
> > .  Exiting.
> >
> > When running the terminal from wayland desktop chromium works fine. Am
> > I missing something to start it properly?
> >
> > Thanks and BR,
> >
> > marek
> >
> > --
> > as simple and primitive as possible
> > -------------------------------------------------
> > Marek Belisko - OPEN-NANDRA
> > Freelance Developer
> >
> > Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
> > Tel: +421 915 052 184
> > skype: marekwhite
> > twitter: #opennandra
> > web: http://open-nandra.com
> >
> > 
> >

marek
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60090): https://lists.yoctoproject.org/g/yocto/message/60090
Mute This Topic: https://lists.yoctoproject.org/mt/99063456/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to