Re: [gdm-list] GDM clickthrough screen
- From: Brian Cameron <Brian Cameron Sun COM>
- To: Yan Seiner <yan seiner com>
- Cc: gdm-list gnome org
- Subject: Re: [gdm-list] GDM clickthrough screen
- Date: Wed, 09 Jan 2008 10:41:11 -0600
Yan
Is it possible to set up gdm and/or X to display a click-thorugh screen
on login?
Yes, this isn't hard to do. Just add your program to the GDM PreSession
script and your pop-up will show up after authentication but before
session starts. If you want the pop-up to block session startup then
don't run in the background. If you want the pop-up to not block
session startup, then run it in the background by adding the "&"
character to the end of the command.
What I'd like to do is to display a screen after a user logs in, say
with xdialog, that displays a MOTD and then has an [accept] [decline] choice. On [accept]
gdm then continues to bring up the user session; on decline gdm goes
back to the login prompt.
To do this, check the return value of the dialog. Not hard to do if you
use zenity, or you can write your own dialog. If the return code
indicates "decline" then simply return a failure return code.
Note that this technique will not work for "failsafe session" since it
avoids launching PreSession. You can disable "failsafe session" if you
want to close this hole.
It should be doable - but how? Possibly a wrapper around the user's
session? Something in .xsession?
There are probably other ways you could get the same behavior. For
example, you could perhaps get the same behavior by modifying
/etc/profile. Though the PreSession script is probably more clean.
Brian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]