Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-11-03 Thread Frederic Plourde
On 14-10-30 04:06 AM, Pekka Paalanen wrote: Below I'll attach what I had written earlier but not sent, because then I realized the server vs. weston-desktop-shell thing. If we do autolaunch in the server, the below more or less applies again. ** Okay, if Fred or someone actually has time to do

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-30 Thread Pekka Paalanen
On Wed, 29 Oct 2014 20:01:33 + Daniel Stone wrote: > Hi, > > On Wednesday, October 29, 2014, Pekka Paalanen < > pekka.paala...@collabora.co.uk> wrote: > > > On Tue, 28 Oct 2014 16:46:24 + > > Daniel Stone > wrote: > > > On 24 October 2014 11:18, Pekka Paalanen > > > > > wrote: > > I th

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-29 Thread Daniel Stone
Hi, On Wednesday, October 29, 2014, Pekka Paalanen < pekka.paala...@collabora.co.uk> wrote: > On Tue, 28 Oct 2014 16:46:24 + > Daniel Stone > wrote: > > On 24 October 2014 11:18, Pekka Paalanen > > > wrote: > I think we all forgot a tiny detail here. > > weston_client_start() is a compositor

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-29 Thread Pekka Paalanen
On Tue, 28 Oct 2014 16:46:24 + Daniel Stone wrote: > Hi, > > On 24 October 2014 11:18, Pekka Paalanen > wrote: > > > On Fri, 24 Oct 2014 10:28:57 +0100 > > Daniel Stone wrote: > > > > > > Hmm. Can we please use weston_client_start here instead of open-coding > > it? > > > > weston_client_

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-28 Thread Daniel Stone
Hi, On 24 October 2014 11:18, Pekka Paalanen wrote: > On Fri, 24 Oct 2014 10:28:57 +0100 > Daniel Stone wrote: > > > > Hmm. Can we please use weston_client_start here instead of open-coding > it? > > weston_client_start() does not support passing in environment > explicitly. Entirely fixable.

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-27 Thread Pekka Paalanen
On Fri, 24 Oct 2014 14:47:00 -0700 Bryce Harrington wrote: > On Fri, Oct 24, 2014 at 01:18:51PM +0300, Pekka Paalanen wrote: > > > And, while you're at it - as this was written for kiosk mode, it spawns a > > > shell script which just restarts the video player in a loop. Can we please > > > add a

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-24 Thread Bryce Harrington
On Fri, Oct 24, 2014 at 01:18:51PM +0300, Pekka Paalanen wrote: > > And, while you're at it - as this was written for kiosk mode, it spawns a > > shell script which just restarts the video player in a loop. Can we please > > add an autostart param to weston_client_run/start (as a new enum with > >

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-24 Thread Daniel Stone
Hi, On 22 October 2014 14:53, Pekka Paalanen wrote: > + pid = fork(); > + if (pid < 0) { > + fprintf(stderr, "fork failed: %m\n"); > + goto out; > + } > + > + if (pid) > + goto out; > + > + argvpp = argv.data; > + if (

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-24 Thread Pekka Paalanen
On Fri, 24 Oct 2014 10:28:57 +0100 Daniel Stone wrote: > Hi, > > On 22 October 2014 14:53, Pekka Paalanen > wrote: > > > + pid = fork(); > > + if (pid < 0) { > > + fprintf(stderr, "fork failed: %m\n"); > > + goto out; > > + } > > + > > + if (

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-23 Thread Pekka Paalanen
On Thu, 23 Oct 2014 15:07:01 -0400 Frederic Plourde wrote: > +1 for refactoring in a separate patch. > by merging the change with panel_add_launcher in the same patch, it gets > *really* hard to read because of the intertwining. Yeah, please split it. Btw. it was Fred who actually sent the pat

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-23 Thread Frederic Plourde
+1 for refactoring in a separate patch. by merging the change with panel_add_launcher in the same patch, it gets *really* hard to read because of the intertwining. now, for exit() instead of using EXIT_FAILURE/SUCCESS, currently there is roughly 50 usages o

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-22 Thread Karsten Otto
The %m from glibc would indeed be a portability problem. However, it is already lightly used within wayland (11 occurrences) and heavily in weston (125 occurrences). I suggest you keep them for now, then clean them all up in one patch later - assuming the wayland community and prospective users

Re: [PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-22 Thread Derek Foreman
I'd prefer to see the refactor and the new feature in separate patches, but this is pretty trivial. I also have a slight preference for exit(EXIT_FAILURE), which is already used somewhere else in that file - though there's also precedent for exit(1), so you make the call. :) I'd not seen printf'

[PATCH Weston 1/1] desktop-shell: implement autolaunch

2014-10-22 Thread Pekka Paalanen
Process a new section 'autolaunch' from weston.ini, launching all programs given there on desktop start-up. [Frederic Plourde: cut redundancy between do_autolaunch and panel_add_launcher] --- clients/desktop-shell.c | 97 ++--- man/weston.ini.man |