summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* utils: Don't use deprecated gdk_cursor_unrefRobert Ancell2017-12-051-1/+1
|
* utils: Don't use deprecated gdk_cursor_newRobert Ancell2017-12-051-1/+1
|
* Use standard exit codes.Robert Ancell2017-10-032-4/+4
| | | | | | | | | Use EXIT_ defines for readibility. There were some exit codes > 1, but they don't seem to be checked by any of the parent process code. This does mean that the logs might have changed, but modern logging techniques have probably made this obsolete. https://bugzilla.gnome.org/show_bug.cgi?id=788307
* Use Unicode in translatable stringsPiotr Drąg2017-06-221-1/+1
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772203
* daemon: add wrapper for launching X sessionRay Strode2015-02-181-3/+2
| | | | | | | | | | | | | | | | This commit adds a utility for launching an X server and session together. This utility works a lot like xinit, but makes use of modern X features (like -displayfd) and has GDM specific integration (like reading from gdm configuration, and optionally running through /etc/gdm/Xsession) The eventual idea is to get the main GDM code out of the X server launching business and instead farm the logic off to an unprivileged helper that gets run within the logind session of the user. https://bugzilla.gnome.org/show_bug.cgi?id=744764
* daemon: add wrapper for launching wayland sessionRay Strode2015-02-181-1/+0
| | | | | | | | This wrapper makes sure the wayland session is registered with the display manager, and that the wayland session gets a dbus-daemon that's automatically cleaned up when the session goes away. https://bugzilla.gnome.org/show_bug.cgi?id=744764
* gdmflexiserver: Remove unused error quarkJasper St. Pierre2014-02-191-12/+0
|
* flexiserver: don't open a displayRay Strode2014-02-071-30/+1
| | | | | | | The only reason it uses gtk is to show some awful dialogs in the case of failure. Drop that code. Now gdmflexiserver can be run from the command line.
* utils: move login screen jumping code to commonRay Strode2014-02-072-544/+4
| | | | | | flexiserver has a bunch of complicated logic i want to use in the worker. Move that code to the common library and make flexiserver link against the common library.
* flexiserver: Remove a dead branchJasper St. Pierre2014-02-071-4/+0
|
* flexiserver: don't look at pam service name to find login screenRay Strode2013-09-201-17/+3
| | | | | It changed a long time ago and we neglected to update it here, and checking the class is good enough anyway.
* build: Fix srcdir != builddir issues with previous commitColin Walters2013-04-011-2/+4
| | | | We need top_srcdir.
* Fix checks for logindMartin Pitt2013-03-291-2/+3
| | | | | | | | | | | | It is possible to build systemd without logind or run logind without systemd init, in both cases testing for systemd init is wrong. Check for /run/systemd/seats in the parts which talk to logind instead, as recommended by systemd upstream. For details, see: <https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html> https://bugzilla.gnome.org/show_bug.cgi?id=696266
* utils: reintroduce gdmflexiserverTim Lunn2012-10-092-0/+791
| | | | | | | Partial revert of 920b38e2aac1f79100ed86a0296bbcaf4fecabd9 to reinstroduce gdmflexiserver since gnome-screensaver depends on it. https://bugzilla.gnome.org/show_bug.cgi?id=685622
* Trivial: Update FSF Address.Dominique Leuenberger2012-09-061-1/+1
| | | | Fix bug 683383.
* remove the .cvsignore filesAdrian Bunk2012-08-301-10/+0
| | | | | | No longer needed after the switch to git. https://bugzilla.gnome.org/show_bug.cgi?id=682976
* Replace gdmflexiserver with a libgdm methodGiovanni Campagna2012-08-162-762/+0
| | | | | | | | gdmflexiserver used to a be a generic interface to GDM, but now it only does fast user switching. Move that functionality to libgdm and kill the utility. https://bugzilla.gnome.org/show_bug.cgi?id=681827
* gdmflexiserver: Port to GDBusGiovanni Campagna2012-07-171-447/+195
| | | | | | | | | | | | gdmflexiserver is the program that handles initiating user switch requests. Ultimately, we don't want any part of GDM using dbus-glib, including gdmflexiserver. This commit moves gdmflexiserver over to GDBus. https://bugzilla.gnome.org/show_bug.cgi?id=622888
* user-switching: don't bail if login screen isn't runningRay Strode2012-03-191-8/+3
| | | | | | | It's okay if no login screen is running, we can just launch one. https://bugzilla.gnome.org/show_bug.cgi?id=655380
* user-switching: fix seat id confusionRay Strode2012-03-191-2/+2
| | | | | | | | | | There's a few places in the code that was hardcoding consolekit paths still. This commit does some small changes to make that more systemd compatible. https://bugzilla.gnome.org/show_bug.cgi?id=655380
* gdmflexiserver: s/or or/ orRay Strode2012-02-141-1/+1
| | | | | | | This commit addresses a typo introduced in the last messages fix up. Spotted by Ihar Hrachyshka
* gdmflexiserver: fix up error messagesRay Strode2012-02-131-3/+3
| | | | | | | | | | The existin error messages are vague, hard to read, and even harder to translate. This commit changes a few of them to hopefully help the situation a bit. http://bugzilla.gnome.org/show_bug.cgi?id=669902
* gdmflexiserver: port gdmflexiserver to libsystemd-logindLennart Poettering2012-02-072-20/+239
| | | | | Port over gdmflexiserver to use native systemd calls with a fallback on CK.
* gdmflexiserver: s/ret/res/Ray Strode2011-08-081-2/+2
| | | | | | | | In commit 0e6f294c34 I picked the wrong variable name for storing intermediate results. This broke flexiserver. Spotted by Christiaan Welvaart <cjw@daneel.dyndns.org>
* gdmflexiserver: *session_id = NULL, not session_id = NULLChristiaan Welvaart2011-08-081-1/+1
| | | | | | The session_id assignment at the top of get_login_window_session_id was missing its leading asterisk, leading to potential crashes and undefined behavior.
* gdmflexiserver: fail more abruptly if user can't jump to login screenRay Strode2011-05-231-9/+14
| | | | | | | | If the user can't jump to an existing login screen, we should fail instead of firing up a new one. This way we don't get a stream of login screens from ssh users or whatever.
* Port to GTK3William Jon McCann2011-01-182-17/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=639284
* Fix minor issues with screenshot toolWilliam Jon McCann2010-06-161-3/+11
| | | | | As suggested by Christian Persch https://bugzilla.gnome.org/show_bug.cgi?id=569409
* Remove restart and stop scriptsWilliam Jon McCann2010-06-044-50/+0
|
* Fix two trivial issues when compiling with -DGSEAL_ENABLE.Andre Klapper2010-05-042-2/+2
|
* String fixes. Patch by Philip Withnall. Fixes bug #609178.Brian Cameron2010-05-031-4/+4
|
* Fix compile when using a linker that defaults to --no-as-neededRichard Hughes2010-01-261-0/+2
|
* Make screenshot dir a configure argumentRay Strode2009-11-052-4/+2
| | | | | This provides a little more flexibility to distributors, but more importantly makes it less hard coded in gdm-screenshot.c
* Some minor fixes. Fix gdmflexiserver --help so that it highlights that theBrian Cameron2009-10-261-1/+1
| | | | --command option only supports the VERSION command. Fix the at-spi-registryd-wrapper.desktop.in.in file so that it doesn't hardcode /usr/libexec and instead uses "@LIBEXECDIR@. Minor fix to the docs (metacity instead of Metacity).
* Add screen capture sound effect to screenshot toolWilliam Jon McCann2009-08-232-0/+55
|
* Support VERSION command so that if user's run gdmflexiserBrian Cameron2009-02-171-2/+7
| | | | | | | | | | 2009-02-17 Brian Cameron <brian.cameron@sun.com> * utils/gdmflexiserver.c: Support VERSION command so that if user's run gdmflexiser --command=VERSION, it will return the version number. This is nice for backwards compatibility. Fixes bug #535450. svn path=/trunk/; revision=6713
* Correct spelling of "screen".Brian Cameron2009-01-271-1/+1
| | | | | | | | 2008-01-27 Brian Cameron <brian.cameron@sun.com> * utils/gdm-screenshot.c: Correct spelling of "screen". svn path=/trunk/; revision=6673
* Fix some build system warningsWilliam Jon McCann2008-12-031-1/+1
| | | | | | | | | | | | | | | | | 2008-12-02 William Jon McCann <jmccann@redhat.com> * NEWS: * common/Makefile.am: * configure.ac: * daemon/Makefile.am: * gui/simple-chooser/Makefile.am: * gui/simple-greeter/Makefile.am: * gui/user-switch-applet/Makefile.am: * utils/Makefile.am: Fix some build system warnings svn path=/trunk/; revision=6616
* Translate help output. Patch from: Gabor Kelemen <kelemeng@gnome.hu>William Jon McCann2008-12-032-4/+10
| | | | | | | | | | | | | 2008-12-02 William Jon McCann <jmccann@redhat.com> * common/Makefile.am: * utils/gdm-screenshot.c (main): * utils/gdmflexiserver.c (main): Translate help output. Patch from: Gabor Kelemen <kelemeng@gnome.hu> svn path=/trunk/; revision=6613
* Don't signal the gdm process with HUP and USR1 since they don't work.William Jon McCann2008-07-222-3/+4
| | | | | | | | | | | | | 2008-07-21 William Jon McCann <jmccann@redhat.com> * utils/gdm-restart.in: * utils/gdm-safe-restart.in: Don't signal the gdm process with HUP and USR1 since they don't work. svn path=/trunk/; revision=6327
* Fix xauth dir permissions if it exists.William Jon McCann2008-07-212-8/+13
| | | | | | | | | | | | | | 2008-07-21 William Jon McCann <jmccann@redhat.com> * daemon/gdm-display-access-file.c (_create_xauth_file_for_user): Fix xauth dir permissions if it exists. * utils/Makefile.am: * utils/gdm-screenshot.c (screenshot_save), (prepare_screenshot): Write gdm screenshot output to /var/run/gdm instead of /tmp. svn path=/trunk/; revision=6314
* Indicate unused options in command help. Fixes #539789William Jon McCann2008-07-211-5/+5
| | | | | | | | | | | 2008-07-21 William Jon McCann <jmccann@redhat.com> * utils/gdmflexiserver.c: Indicate unused options in command help. Fixes #539789 svn path=/trunk/; revision=6310
* Display nicer error messages. Use an icon. Use close button instead of ok.William Jon McCann2008-04-011-5/+25
| | | | | | | | | | | | | 2008-03-31 William Jon McCann <jmccann@redhat.com> * utils/gdmflexiserver.c: (gdm_flexiserver_error_quark), (maybe_lock_screen), (create_transient_display), (goto_login_session), (main): Display nicer error messages. Use an icon. Use close button instead of ok. svn path=/trunk/; revision=6084
* Add --version command line option.William Jon McCann2008-04-011-0/+8
| | | | | | | | | | 2008-03-31 William Jon McCann <jmccann@redhat.com> * utils/gdmflexiserver.c: (main): Add --version command line option. svn path=/trunk/; revision=6083
* Add screenshot tool.William Jon McCann2008-03-192-0/+245
| | | | | | | | | | | | | | 2008-03-19 William Jon McCann <jmccann@redhat.com> * gui/user-switch-applet/applet.c: (sort_menu): * utils/Makefile.am: * utils/gdm-screenshot.c: (screenshot_grab_lock), (screenshot_release_lock), (screenshot_get_pixbuf), (screenshot_save), (prepare_screenshot), (main): Add screenshot tool. svn path=/trunk/; revision=6048
* Fix a few leaks and make sure we don't unref null replies.William Jon McCann2008-03-121-7/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-12 William Jon McCann <jmccann@redhat.com> * daemon/gdm-chooser-server.c: (handle_select_hostname), (handle_disconnect), (do_introspect): * daemon/gdm-product-slave.c: (send_dbus_string_method), (send_dbus_void_method): * daemon/gdm-session-worker.c: (send_dbus_string_method), (send_dbus_int_method), (send_dbus_void_method): * daemon/gdm-slave.c: (activate_session_id), (session_unlock): * gui/simple-chooser/gdm-chooser-client.c: (send_dbus_string_method), (send_dbus_void_method): * gui/simple-greeter/gdm-greeter-client.c: (send_dbus_string_method), (send_dbus_bool_method), (send_dbus_void_method): * gui/simple-greeter/gdm-greeter-session.c: (send_dbus_string_method): * gui/simple-greeter/gdm-user-manager.c: (activate_session_id): * utils/gdmflexiserver.c: (create_transient_display), (get_current_session_id), (get_seat_id_for_session), (activate_session_id), (session_is_login_window), (seat_can_activate_sessions): Fix a few leaks and make sure we don't unref null replies. svn path=/trunk/; revision=6011
* Fix a bunch of compiler warnings and remove unused code. Patch from:William Jon McCann2008-02-191-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-02-19 William Jon McCann <jmccann@redhat.com> * common/gdm-settings-client.c: (gdm_settings_client_get_locale_string), (gdm_settings_client_init): * common/gdm-settings-desktop-backend.c: (save_settings): * common/gdm-settings-direct.c: (gdm_settings_direct_init): * common/test-log.c: (test_log): * common/test-settings-client.c: (test_settings_client): * daemon/gdm-chooser-server.c: (gdm_chooser_server_constructor): * daemon/gdm-chooser-session.c: (gdm_chooser_session_set_property), (gdm_chooser_session_get_property), (gdm_chooser_session_constructor): * daemon/gdm-display-access-file.c: * daemon/gdm-display.c: (_create_access_file_for_user), (gdm_display_constructor): * daemon/gdm-factory-slave.c: (gdm_factory_slave_start), (gdm_factory_slave_stop), (gdm_factory_slave_set_property), (gdm_factory_slave_get_property), (gdm_factory_slave_constructor): * daemon/gdm-greeter-server.c: (gdm_greeter_server_constructor): * daemon/gdm-greeter-session.c: (gdm_greeter_session_set_property), (gdm_greeter_session_get_property): * daemon/gdm-local-display-factory.c: (gdm_local_display_factory_set_property), (gdm_local_display_factory_get_property), (gdm_local_display_factory_constructor): * daemon/gdm-manager.c: (gdm_manager_constructor): * daemon/gdm-product-display.c: (gdm_product_display_constructor): * daemon/gdm-product-slave.c: (gdm_product_slave_start), (gdm_product_slave_stop), (gdm_product_slave_set_property), (gdm_product_slave_get_property), (gdm_product_slave_constructor): * daemon/gdm-server.c: (gdm_server_constructor): * daemon/gdm-session-auditor.c: * daemon/gdm-session-direct.c: (gdm_session_direct_open): * daemon/gdm-session-linux-auditor.c: * daemon/gdm-session-relay.c: (gdm_session_relay_set_property), (gdm_session_relay_get_property), (gdm_session_relay_constructor): * daemon/gdm-session-settings.c: * daemon/gdm-session-worker-job.c: (gdm_session_worker_job_constructor): * daemon/gdm-session-worker.c: (gdm_session_worker_constructor): * daemon/gdm-simple-slave.c: (gdm_simple_slave_start), (gdm_simple_slave_stop), (gdm_simple_slave_set_property), (gdm_simple_slave_get_property), (gdm_simple_slave_constructor): * daemon/gdm-slave.c: (gdm_slave_run_script), (_get_primary_user_session_id), (gdm_slave_constructor): * daemon/gdm-static-display.c: (gdm_static_display_set_property), (gdm_static_display_get_property): * daemon/gdm-static-factory-display.c: (gdm_static_factory_display_set_property), (gdm_static_factory_display_get_property), (gdm_static_factory_display_constructor): * daemon/gdm-transient-display.c: (gdm_transient_display_set_property), (gdm_transient_display_get_property): * daemon/gdm-welcome-session.c: (parse_dbus_launch_output), (gdm_welcome_session_constructor): * daemon/gdm-xdmcp-chooser-slave.c: (gdm_xdmcp_chooser_slave_start), (gdm_xdmcp_chooser_slave_stop), (gdm_xdmcp_chooser_slave_set_property), (gdm_xdmcp_chooser_slave_get_property), (gdm_xdmcp_chooser_slave_constructor): * daemon/gdm-xdmcp-display-factory.c: (do_bind), (indirect_client_create), (gdm_xdmcp_handle_forward_query): * daemon/test-session.c: (main): * gui/simple-chooser/gdm-chooser-client.c: (gdm_chooser_client_set_property), (gdm_chooser_client_get_property), (gdm_chooser_client_constructor), (gdm_chooser_client_dispose): * gui/simple-chooser/gdm-chooser-session.c: (gdm_chooser_session_set_property), (gdm_chooser_session_get_property), (gdm_chooser_session_constructor), (gdm_chooser_session_dispose): * gui/simple-chooser/gdm-host-chooser-dialog.c: (gdm_host_chooser_dialog_set_property), (gdm_host_chooser_dialog_get_property), (gdm_host_chooser_dialog_constructor), (gdm_host_chooser_dialog_dispose): * gui/simple-chooser/gdm-host-chooser-widget.c: (gdm_host_chooser_widget_set_property), (gdm_host_chooser_widget_get_property), (gdm_host_chooser_widget_constructor): * gui/simple-greeter/gdm-a11y-preferences-dialog.c: (gdm_a11y_preferences_dialog_set_property), (gdm_a11y_preferences_dialog_get_property), (gdm_a11y_preferences_dialog_constructor), (gdm_a11y_preferences_dialog_dispose): * gui/simple-greeter/gdm-chooser-widget.c: (shrink_edge_toward_active_row), (gdm_chooser_widget_constructor): * gui/simple-greeter/gdm-greeter-client.c: (gdm_greeter_client_set_property), (gdm_greeter_client_get_property), (gdm_greeter_client_constructor), (gdm_greeter_client_dispose): * gui/simple-greeter/gdm-greeter-login-window.c: (gdm_greeter_login_window_constructor): * gui/simple-greeter/gdm-greeter-panel.c: (gdm_greeter_panel_set_property), (gdm_greeter_panel_get_property), (gdm_greeter_panel_constructor), (gdm_greeter_panel_dispose): * gui/simple-greeter/gdm-greeter-session.c: (gdm_greeter_session_set_property), (gdm_greeter_session_get_property), (gdm_greeter_session_constructor), (gdm_greeter_session_dispose): * gui/simple-greeter/gdm-language-chooser-widget.c: (gdm_language_chooser_widget_dispose): * gui/simple-greeter/gdm-option-widget.c: (activate_from_item_id), (gdm_option_widget_constructor): * gui/simple-greeter/gdm-recent-option-widget.c: (gdm_recent_option_widget_dispose): * gui/simple-greeter/gdm-remote-login-window.c: (gdm_remote_login_window_set_property), (gdm_remote_login_window_get_property), (gdm_remote_login_window_constructor): * gui/simple-greeter/gdm-session-client.c: (gdm_session_client_constructor), (gdm_session_client_dispose): * gui/simple-greeter/gdm-session-manager.c: (gdm_session_manager_set_property), (gdm_session_manager_get_property), (gdm_session_manager_constructor), (gdm_session_manager_dispose): * gui/simple-greeter/gdm-user-chooser-dialog.c: (gdm_user_chooser_dialog_set_property), (gdm_user_chooser_dialog_get_property), (gdm_user_chooser_dialog_constructor), (gdm_user_chooser_dialog_dispose): * gui/simple-greeter/gdm-user-chooser-widget.c: (gdm_user_chooser_widget_set_property), (gdm_user_chooser_widget_get_property), (gdm_user_chooser_widget_constructor): * gui/simple-greeter/gdm-user-manager.c: (_get_primary_user_session_id), (_get_login_window_session_id): * gui/simple-greeter/gdm-user.c: * gui/simple-greeter/libnotificationarea/na-tray-manager.c: (na_tray_manager_handle_begin_message): * gui/simple-greeter/libnotificationarea/na-tray.c: * gui/user-switch-applet/applet.c: (prefs_cb), (switch_to_user_session), (display_key_changed), (applet_fill_cb): * gui/user-switch-applet/gdm-user-menu-item.c: * tests/s-common-address.c: (START_TEST): * utils/gdmflexiserver.c: (get_login_window_session_id): Fix a bunch of compiler warnings and remove unused code. Patch from: Kjartan Maraas <kmaraas@broadpark.no> svn path=/trunk/; revision=5800
* Add support for finding and switching to existing greeters.William Jon McCann2008-02-051-37/+486
| | | | | | | | | | | | | | | 2008-02-05 William Jon McCann <jmccann@redhat.com> * utils/gdmflexiserver.c: (create_transient_display), (get_current_session_id), (get_seat_id_for_session), (get_current_seat_id), (activate_session_id), (session_is_login_window), (seat_can_activate_sessions), (get_path_array_from_iter), (seat_get_sessions), (get_login_window_session_id), (goto_login_session), (main): Add support for finding and switching to existing greeters. svn path=/trunk/; revision=5698
* Add gdmflexiserver command for backward compatibility. Only useful forWilliam Jon McCann2008-01-252-0/+276
| | | | | | | | | | | | | | 2008-01-25 William Jon McCann <mccann@jhu.edu> * daemon/gdm-local-display-factory.c: * utils/Makefile.am: * utils/gdmflexiserver.c: (is_program_in_path), (maybe_lock_screen), (calc_pi), (create_transient_display), (main): Add gdmflexiserver command for backward compatibility. Only useful for starting a transient display. svn path=/trunk/; revision=5633
* Remove some more obsolete code. Move common code with unknown copyrightWilliam Jon McCann2007-10-042-149/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-04 William Jon McCann <mccann@jhu.edu> * common/Makefile.am: * common/gdm-common-unknown-origin.c: (gdm_sigchld_block_push), (gdm_sigchld_block_pop), (gdm_sigterm_block_push), (gdm_sigterm_block_pop), (gdm_sigusr2_block_push), (gdm_sigusr2_block_pop), (gdm_safe_fopen_w), (ve_clearenv): * common/gdm-common-unknown-origin.h: * common/gdm-common.c: * common/gdm-common.h: * config/Makefile.am: * config/XKeepsCrashing: * config/default.desktop.in: * config/extract-shell.sh: * config/gdmprefetchlist.in: * config/gettextfoo.h: * config/locale.alias: * config/ssh.desktop.in.in: * configure.ac: * daemon/Makefile.am: * daemon/choose.c: * daemon/choose.h: * daemon/gdm-xdmcp-display-factory.c: (gdm_xdmcp_handle_indirect_query), (gdm_xdmcp_handle_manage), (gdm_xdmcp_handle_managed_forward): * daemon/main.c: (delete_pid): * utils/Makefile.am: * utils/gdm-dmx-reconnect-proxy.c: Remove some more obsolete code. Move common code with unknown copyright status into separate file. Try to identify more copy with unknown copyright status. svn path=/branches/mccann-gobject/; revision=5340