Article View: comp.sys.next.programmer
Article #491Re: Can you have an application "nicely" log the user out?
From: John Robison
Date: Fri, 07 Aug 1992 19:48
Date: Fri, 07 Aug 1992 19:48
42 lines
1988 bytes
1988 bytes
wayne beech writes > I have setting up an account which I would like to work as follows: > > The person logs in and an application is autolaunched (easy enough). > > The application then sets itself up so that no other application can be > accessed (done). > > Finally (and the problem), once the user tells the application they are > done I would like for the application to log the account out. I see no > way to do this with the WorkspaceRequest protocol....Is there a way to > accomplish this short of just killing the workspace or windowserver? > > Any thoughts/comments/suggestions are appreciated. > We saw no way to do this cleanly either. The problem is that if you post a log-out event to the Workspace, the workspace may wait for other applications to finish. The only option we found was to kill the Workspace itself. *Not* a clean option. Another option, if all you want to do is run your app, is to use the loginhook option to loginwindow. If you play with the default user of loginwindow, you can set up a default account (like me) with no password, that falls through and launches the loginhook. (I believe if the loginhook returns an error value, this will prevent the Workspace from launching, returning you to the loginwindow, but I can't remember.) (I set the loginhook to be the myshell example, so I could have a shell handly to see what was going on.) Later, John -- John Robison - Oceania Health Care Systems john@oceania.com - NeXTMail Gladly Accepted
Technical Details
Message-ID:
<BsMpp3.4Mr@oceania.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!oceania!johnReferences:
<1992Aug7.124647.19389@ms.uky.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!oceania!john From: john@oceania.com (John Robison) Subject: Re: Can you have an application "nicely" log the user out? Message-ID: <BsMpp3.4Mr@oceania.com> Sender: john@oceania.com (John Robison) Reply-To: john@oceania.com Organization: Oceania Health Care Systems References: <1992Aug7.124647.19389@ms.uky.edu> Distribution: na Date: Fri, 7 Aug 1992 19:48:38 GMT Lines: 42