1. 30 May, 2006 1 commit
  2. 12 May, 2006 1 commit
    • Christian Kirbach's avatar
      stop using popt in favour of glib's GOption command line parsing. · 9a9f3e10
      Christian Kirbach authored
      2006-05-12  Christian Kirbach  <Christian.Kirbach@siemens.com>
      
              * daemon/gdm.c, gui/gdmXnestchosser.c, gui/gdmchooser.c,
                gui/gdmflexiserver.c: stop using popt in favour of glib's GOption
                command line parsing.
              * docs/C/gdm.xml: -nodaemon command line option has become --nodaemon.
                GDM User Commands section has been rewritten accordingly. Also the
                interface stability sections reflects the new changes.
              * daemon/gdm.c (gdm_handle_user_message): Fix compiler warning (too
                few arguments).
              * gui/gdmconfig.c (gdm_config_get_xservers): Remove two obsolete
                variable declarations.
      9a9f3e10
  3. 28 Apr, 2006 1 commit
  4. 27 Apr, 2006 2 commits
    • Brian Cameron's avatar
      Add pam-error-logo item type. Add item type button to use a real GTK+ · 4a8546fc
      Brian Cameron authored
      2006-04-26  Brian Cameron  <brian.cameron@sun.com>
      
              * gui/greeter_item_pam.c: Add pam-error-logo item type.
              * gui/greeter/greeter_item.h, gui/greeter/greeter_canvas_item.c,
                gui/greeter/greeter_geometry, gui/greeter/greeter_parser.c: Add item
                type button to use a real GTK+ button, this better supports
                accessibility.  Add "startover" string to stock, this better name
                for the "Cancel" button was recommended.
              * gui/greeter/themes/happygnome/happygnome.xml,
                gui/greeter/themes/happygnome/happygnome-list.xml,
                gui/greeter/themes/circles/circles.xml: Updated theme to use real
                GTK+ buttons.  Now says "Start Over" instead of "Cancel" on the
                button.
              * gui/greeter/greeter_events.c, gui/greeter/greeter_item.c: Code
                cleanup.
              * docs/gdm/gdm.xml: Add docs for new features and the gtk-theme
                greeter element feature added in 2.12 but after string-freeze, so
                docs couldn't be updated then.
      4a8546fc
    • Brian Cameron's avatar
      Adding per-display configuration support to GDM. Now if user has a file · 425ce74b
      Brian Cameron authored
      2006-04-26  Brian Cameron  <brian.cameron@sun.com>
      
              Adding per-display configuration support to GDM.  Now if user has
              a file named /etc/gdm/custom.conf:<displaynum>, the settings in this
              file will override the /usr/share/gdm/defaults.conf and
              /etc/X11/gdm/custom.conf settings.  Only keys that affect the GUI
              behavior are supported.  These include those in the "gui" and
              "greeter" sections and the security/PamStack key.
      
              * daemon/gdm.c: Update GET_CONFIG command so it accepts a display
                argument.  It is backwards compatible and will return the per-display
                setting if this is passed in, or the non-display value if not
                passed in.  Fix bug that caused PreFetch key to not just return
                the once as it is supposed to.
              * daemon/gdmconfig.[ch], jui/gdmconfig.c: Updated to support
                per-display configuration.
              * daemon/gdm.h: Updated documentation for new command.  Corrected some
                errors.
              * daemon/verify-pam.c, daemon/gdmconfig.c config/gdm.conf.in: Add
                security/PamStack configuration variable as a per-display setting.
                This allows the sysadmin to specify a different PAM stack, if desired
                and also allows customization per display.  Also added key info for
                some BackgroundProgram keys that were missing.
              * config/PreSession.in: now requests configuration data per-display.
                Will use normal configuration if no per-display config files.
              * gui/.cvsignore: Add gdmsetup.desktop.in
              * gui/gdmdynamic.: Improve usage warning.
              * gui/gdmlogin.c: Add some debug
              * docs/C/gdm.xml: Updated docs to reflect new per-display config.
      425ce74b
  5. 14 Apr, 2006 1 commit
  6. 28 Mar, 2006 1 commit
    • Julio M. Merino Vidal's avatar
      Removed a C99 local variable definition that breaks the build with gcc · 7ad2d48f
      Julio M. Merino Vidal authored
      006-03-28  Julio M. Merino Vidal  <jmmv@NetBSD.org>
      
              * daemon/xdmcp.c: Removed a C99 local variable definition that
                breaks the build with gcc 2.95 (e.g. under NetBSD 1.6).  Fixes
                bug #336368.
      
      2006-03-28  Julio M. Merino Vidal  <jmmv@NetBSD.org>
      
              * daemon/gdmconfig.c, daemon/server.c: Include sys/resource.h,
                needed to use setpriority(2) and its associated definitions.
                Fixes the build under NetBSD, closing bug #336369.
      
      2006-03-28  Julio M. Merino Vidal  <jmmv@NetBSD.org>
      
              * Makefile.am, README.install, acconfig.h, configure.ac,
                gdmsetup-security.in, config/Makefile.am, config/Xsession.in,
                config/gdm.conf.in, daemon/Makefile.am, daemon/gdm.c, daemon/gdm.h,
                daemon/gdm.in, daemon/gdmconfig.c, daemon/misc.c, daemon/server.c,
                daemon/slave.c, docs/C/gdm.xml, gui/Makefile.am, gui/gdmphotosetup.c,
                gui/gdmsetup.c, gui/gdmsetup.desktop.in, gui/greeter/Makefile.am,
                gui/greeter/gdmthemetester.in, gui/greeter/greeter.c,
                gui/modules/Makefile.am: Get rid of all EXPANDED_* variables from
                the build procedure.  Directory-related variables must only be
                expanded from the Makefiles so that they can be easily overriden
                during the installation phase.  Fixes bug #336364.
      7ad2d48f
  7. 21 Mar, 2006 1 commit
    • Brian Cameron's avatar
      Added new SVG official logos and now theme uses the new logo. Removed old · 1ccc81bc
      Brian Cameron authored
      2006-03-20  Brian Cameron  <brian.cameron@sun.com>
      
              * gui/greeter/themes/happygnome/gnome-logo.svg,
                gui/greeter/themes/happygnome/happygnome.xml
                gui/greeter/themes/happygnome-list/gnome-logo.svg,
                gui/greeter/themes/happygnome-list/happygnome.xml:
                Added new SVG official logos and now theme uses
                the new logo.
              * gui/greeter/themes/happygnome/gnome-logo.png,
                gui/greeter/themes/happygnome-list/gnome-logo.png:
                Removed old logo.
      1ccc81bc
  8. 02 Mar, 2006 1 commit
    • Brian Cameron's avatar
      Updated. Update to 2.13.0.9. Added code to support the change in · 04623abc
      Brian Cameron authored
      2006-03-03  Brian Cameron  <brian.cameron@sun.com>
      
              * Release 2.13.0.10:
              * NEWS: Updated.
              * configure.ac, acconfig.h: Update to 2.13.0.9.  Added code to support
                the change in gdmconfig.c below.
              * gui/gdmconfig.c: Fix so that if gdm.conf file exists on the system
                this is used instead of custom.conf.  This makes GDM more backwards
                compatible and won't break user configuration if the user has an old
                config file.
      04623abc
  9. 15 Feb, 2006 1 commit
  10. 13 Feb, 2006 2 commits
    • Brian Cameron's avatar
      Updated. Update to 2.13.0.8 and use EXPANDED_DATADIR instead of %{datadir} · 3dc1d30d
      Brian Cameron authored
      2006-02-13  Brian Cameron  <brian.cameron@sun.com>
      
              * Release 2.13.0.8:
              * NEWS: Updated.
              * configure.ac: Update to 2.13.0.8 and use EXPANDED_DATADIR instead
                of %{datadir} since that makes it work much better.
              * README.install, README, docs/C/gdm.xml:  Update docs so that the
                change from --with-configdir to --with-defaults-conf and renaming of
                default and custom config file is documented.
              * daemon/gdm-net.c, daemon/gdmconfig.c, gui/gdmsetup.c: Update comments
                to no longer mention old name of config file.  Fix gdmsetup to know
                new location of custom config file.
              * config/Makefile.am: Now if upgrading and gdm.conf and
                factory-gdm.conf are different, move the gdm.conf file to
                custom.conf instead of copy.  This is  because we don't want GDM
                to overwrite the custom.conf file every time user upgrades.  Only
                first time, then gdm.conf should go away.
      3dc1d30d
    • Brian Cameron's avatar
      Fix calls to zenity so they work. Fixes bug #330892. Last minute updates · 8632e2a5
      Brian Cameron authored
      2006-02-13  Brian Cameron  <brian.cameron@sun.com>
      
              * config/Xsession.in: Fix calls to zenity so they work.  Fixes
                bug #330892.
              * README, README.install, docs/C/gdm.xml: Last minute updates
                before string freeze.
      8632e2a5
  11. 11 Feb, 2006 2 commits
    • Brian Cameron's avatar
      Fix problem with options button and F10 menu not working if the button is · 0e6e2537
      Brian Cameron authored
      2006-02-10  Brian Cameron  <brian.cameron@sun.com>
      
              * gui/greeter/greeter.c, gui/greeter/greeter_action_language.[ch],
                gui/greeter/greeter_canvas_item.c, gui/greeter/greeter_events.c,
                gui/greeter/greeter_session.c, gui/greeter/greeter_system.c:
                Fix problem with options button and F10 menu not working if the
                button is not in the theme.  This only affects buttons that can
                be in the F10 button but may not be in the theme (language,
                system, session, halt, reboot, shutdown).  Fixes bug #330343.
      0e6e2537
    • Brian Cameron's avatar
      Fix bug that was causing gdmflexiserver to fail. Because we were calling · 343865a8
      Brian Cameron authored
      2006-02-10  Brian Cameron  <brian.cameron@sun.com>
      
              * gui/gdmflexiserver.c: Fix bug that was causing gdmflexiserver
                to fail.  Because we were calling gtk-init when the --command
                option was being used, and this breaks gdmflexiserver since it
                is sometimes run with the --command option when there is no
                display.
              * README, README.install: Updated with some new features and moved some
                info to docs/C/gdm.xml where the info is more useful.
              * TODO: Updated.
              * configure.ac: Fixed the mess about /usr/opensolaris/bin
              * gui/greeter/greeter_system.c: Do not put tooltips on menus.  They are
                a bad idea and their use is discouraged by the HIG because they break
                a11y.
              * docs/C/gdm.xml: Updated docs with a bunch of information from the
                README and README.install file that really belonged in the docs.
      343865a8
  12. 09 Feb, 2006 1 commit
    • Brian Cameron's avatar
      A known issue with gdmdynamic is that when a display connects to the · 9dbb5bfd
      Brian Cameron authored
      
              A known issue with gdmdynamic is that when a display connects to
              the server it generates the gdmdynamic "ADD" and "RELEASE" commands.
              On startup, hundreds of displays could send these commands at once
              and cause the server too be flooded with sockets requests.  Hammering
              the socket like this caused me to find and fix a number of problems
              that improve socket reliability for general GDM use.  I also enhanced
              gdmdynamic so it is more sensitive to the socket being busy and no
              longer overloads it, instead sleeping and retrying if necessary.  This
              allows gdmdynamic to work if there are hundreds of displays instead of
              just a dozen or so.
      
              * daemon/gdm.[ch]: Added new "SERVER_BUSY" sockets command so that
                gdmdynamic can sleep before starting new slaves if the daemon is
                already busy.
              * daemon/gdm-net.[ch]: Bump up MAX_CONNECTIONS from 10 to 15.  I notice
                that this improves performance significantly when hammering the
                daemon with connections.  Added better comments for this logic and
                now debug logs when a subconnection is thrown away.  New
                gdm_connection_is_server_busy function
              * daemon/display.c: Correct DYNAMIC_REMOVE so it works and fixes bug
                #326796.  Before it wasn't really removing the displays.
              * gui/gdmdynamic.c: Quite a bit of work to make gdmdynamic avoid
                flooding the server with sockets requests.  Now it sets sockets
                retries to 1 and manages sleeping and retries itself.
              * gui/gdmconfig.c: Added gdm_config_set_comm_retries so that slaves can
                specify how many retries they want the comm logic to use.
              * gui/gdmcomm.c: Now do_command returns NULL when it gets back "",
                which happens when a subconnection was dropped by the daemon.  This
                lets the slave try the connection again.   Now error messages are
                always logged, not just when debug is turned on.  Added
                gdmcomm_did_connection_fail and gdmcomm_set_allow_sleep so
                gdmdynamic can control the behavior of how the connection works.
              * gui/gdmcommon.c, gui/gdmchooser.c, gui/gdmlogin.c, gui/greeter/greeter.c:
                Fix gdm_common_fail so it doesn't generate compile errors when building
                with GCC.  Fixes bug #330480.
              * docs/C/gdm.xml: Cleaned up section that explains sockets commands so
                that they are in alphabetical order, added info about SERVER_BUSY
                and new gdmdynamic -s and -t options.
              * config/gdm.conf: Better description of how debug works, perhaps
                I just didn't like the word "spew".
      ---------------------------------------------------------------------
      9dbb5bfd
  13. 07 Feb, 2006 1 commit
    • Brian Cameron's avatar
      This patch resolves some performance issues that I noticed when testing · 55230e85
      Brian Cameron authored
      2006-02-07  Brian Cameron  <brian.cameron@sun.com>
      
              This patch resolves some performance issues that I noticed when
              testing GDM with the gdmdynamic command.  I notice that waiting for
              the sockets to timeout made gdmdynamic slower so now all the clients
              load all the configuration data in one quick pass and close the
              socket.  Since the gdm_config_get functions cache the data, the slaves
              will not go over the socket to get the data again unless asked to
              reread.  Bump the maximum messages over the socket from 20 to 80
              because gdmlogin pulls about 65 configuration parms over and this
              allows all data to be accessed in one connection (and gives a little
              room for growth).  Improved the way GDM slaves deal with syslog so all
              slaves use the same interfaces.  Added three missing keys to the daemon
              configuration handling code.
      
              * daemon/gdmconfig.c: Add three keys that were missing for background
                program support.
              * gui/gdmcomm.[ch]: Now if there is a failure connecting to the daemon,
                the slave will sleep 1 second before retry (normally retries 5
                times).  If all retries fail, it will not try sleeping on subsequent
                calls to the daemon.  This greatly improves performance when the
                daemon is flooded with slave requests.  In normal usage, this will
                likely not happen, but it is good for GDM to not fail so easily.
                Added better debug.  Added gdm_comm_close function so that slaves
                can ask to close the socket when done reading config.  Now uses
                common syslog functions.
              * daemon/gdm.h: Add better comments, rename GDM_SUP_MAX_CONNECTIONS
                to GDM_SUP_MAX_MESSAGES which is more accurate, and bump the max
                number to 80.
              * gui/gdmcommon.h, gui/gdmwm.h, gui/gdmsession.h: Added common syslog
                functions to gdmcommon.h and moved some functions that were in
                gdmcommon.h to gdmwm.h and gdmsession.h since the implementations
                were in those c-files.  Renamed functions to make naming consistant.
              * gui/gdmXnestchooser, gui/gdmchooser.c, gui/gdmcommon.c,
                gui/gdmconfig.c, gui/gdmdynamic.c, gui/gdmflexiserver.c,
                gui/gdmlogin.c, gui/gdmphotosetup.c, gui/gdmsession.c, gui/gdmwm.c,
                gui/greeter/greeter.c, gui/greeter/greeter_item_ulist.c,
                gui/greeter/greeter_session.c, gui/greeter/greeter_system.c:  Slaves
                close sockets connection when done reading config.  Now slaves use
                common syslog functions.  Naming changes to reflect renaming of
                functions in gdmcommon.h/gdmwm.h/gdmsession.h.  Better debug.
              * daemon/auth.c, daemon/cookie.c, daemon/display.c, daemon/gdm.c,
                daemon/gdm-net.c, daemon/misc.c, daemon/slave.c, daemon/xdmcp.c,
                gui/gdmlanguages.c, gui/greeter/greeter_canvas_item.c,
                gui/gdmsetup.c, vicious-extensions/ve-config.c: Make spacing around
                "++" more consistant.  Add better debug in some functions
      55230e85
  14. 03 Feb, 2006 1 commit
  15. 30 Jan, 2006 2 commits
    • Brian Cameron's avatar
      Adding file. · e3186133
      Brian Cameron authored
      2006-01-30  Brian Cameron  <brian.cameron@sun.com>
      
              * docs/es/Makefile.am:  Adding file.
      e3186133
    • Brian Cameron's avatar
      Added new "options_button" which pops up the F10 menu. Modified themes to · 4578e198
      Brian Cameron authored
      2006-01-30  Brian Cameron  <brian.cameron@sun.com>
      
              * gui/greeter/themes/happygnome/disconnect.png,
                gui/greeter/themes/happygnome/options.png,
                gui/greeter/themes/happygnome/sessions.png,
                gui/greeter/themes/happygnome/system.png,
                gui/greeter/themes/happygnome/happygnome.xml,
                gui/greeter/themes/happygnome-list/disconnect.png,
                gui/greeter/themes/happygnome-list/options.png,
                gui/greeter/themes/happygnome-list/sessions.png,
                gui/greeter/themes/happygnome-list/system.png,
                gui/greeter/themes/happygnome-list/happygnome.xml,
                gui/greeter/themes/circles/Makefile.am,
                gui/greeter/themes/circles/circles.xml,
                gui/greeter/greeter_canvas_item.c,
                gui/greeter/greeter_parser.c, gui/gdmlogin.c,
                docs/C/gdm.xml:  Added new "options_button" which pops up
                the F10 menu.  Modified themes to now use the new options
                button for a cleaner one-button look.  Patch provied by
                Sebastien Bacher <seb128@debian.org>.  Modifications to
                existing themes made by myself.  Also modified string
                "Remote login via XDMCP" to "Remote Login via XDMCP".
      4578e198
  16. 27 Jan, 2006 1 commit
  17. 24 Jan, 2006 1 commit
  18. 20 Jan, 2006 1 commit
  19. 18 Jan, 2006 1 commit
  20. 17 Jan, 2006 1 commit
  21. 13 Jan, 2006 1 commit
    • Brian Cameron's avatar
      Enhancement patch provided by Dominique Hazael-Massieux · b3d9dc56
      Brian Cameron authored
      2006-01-13  Brian Cameron  <brian.cameron@sun.com>
      
              Enhancement patch provided by Dominique Hazael-Massieux
              <dominique.hazael-massieux@centraliens.net> with some help from me
              getting the configure/Makefile stuff working.
      
              * configure.ac, config/Makefile.am, docs/C/gdm.xml, utils/Makefile.am:
                Add support for --enable-secureremote
              * config/ssh.desktop.in, utils/gdm-ssh-session: Added desktop file
                and gdm-ssh-session script to support secure remote login.
      b3d9dc56
  22. 12 Jan, 2006 1 commit
    • Brian Cameron's avatar
      : Rename "shutdown" to "shut down" or "halt" and rename "capslock" to · 9d1a8584
      Brian Cameron authored
      2006-01-11  Brian Cameron  <brian.cameron@sun.com>
      
              * daemon/slave.c, docs/C/gdm.xml, gui/greeter/greeter_parser.c:: Rename
                "shutdown" to "shut down" or "halt" and rename "capslock" to
                "Caps Lock" since these are the recommended wordings suggested by
                Calum Benson.  Also corrected a few errors in the stock labels.
      9d1a8584
  23. 09 Jan, 2006 1 commit
  24. 07 Jan, 2006 2 commits
  25. 06 Jan, 2006 1 commit
    • Brian Cameron's avatar
      Fix Prefetch command so that there is a needed "@" before the argument to · 4f46297e
      Brian Cameron authored
      2006-01-04  Brian Cameron  <brian.cameron@sun.com>
      
              * configure.ac, docs/C/gdm.xml, config/gdm.conf.in: Fix
                Prefetch command so that there is a needed "@" before the
                argument to gdmprefetch.  Padraid O'Briain pointed out this
                oversight.  Made docs a bit more clear to highlight the usage
                of this "@" character.
              * gui/greeter.c, gui/greeter/greeter_item.c,
                gui/greeter/greeter_system.c: Now call gdm_working_command_exists
                for halt/reboot/suspend/configurator once at startup and cache
                the values in globals so we don't have to keep calling this
                function over and over while gdmgreeter runs.  Padraig noticed
                that this function causes a large number of calls to stat which
                are easily avoided by caching.
      4f46297e
  26. 05 Jan, 2006 1 commit
    • Brian Cameron's avatar
      Fix problem with client not properly counting the number of connections, · eb2cc614
      Brian Cameron authored
      2006-01-03  Brian Cameron  <brian.cameron@sun.com>
      
              * gui/gdmcommon.c: Fix problem with client not properly counting
                the number of connections, and make logic more robust so when
                it receives an "ERROR 200 Too many messages" it will close and
                reopen the connection and try again rather than just fail.
              * configure.ac, configure/Makefile.am: Add loginpreloadlist
              * utils/prefetch.c: Now handle comments that start with "#" in
                the preloadlist file.
              * daemon/gdm.h, daemon/gdmconfig.c, config/gdm.conf, gui/gdmlogin.c,
                gui/gdmcommon.[ch], gui/greeter/greeter.c: Now PostDisplayProgram is
                PreFetchProgram.  Fixed some comments in gdm.h.
              * daemon/gdm.c: Now KEY_PRE_FETCH_PROGRAM is only returned to the
                first slave that asks for the value, ensuring the prefetch only
                happens the first time a greeter is displayed.
              * docs/C/gdm.xml: Rewrote the Introduction section so it is more
                clear, made improvements to the Accessibility section, and fixed
                a number of formatting issues.  Now a separate Security section.
                Updated docs to reflect PreFetchProgram change.
              * gui/gdmflexiserver.c: Clean up the code a little.
      eb2cc614
  27. 02 Jan, 2006 1 commit
    • Brian Cameron's avatar
      Updated Updated version/date. · 849269a9
      Brian Cameron authored
      2006-01-02  Brian Cameron  <brian.cameron@sun.com>
      
              * Release 2.13.0.4:
              * NEWS, configure.ac: Updated
              * docs/C/gdm.xml: Updated version/date.
      849269a9
  28. 25 Dec, 2005 1 commit
    • Brian Cameron's avatar
      Happy holidays. Some bug fixes. · 5e57744d
      Brian Cameron authored
      2005-12-24  Brian Cameron  <brian.cameron@sun.com>
      
              Happy holidays.  Some bug fixes.
      
              * daemon/gdm.h, daemon/gdmconfig.c, daemon/slave.c,
                gui/gdmlogin.c, gui/greeter/greeter_item_timed.c:
                Fix so that timed/automatic enable is checked and
                automatic/timed login is only turned on if they are
                enabled.  Fix so greeters restart if timed login is
                changed in gdmsetup.  Fixes bug #324337.
              * gui/gdmcommon.c, gui/gdmlogin.c, gui/greeter/greeter.c,
                gui/greeter/greeter_item.c, gui/greeter/greeter_parser.c:
                Now gdmlogin and gdmcommon use the same character sequences
                with Welcome/RemoteWelcome messages.  Fixes bug #322711.
              * docs/C/gdm.xml: Document how character sequences work with text
                labels and Welcome/RemoteWelcome messages.
              * gui/gdmcommon.[ch], gui/gdmchooser.c,
                gui/greeter/greeter_canvas_item.c, gui/greeter/greeter_geometry.c:
                Rename functions so all common functions have prefix gdm_common.
      5e57744d
  29. 22 Dec, 2005 1 commit
    • Brian Cameron's avatar
      Now use g_ stdio function like g_chmod instead of chmod. Fixes bug · 2be57792
      Brian Cameron authored
      2005-12-22  Brian Cameron  <brian.cameron@sun.com>
      
              * daemon/auth.c, daemon/display.c, daemon/errorgui.c,
                daemon/filecheck.c, daemon/fstype.c, daemon/gdm-net.c,
                daemon/gdm.[ch], daemon/gdmconfig.c, daemon/misc.c,
                daemon/server.c, daemon/slave.c, daemon/verify-pam.c,
                daemon/xdmcp.c, gui/gdmXnestchooser.c, gui/gdmchooser.c,
                gui/gdmcommon.c, gui/gdmlogin.c, gui/gdmphotosetup.c,
                gui/gdmsetup.c, gui/gdmuser.c, utils/gdmprefetch.c,
                vicious-extensions/ve-config.c, vicious-extensions/ve-gnome.c,
                vicious-extensions/ve-misc.[ch], vicious-extensions/ve-nongnome.c:
                Now use g_ stdio function like g_chmod instead of chmod.
                Fixes bug #310229.
      2be57792
  30. 21 Dec, 2005 2 commits
    • Brian Cameron's avatar
      Add new priority configuration option for setting xserver priority. · 3d36e449
      Brian Cameron authored
      2005-12-21  Brian Cameron  <brian.cameron@sun.com>
      
              * daemon/gdm.[ch], daemon/gdmconfig.c, daemon/server.c:  Add new
                priority configuration option for setting xserver priority.
              * config/gdm.conf.in, docs/C/gdm.xml: Updated docs with information
                about the new priority [server-foo] configuration option.
              * configure.ac, gdm.spec.in: Fix gtk dependency so 2.6.0
                is listed as the requirement.
              * gui/Makefile.am: Add X_LIBS when building GUI programs.
              * gui/misc.c: Add needed stdio.h include.
      3d36e449
    • Brian Cameron's avatar
      Patch by Padraig O'Briain <Padraig.OBriain@sun.com>, modified by myself so · 11c28082
      Brian Cameron authored
      2005-12-21  Brian Cameron  <brian.cameron@sun.com>
      
              Patch by Padraig O'Briain <Padraig.OBriain@sun.com>, modified by myself
              so it also works with gdmlogin and not just gdmgreeter.  Also I
              integrated his gdmprefetch.c utility into the configure/Makefile system
              with the --with-prefetch option.
      
              * configure.ac:  Now support --with-prefetch
              * daemon/gdm.h, daemon/gdmconfig.c, config/gdm.conf.in:  Support
                new PostDisplayProgram key.
              * gui/gdmcommon.[ch], gui/gdmlogin.c, gui/greeter/greeter.c:  Now
                support new PostDisplayProgram key.
              * docs/C/gdm.xml: Add docs for new key.
              * utils/Makefile.am, utils/gdmprefetch.c: Add new
                gdmprefetch utility.
              * config/Makefile.am: Now install gdm.conf file with 444
                permissions and always write over the installed gdm.conf
                after first moving aside the user's gdm.conf file if
                necessary.
      11c28082
  31. 20 Dec, 2005 1 commit
    • Brian Cameron's avatar
      After two months, the redesign of GDM's internal configuration is finally · 2cfd51d2
      Brian Cameron authored
      2005-12-21  Brian Cameron  <brian.cameron@sun.com>
      
              After two months, the redesign of GDM's internal configuration is
              finally reaching a close.  Now GDM users are instructed to not modify
              the gdm.conf file directly and instead put any cutomizations in a
              separate file called gdm.conf-custom (read the comments in both files).
              gdmsetup now modifies the gdm.conf-custom file.  The GDM daemon will
              now use values in gdm.conf-custom first and the default values in
              gdm.conf if no value is defined in gdm.conf-custom.  Benefits:
      
              1) Now GDM truly supports system-wide and machine-specific config.
                 System wide configuration is when the sysadmin wants to share the
                 main gdm.conf file across multiple systems on a shared file system
                 (possible by building GDM with the --with-configdir option or by
                 running GDM with the --config option).  Specific systems can
                 override defaults by modifying the gdm.conf-custom file.
              2) Distros can stomp the main gdm.conf file on upgrade knowing that any
                 user changes are stored in a separate file.  For best backwards
                 compatibility, distros will need to move the gdm.conf file to
                 gdm.conf-custom if the gdm.conf file exists on the system but the
                 gdm.conf-custom file does not.
              3) Making this work required a lot of cleanup in the way GDM manages
                 its configuration files.  For example, now config options are
                 managed via access functions, and do not depend on non-static
                 globals being shared across files.  The GET_CONFIG and UPDATE_CONFIG
                 commands work better and do not require special tweaking when adding
                 new config options.  Vicious-extensions is now only included in a
                 few files that need to know how to access the config files directly.
      
              This makes GDM support a popular feature in CDE which works similarly.
              (config files in /etc/dt/config take precidence over the ones in
              /usr/dt/config).
      
              * daemon/gdmconfig.[ch]: Now supports reading configuration values
                (including "servers" and "server-foo" sections from gdm.conf-custom
                and then from gdm.conf if not found in the custom file.  Now store
                translated strings in a separate hash since this improves
                performance.  Fix GET_SERVER_DETAILS so it works better and
                update config can now update server-foo sections via the
                "xservers/PARMAETERS" key.
              * gui/gdmsetup.c: Now only writes to the gdm.conf-custom file and isa
                smart enough to just delete the key if the value will be the same as
                in the gdm.conf file.  Fixed some core dumping issues caused by my
                change to make gdmsetup use the new gdmconfig functions for getting
                configuration data from the server.  This work cleaned up the code
                quite a bit.  Removed the "--config" option from gdmsetup since this
                change makes it edit the configuration of the running GDM daemon
                instead of a program that edits a particular configuration file.
              * daemon/gdm.h, doc/C/gdm.xml: Updated docs with info about how
                configuration works nwo.  Now sockets protocol info is the same
                in both documents.
              * daemon/gdm.c: Fix GET_SERVER_DETAILS to support "ID" and some
                cleanup.
              * gui/Makefile.am, daemon/Makefile.am: Support --with-configdir option
                which got broken.
              * config/gdm.conf.in: Updated comments to mention that this file is not
                to be edited. Cleaned up the file so it is more readible.
              * config/Makefile.am: Install gdm.conf-custom and move gdm.conf to
                gdm.conf-custom if it is modified and gdm.conf-custom is not already
                installed.  If it is changed and gdm.conf-custom already exists, move
                it to gdm.conf.org.
              * gui/gdmchooser.c, gui/gdmflexiserver.c: Remove unused getting of the
                configuration file.
              * gui/gdmconfig.[ch]: Add function to tell config to never_cache, which
                is needed by gdmsetup.
              * config/gdm.conf-custom: Added template file.
      2cfd51d2
  32. 13 Dec, 2005 1 commit
    • Brian Cameron's avatar
      Add GET_SERVER_LIST and GET_SERVER_DETAILS sockets functions so that · 864af89d
      Brian Cameron authored
      2005-12-12  Brian Cameron  <brian.cameron@sun.com>
      
              * daemon/gdm.[ch], daemongdmconfig.[ch]: Add
                GET_SERVER_LIST and GET_SERVER_DETAILS
                sockets functions so that gdmflexiserver and
                gdmconfig do not need to access the config
                file for these, instead using the sockets
                protocol.
              * docs/C/gdm.xml: Add docs for new sockets
                commands.
              * configure.ac, gui/Makefile.am: Remove some
                libgnome/libgnomeui dependencies.
              * gui/gdmcomm.c: Now close sockets connection
                after 20 messages since the daemon gets mad
                if you send more.
              * gui/gdmconfig.[ch]: New client functions for
                getting server information via sockets.
              * gui/gdmflexiserver.c: Remove libgnome
                dependencies and now use new config
                mechanism for getting server info.
              * gui/gdmsetup.c: Now use new config
                mechanism for reading from config file and
                remove libgnome dependencies.  Cleaned up
                the code a bit.  Now we don't call
                ve_config_get all over the place, which
                seems to speed up the start time.
      864af89d
  33. 12 Dec, 2005 1 commit
  34. 22 Nov, 2005 1 commit
    • Brian Cameron's avatar
      This further improves GDM configuration so that now only the GDM daemon · b68ffea6
      Brian Cameron authored
      2005-11-21  Brian Cameron <Brian.Cameron@sun.com>
      
              This further improves GDM configuration so that
              now only the GDM daemon parses and manages the
              configuration file.  Most client programs use
              the GET_CONFIG command to access needed data.
              This simplifies the configuration logic and
              puts all configuration parsing in one place
              and gets rid of a lot of global variables that
              were making the code look messy.  This also
              gets rid of several places where gnome_config
              deprecated functions were being used.  I have
              cleaned up the code so that the vicious-extensions
              code is more localized in gui/gdmconfig.[ch].
              Some work is left to do:  gdmflexiserver still
              uses gnome_config functions and gdmconfig should
              use the new functions for reading from the
              configuration file.  Some compile issues fixed
              as highlghted by dmacks@netspace.org to fix
              bug #322083.
      
              * NEWS: Fixed comment.
              * daemon/gdm.h: Further cleanup of #define's so
                that they better match the names of the config
                keys.
              * daemon/gdm.c: Now GET_CONFIG returns "OK" if
                the key is valid but has no value when it
                is a string.  Now free return value from
                gdm_config_to_string.
              * daemon/Makefile.am, gui/greeter/Makefile.am:
                Now the daemon validates the greeter's theme
                directory, so pass the default value into the
                daemon and not the greeter.
              * daemon/gdmconfig.h: Added gdm_is_valid_key
                and corrected prototype for
                gdm_set_user_session_lang.
              * daemon/slave.c: Fix warning and compile errors.
              * daemon/gdmconfig.c: Further fleshed out.
                Now it supports a few additional keys I
                overlooked.  It now validates all keys used
                by the slaves.  Now handles translated string.
                Further refactored the code.
              * gui/Makefile.am: Added gdmconfig.[ch] to
                common library.
              * gui/gdmconfig.[ch]: New functions for
                accessing configuration data for slaves.
              * gui/gdmXnestchooser.c, gui/gdmlanguages.c,
                gui/gdmsession.h, gui/gdmuser.h, gui/gdmwm.c,
                gui/misc.c, gui/greeter/greeter_item_capslock.c:
                gui/greeter/greeter_item_pam.c: No longer include
                vicious.h/viciousui.h, instead gdmconfig.h.
              * gui/gdmcomm.c: Fix gdm_check_comm to no
                longer require passing in the config file
                name.
              * gui/gdmcommon.[ch]: Get rid of old
                gdm_common_*_same functions that are
                replaced with new gui/gdmconfig logic.
                Now functions that access config data
                use the new functions.
              * gui/gdmflexiserver.c: Now displays the
                localized string when you use GET_CONFIG
                to access a translatable string.
              * gui/gdmconfig.c: Now calls update_key in
                addition to update_greeters when updating
                greeter config data, since the daemon needs
                to update the values now when they change.
              * gui/gdmchooser.c, gui/gdmdynamic.c,
                gui/gdmlogin.c, gui/gdmphotosetup.c,
                gui/gdmsession.c, gui/gdmuser.c,
                gui/gdm/gdmXnestchooser.c,
                gui/greeter/greeter.c,
                gui/greeter/greeter_action_language.c,
                gui/greeter/greeter_canvas_item.c,
                gui/greeter/greeter_item.c,
                gui/greeter/greeter_item_customlist.c,
                gui/greeter/greeter_item_timed.c,
                gui/greeter/greeter_item_list.c,
                gui/greeter/greeter_parser.c,
                gui/greeter/greeter_session.c,
                gui/greeter/greeter_system.c:  Updated to
                use new configuration functions.
              * vicious-extensions/glade-helper.c: Now
                include stdlib.h to avoid compiler warnings.
              * gui/greeter/greeter.c: Remove unused
                gdm_kill_thingies function.
      b68ffea6