<div dir="ltr">Thanks for your answer.<div><br></div><div>> <span style="font-size:12.800000190734863px">you should be starting weston, not weston-launch, when you have a </span><span style="font-size:12.800000190734863px">proper logind. weston-launch is for users who do not have logind </span><span style="font-size:12.800000190734863px">service.</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">I think weston-launch does more than just weston, in some case weston wasn't able to start full-screen but I might give it another try with just weston on that very same service, unless there is a better way (for which I'd love an example)</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">> </span><span style="font-size:12.800000190734863px">This is really not meant to be used like you use it. The shell client </span><span style="font-size:12.800000190734863px">is a special client, it is not the place to plug in random applications </span><span style="font-size:12.800000190734863px">for autolaunch.</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">AFAIK Weston is a compositor but it does not provide a way to auto launch applications if not through the shell.</span></div><div><span style="font-size:12.800000190734863px">What you see there is what Tizen does (or used to do) together with every other Kiosk based on Weston.</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">Is there any other way to launch a full screen-kiosk app if not through shell?</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">> </span><span style="font-size:12.800000190734863px">E.g. if you have a floating window, and you want to resize it by </span><span style="font-size:12.800000190734863px">dragging a pointer, the cursor is left as what the app last set it, </span><span style="font-size:12.800000190734863px">rather than the cursor the compositor would pick.</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">Benja is a Web Kiosk, has no floating window, just evnetually Gtk modals and these show up fine.</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">> You cannot have screen locking.</span><div><span style="font-size:12.800000190734863px"><br></span><div>I've posted my configuration which disables screen locking, not an issue.</div><div><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">> Indications for frozen app windows is missing.</span></div><div><br></div><div>if the browser freeze there's nothing else Benja can do if not a browser reset</div><div><br style="font-size:12.800000190734863px"><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">> The compositor start-up will take long, because it needs to time out </span><span style="font-size:12.800000190734863px">before fading in since the shell client is not signalling ready. In the </span><span style="font-size:12.800000190734863px">future there might be more things than just fade-in that wait for the </span><span style="font-size:12.800000190734863px">read-signal.</span><br style="font-size:12.800000190734863px"><br>the fade and animations are disabled, as you can see from the config so not an issue.<br><br><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">> If your app ever goes non-fullscreen, you will see garbage outside the </span><span style="font-size:12.800000190734863px">app window.</span></div><div><br></div><div>it never does that. It's an always full screen Web Kiosk with disabled resize.</div><div><br></div><div><br style="font-size:12.800000190734863px"><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">> You possibly see garbage or glitches during startup if you disable the </span><span style="font-size:12.800000190734863px">fade-in animation.</span></div><div><br></div><div>I don't, like I've said Benja works already. It has been out for months now.</div><div><br></div><div><br style="font-size:12.800000190734863px"><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">> Maybe mod+tab shows wrong blending as there is no wallpaper.</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">I don't want wallpaper, or at least not a system one, it's a Web Kiosk system.</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">> Those are just what came to mind off-hand, there's possibly more.</span></div><div><br></div><div>If you think there are more specific for Benja use case please let me know 'cause so far ....</div><div><br></div><div><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">> So yeah, it probably works for you for now, if you don't pay attention </span><span style="font-size:12.800000190734863px">to details and nothing in apps ever fails. I'd call that fragile.</span><br style="font-size:12.800000190734863px"><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">... I've paid attention already to these details and configured it to *not* be fragile. (it's been on for weaks now on my raspi2)</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">Best Regards.</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px"><br></span></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 11, 2016 at 9:47 AM, Pekka Paalanen <span dir="ltr"><<a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 10 Nov 2016 14:48:53 +0000<br>
Andrea Giammarchi <<a href="mailto:andrea.giammarchi@gmail.com">andrea.giammarchi@gmail.com</a>> wrote:<br>
<br>
> > why is it using weston-launch when you have systemd?<br>
><br>
> I am not sure I understand; that file is a service that's enable via<br>
> systemctl and it launches weston once the graphic is ready, right?<br>
><br>
> How else would you start weston on boot? Is there already a weston service<br>
> I am missing? That might simplify things for me.<br>
<br>
</span>Hi,<br>
<br>
you should be starting weston, not weston-launch, when you have a<br>
proper logind. weston-launch is for users who do not have logind<br>
service.<br>
<br>
weston-launch does support cases where logind exists, in which case it<br>
remains unused - an extra setuid-root process with no purpose.<br>
<span class=""><br>
> > No, that does not fully work<br>
><br>
> FWICT benja works already pretty well and for a kiosk like system I think<br>
> the following is enough, or at least it is enough for benja use case ...<br>
> isn't it? Am I missing some configuration?<br>
><br>
> ```<br>
> [core]<br>
> idle-time=0<br>
> modules=xwayland.so<br>
><br>
> [shell]<br>
> client=/usr/bin/app<br>
<br>
</span>This is really not meant to be used like you use it. The shell client<br>
is a special client, it is not the place to plug in random applications<br>
for autolaunch.<br>
<span class=""><br>
> animation=none<br>
> close-animation=none<br>
> startup-animation=none<br>
> locking=false<br>
> ```<br>
><br>
> > It may appear to work at first, but you will miss the corner cases.<br>
><br>
> can you please indicate some of these corner cases?<br>
<br>
</span>I listed them already.<br>
<br>
E.g. if you have a floating window, and you want to resize it by<br>
dragging a pointer, the cursor is left as what the app last set it,<br>
rather than the cursor the compositor would pick.<br>
<br>
You cannot have screen locking.<br>
<br>
Indications for frozen app windows is missing.<br>
<br>
The compositor start-up will take long, because it needs to time out<br>
before fading in since the shell client is not signalling ready. In the<br>
future there might be more things than just fade-in that wait for the<br>
read-signal.<br>
<br>
If your app ever goes non-fullscreen, you will see garbage outside the<br>
app window.<br>
<br>
You possibly see garbage or glitches during startup if you disable the<br>
fade-in animation.<br>
<br>
Maybe mod+tab shows wrong blending as there is no wallpaper.<br>
<br>
Those are just what came to mind off-hand, there's possibly more.<br>
<br>
So yeah, it probably works for you for now, if you don't pay attention<br>
to details and nothing in apps ever fails. I'd call that fragile.<br>
<br>
<br>
Thanks<br>
pq<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> On Thu, Nov 10, 2016 at 10:57 AM, Pekka Paalanen <<a href="mailto:ppaalanen@gmail.com">ppaalanen@gmail.com</a>><br>
> wrote:<br>
><br>
> > On Thu, 10 Nov 2016 09:44:58 +0000<br>
> > Andrea Giammarchi <<a href="mailto:andrea.giammarchi@gmail.com">andrea.giammarchi@gmail.com</a>> wrote:<br>
> ><br>
> > > It looks like you want something like benja ( <a href="https://benja.io/" rel="noreferrer" target="_blank">https://benja.io/</a> ) which<br>
> > is<br>
> > > Weston + Electron based.<br>
> > ><br>
> > > It uses a service:<br>
> > > <a href="https://github.com/WebReflection/benja/blob/gh-" rel="noreferrer" target="_blank">https://github.com/<wbr>WebReflection/benja/blob/gh-</a><br>
> > pages/os/sh/weston-compositor.<wbr>service<br>
> > > You can enable it via `systemctl enable weston-compositor`<br>
> ><br>
> > Hi,<br>
> ><br>
> > why is it using weston-launch when you have systemd?<br>
> ><br>
> > ><br>
> > > You also need to put<br>
> > > ```<br>
> > > [shell]<br>
> > > client=/usr/bin/chromium<br>
> > > ```<br>
> > > or the application you want to use instead of the default desktop/shell<br>
> > > inside the `~/.config/weston.ini` file, and this can be also a bash file<br>
> > > that launches chrome in fullscreen or with specific parameters.<br>
> ><br>
> > No, that does not fully work, unless you have modified chromium to also<br>
> > take care of weston-desktop-shell's responsibilities.<br>
> ><br>
> > weston-desktop-shell does not only do the wallpaper and panel, it also<br>
> > provides the lock screen and pointer cursors for grabs and unresponsive<br>
> > apps, plus more. See weston-desktop-shell.xml in Weston repository.<br>
> ><br>
> > It may appear to work at first, but you will miss the corner cases.<br>
> ><br>
> > Doing that also gives the app privileges it would not have otherwise<br>
> > (i.e. bind to and use weston_desktop_shell interface).<br>
> ><br>
> ><br>
> > Thanks,<br>
> > pq<br>
> ><br>
> > > You can test that everything works as expected simply using<br>
> > > `/usr/bin/weston-terminal` as client to find yourself within the shell<br>
> > (or<br>
> > > you can just use Benja to develop your portable app)<br>
> > ><br>
> > > Best Regards<br>
> > ><br>
> > ><br>
> > ><br>
> > > On Wed, Oct 26, 2016 at 3:10 PM, Nikola Popovic <<br>
> > <a href="mailto:nikola.popovic@rt-rk.com">nikola.popovic@rt-rk.com</a>><br>
> > > wrote:<br>
> > ><br>
> > > > Greetings.<br>
> > > ><br>
> > > > I have installed yocto on my board. Im planing to run weston just after<br>
> > > > boot finish and to run chromium inside weston. Is it possible to write<br>
> > some<br>
> > > > script or something in weston.ini to run chromium inside weston<br>
> > without my<br>
> > > > interaction.<br>
> > > ><br>
> > > > Tnx!<br>
> > > ><br>
> > > > --<br>
> > > > Nikola Popovic<br>
> > > > Software Engineer<br>
> > > > Tel: <a href="tel:%2B381%2021%204801%201304" value="+3812148011304">+381 21 4801 1304</a><br>
> > > > E-mail : <a href="mailto:nikola.popovic@rt-rk.com">nikola.popovic@rt-rk.com</a><br>
> > > ><br>
> > > > RT-RK LLC<br>
> > > > Narodnog fronta 23a<br>
> > > > 21000 Novi Sad<br>
> > > > Serbia<br>
> > > > <a href="http://www.rt-rk.com" rel="noreferrer" target="_blank">www.rt-rk.com</a><br>
> > > ><br>
> > > > ______________________________<wbr>_________________<br>
> > > > wayland-devel mailing list<br>
> > > > <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.<wbr>freedesktop.org</a><br>
> > > > <a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/wayland-devel</a><br>
> > > ><br>
> ><br>
> ><br>
<br>
</div></div></blockquote></div><br></div>