Re: session management support



Carsten> I have a slight idea, how we could solve the initialization
Carsten> problem on the client and not on the server side, but it's
Carsten> not that kind of solution I would call beautiful.  I also
Carsten> have to admit, that I havn't thought about it very much, so
Carsten> it might include some mistakes.  I can tell you about in
Carsten> detail, if you are interested.

Please do.


[ argument parsing ]

Carsten> So, I would like you to send me the "arg.h" file and to tell
Carsten> me about the problems you discovered.

I'll send arg.h under separate cover.

The basic problem is that a program *must* parse the command-line all
at once in order to be correct.  For instance right now this won't
work (assume --file takes an argument):

	foo --file --display --some-other-flag

And you can't use the standard "--" (end-of-options) marker either,
because gdk_init doesn't understand it.


Now, admittedly the first problem isn't a very likely one.  Still, I
prefer programs to be correct and predictable.


I'm not sure what to do if the Gtk people don't want GDK to depend on
the argp library.  Maybe there is some way to let us plug in argp at
runtime.

argp is in glibc these days.


Carsten> One problem I see is, that gtk takes away all options it
Carsten> knows.  I.e. if you create a new gnome-client object with the
Carsten> parameters you receive after a gtk_init call, you`ll never
Carsten> see for example the '-display' argument.

Yeah, this is a problem if you want to save the command-line
somewhere.

Carsten> I'll try to download an actual snapshot this weekend, and to
Carsten> update all clients after that.  I'm not sure, if I manage to
Carsten> make guile interface.

Sounds good.

Tom



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]