Subject: Re: anyone knowledgeable enough pls help! On Mon, 17 Jul 2000, Ron Rademaker wrote: > On Mon, 17 Jul 2000, Pavel M. Penev wrote: > > > > > > > On Mon, 17 Jul 2000, Ron Rademaker wrote: > > > > > For the starting of x-windows, I guess you could but startx in .login in > > > the users home-dir. > > > The netscape part it quite a bit more difficult ( I guess you can start it > > > using .Xsession or something, but you'll have to check the docs of that > > > for more info), the closing part, here the idea I got on that ( I can't > > > provide it to you because I'm not good at c): > > > > > > Create a c-program that starts netscape and include signal.h that > > > intercepts the SIGTERM, when the SIGTERM arrives the user is prompted for > > > a password (netscape will be closed at that moment), if the > > > password is correct, the program is terminated and netscape isn't running > > > anymore, if the password is incorrect, netscape is restarted. > > > > > > Perhaps this can be of any help. > > > > > > Ron Rademaker > > > > > > > This here is absolutely wrong. The X11 system uses its own signals, > > transported via TCP/IP. Clicking File->Quit is just like clicking any > > other button. Netscape is responsible for handling the event, and it has > > no reason to kill its parent if run by a system()-like function, or run by > > exec*() function it will have its own signal-handling table. I have > > written two small programmes (one for GTK, and one to call it and trap > > signals). I can send them if you wish. > > Didn't know that... I would like to take a look at those programmes, > thank. > > Ron Rademaker > > Here you are the sources, Pavel
Description: Here they are.