summaryrefslogtreecommitdiff
path: root/config/PostSession.in
Commit message (Collapse)AuthorAgeFilesLines
* Add functions to support utmp and wtmp processing. Modified theBrian Cameron2007-06-211-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-21 Brian Cameron <brian.cameron@sun.com> * daemon/slave.[ch]: Add functions to support utmp and wtmp processing. Modified the gdm_window_path function to use the new gdm_get_current_vtnum funtion. This fixes enhancement request #347871. I did modify the patch provided by Ray Strode <rstrode@redhat.com> quite a bit. Biggest changes were to make it use utmpx rather than utmp functions, add utmp handling in addition to wtmp/btmp which was in his original patch, move function from verify-pam.c to slave.c so it also works when PAM isn't being used. Other changes include using the device name for ut_line on Solaris instead of DISPLAY, setting ut_type to DEAD_PROCESS on logout, and adding better error handling and debugging messages. * daemon/getvt.[ch]: Add function gdm_get_current_vtnum which checks the XFree86_VT atom and returns the VT number used by current display. This function used to be a part of the windowpath code. Also added the gdm_get_vt_device and gdm_get_current_vt_device access functions to get the right VT device name. * daemon/verify-pam.[ch]: Now Solaris audit, PAM_TTY, and di_devperm functions pass proper VT device names, not just hardcoded to /dev/console. * daemon/verify-pam.c, daemon/verify-crypt.c, daemon-verify-shadow.c Cleaned up the gdm_verify_user and gdm_verify_setup_user functions so they don't take the display and local arguments. Since these values are already in the GdmDisplay structure that is passed in, the code is cleaner just to access the values directly from the GdmDisplay structure. * daemon/gdm.c: If gdm_get_current_vt returns -1, return error message, not OK. * daemon/gdm.c, daemon/slave.c: No longer use di_devperm functions to set device ownership to the gdm user. Instead use setfacl to do the same with ACL. This is cleaner and now that VT's are working on Solaris, the di_devperm functions are not an appropriate way to get this behavior. svn path=/trunk/; revision=5011
* Remove call to sessionexit script since I need to do further research toBrian Cameron2007-02-151-9/+0
| | | | | | | | | | 2006-02-15 Brian Cameron <brian.cameron@sun.com> * config/PostSession.in: Remove call to sessionexit script since I need to do further research to make sure this is needed. svn path=/trunk/; revision=4596
* Call sessionexit script if running on Solaris. Now set Exec/TryExec toBrian Cameron2007-02-131-0/+10
| | | | | | | | | | | | | | 2006-02-13 Brian Cameron <brian.cameron@sun.com> * config/PostSession.in: Call sessionexit script if running on Solaris. * configure.ac, config/gnome.desktop.in.in: Now set Exec/TryExec to /usr/dt/config/Xsession.jds for Solaris. * po/POTFILES.in, po/POTFILES.skip: Update to reflect the move of gnome.desktop.in to gnome.desktop.in.in. svn path=/trunk/; revision=4589
* Fixed bug #155154, the Alt and Meta keys are swapped on Solaris. AlsoBrian Cameron2005-02-031-1/+2
| | | | | | | | | Thu Feb 02 16:40:00 2005 Brian Cameron <Brian.Cameron@Sun.Com> * config/Default.in, config/PostSession., config/XKeepsCrashing config/Xsession.in: Fixed bug #155154, the Alt and Meta keys are swapped on Solaris. Also fixes the usage of IFS so it works on Solaris.
* Don't use which but our own private shell version since solaris which isGeorge Lebl2004-05-281-1/+17
| | | | | | | | | | Fri May 28 12:53:42 2004 George Lebl <jirka@5z.com> * config/XKeepsCrashing, config/PreSession.in, config/PostSession.in, config/Xsession.in, config/Default.in: Don't use which but our own private shell version since solaris which is broken when there is no TTY. Fixes #133245, partly based on a patch by Brian Cameron
* Be more careful with shell stuff and quote whatever we can, should fix rhGeorge Lebl2003-09-291-3/+3
| | | | | | | | | | | Mon Sep 29 14:32:18 2003 George Lebl <jirka@5z.com> * config/PreSession.in, config/PostSession.in, config/XKeepsCrashing, config/Xsession.in: Be more careful with shell stuff and quote whatever we can, should fix rh #105858. * daemon/misc.c, config/XKeepsCrashing: Don't use gdialog as it's nowdays just a wrapper on zenity
* update the documentation a lot and install the docs. Yay! We have actualGeorge Lebl2003-07-191-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Jul 19 16:33:19 2003 George Lebl <jirka@5z.com> * docs/C/gdm.xml, configure.in, docs/C/Makefile.am, docs/Makefile.am, xmldocs.make, omf.make: update the documentation a lot and install the docs. Yay! We have actual documentation now!!! * daemon/misc.c: add sys/time.h and sys/resource.h includes (from looking at the FreeBSD patches) * daemon/slave.c: pass LOGIN_SETENV as well to setusercontext (from looking at the FreeBSD patches) * gui/gdmsetup.c: fix gccism, and look for the chown/chmod command (from looking at the FreeBSD patches) * gui/gdmphotosetup.c: add signal.h include (from looking at the FreeBSD patches) * configure.in, utils/Makefile.am: When the security/pam_misc.h is available also test for where the misc_conv function is as it seems to be sometimes compiled into the main libpam (FreeBSD for example) (from looking at the FreeBSD patches) * config/Default.in, config/Xsession.in, config/(Pre|Post)Session.in, config/XKeepsCrashing: don't use command -v and use which properly. And avoid stderr from which * utils/gdmaskpass.c: use GETTEXT_PACKAGE here * configure.in, utils/gdmtranslate.c, utils/Makefile.am, config/XKeepsCrashing, config/Xsession.in, config/Makefile.am: Add gdmtranslate libexec proggie since gettext command is not always installed apparently (non-developer machines) so we can't rely on it existing. Also do translations from the Xsession script * gui/gdmlogin.c, gui/greeter/greeter_system.c: Fix #117504 by changing the tooltip to be more informative * gui/greeter/greeter_system.c: Fix warnings when not all system dialog possibilities are present * Makefile.am, greeter.c, greeter.dtd, greeter_configuration.h, greeter_item.[ch], greeter_item_customlist.[ch], greeter_parser.[ch], greeter_system.c: Add listitem (proposed as customitem to the release-team) tags that can be inside a list and thus create custom widgetry. At this point all custom widgetry that can be done is a list to pick from but this should be possible to extend for some future releases. This custom info is then written to a per display file to use from login scripts or elsewhere. While I was there I fixed leaks and crashes when the parser would find parse errors. * docs/C/gdmconfig/*, docs/C/gdm.sgml, docs/C/gdm-manual.txt: remove everything here as it was old and unused and outdated.
* Fri May 30 Brian Cameron <Brian.Cameron@Sun.COM>Brian Cameron2003-05-301-0/+8
* configure.in, config/Default.in, config/PreSession.in, config/PostSession.in: Now Default, PreSession and PostSession are built using .in files so that we can properly set the PATH on Solaris.