[PATCH] compositor: pass options to the shell process, v2

Pekka Paalanen ppaalanen at gmail.com
Tue Dec 6 22:41:53 PST 2011


On Tue, 6 Dec 2011 17:36:36 -0800
Bill Spitzak <spitzak at gmail.com> wrote:

> Making a switch that passes all *remaining* arguments to the shell  
> would be better because it avoids quoting issues and makes it
> trivial to edit a call to the shell into a call to the compositor.
> 
> Ie:
> 
>      wayland-compositor -x -y -b blah -x bar
> 
> This makes the compositor get the -x and -y switches, and the shell  
> get "blah -x bar" as it's arguments.
> 
> The only problem with this is that only one such switch can be  
> specified at a time.

Yup, right.

I guess I should start following up on my posts, summarizing on what
has happened in irc.

This particular patch was never applied. Instead, krh created a simple
config file parser for configuring the desktop-shell. There will be
more clients that the demo compositor will launch, too.

> On Nov 7, 2011, at 1:06 AM, Pekka Paalanen wrote:
> 
> > When desktop-shell was changed to be launched by the compositor
> > alone, we also lost the opportunity to give it arguments,
> > specifically the background picture.
> >
> > Add the compositor option -b (--shell-options) for passing
> > arguments to
> > the shell process. The parameter to -b is a comma-separated list of
> > arguments to the shell.
> >
> > Option -b cannot be used multiple times, and it cannot be used to
> > pass arguments containing commas to the shell.
> 

Thanks,
pq


More information about the wayland-devel mailing list