summaryrefslogtreecommitdiff
path: root/mate-session
AgeCommit message (Collapse)AuthorFilesLines
2020-06-27use libegg submoduleWu Xiaotian1-2/+2
2019-12-21avoid redundant redeclarationsPablo Barciela16-30/+1
2019-10-08Fix timeout with gnome-keyring 3.34Jindrich Makovicka1-65/+20
Launch gnome-keyring-daemon asynchronously, and remove the GNOME_KEYRING_PID reading code. GNOME_KEYRING_PID exposure was removed from gnome-keyring in 2014.
2019-10-08Remove GNOME_KEYRING_LIFETIME_FDJindrich Makovicka1-33/+2
Keyring lifetime fd was removed from gnome-keyring in 2009 See "[daemon] Use new control protocol for daemon."
2019-07-03Remove trailing whitespacesLaurent Napias5-29/+29
2019-05-09test-inhibit.c: migrate to gdbusWu Xiaotian1-51/+33
2019-05-04main: Potential leak of memory pointed to by 'new_argv'rbuj1-0/+3
2019-05-02[Security] Use 'g_strlcpy' instead of 'strcpy'Wu Xiaotian1-2/+2
2019-04-24Fix unable to retrieve org.gnome.SessionManager.Renderer propertyrbuj4-0/+94
2019-03-21Add ELOGIND supportVictor Kareh1-0/+2
Reuses HAVE_SYSTEMD #define to reduce #ifdef mess. ELOGIND is not officially supported, but since it's a subset of systemd, it should work out of the box. Co-authored-by: Joakim Tjernlund <[email protected]> Co-authored-by: Jorge Pizarro Callejas <[email protected]>
2019-03-07Guard against missing systemdVictor Kareh1-0/+19
2019-02-04 manager: restart user bus if last graphical sessionVictor Kareh1-0/+49
There are desktop services (such as goa-daemon, e-d-s, etc) that don't open the display, but rely on dbus-daemon to scope the session. These days dbus-daemon is a user bus, not a sesssion, bus which leaves these services alive after log out. This commit checks to see if we're the last desktop session for the user at log out time, and if so, restarts the dbus daemon. This will lead to existing clients getting booted and die, but allow user bus clients that want to outlive a session to stick around if they so desire. Longer term, clients should stop relying on the session bus to define their lifetime. https://bugzilla.gnome.org/show_bug.cgi?id=764029 Adapted from https://gitlab.gnome.org/GNOME/gnome-session/commit/97d1cf5
2019-02-04systemd: add api for detecting if this is the last session for a userVictor Kareh2-0/+67
https://bugzilla.gnome.org/show_bug.cgi?id=764029 Adapted from https://gitlab.gnome.org/GNOME/gnome-session/commit/f708bbbf
2019-02-04gsm: Disconnect all dbus clients when dbus is disconnectedVincent Untz1-0/+53
When we receive the Disconnected signal from dbus on the session bus, then we know we won't be able to talk to dbus clients anymore, so mark them as disconnected. Also, do not restart them even if they're supposed to be autorestarted, as we won't be able to track them. At this point, the session is kind of hosed. We could possibly decide to simply leave, but we don't do it in case it's a user session and there's unsaved data. This helps a lot in the case of the gdm greeter, see https://bugzilla.gnome.org/show_bug.cgi?id=658481 Adapted from https://gitlab.gnome.org/GNOME/gnome-session/commit/ae8fa537
2019-02-04manager: don't wait for all clients to exit before exitingRay Strode1-18/+2
If a client gets hung up, we shouldn't hold up going to login screen. It means making a bug in a single client break the desktop. https://bugzilla.gnome.org/show_bug.cgi?id=750508 Adapted from https://gitlab.gnome.org/GNOME/gnome-session/commit/58c9323e
2019-01-30[gsm-autostart-app] Migrate from dbus-glib to gdbusWu Xiaotian1-45/+46
2018-12-15avoid 'gtk_dialog_add_button' with stock idsPablo Barciela3-6/+33
2018-12-10Migrate from dbus-glib to gdbusWu Xiaotian2-92/+96
- mate-session/Makefile.am - mate-session/test-client-dbus.c
2018-11-27gsm-manager: avoid deprecated 'g_settings_list_schemas'Pablo Barciela1-2/+5
2018-11-26Avoid compile warning for g_type_class_add_privateWu Xiaotian24-1053/+1031
- capplet/gsm-app-dialog.c - capplet/gsm-app-dialog.h - capplet/gsm-properties-dialog.c - capplet/gsm-properties-dialog.h - capplet/gsp-app-manager.c - capplet/gsp-app-manager.h - capplet/gsp-app.c - capplet/gsp-app.h - mate-session/gsm-app.c - mate-session/gsm-app.h - mate-session/gsm-autostart-app.c - mate-session/gsm-autostart-app.h - mate-session/gsm-client.c - mate-session/gsm-client.h - mate-session/gsm-consolekit.c - mate-session/gsm-consolekit.h - mate-session/gsm-dbus-client.c - mate-session/gsm-dbus-client.h - mate-session/gsm-inhibit-dialog.c - mate-session/gsm-inhibit-dialog.h - mate-session/gsm-inhibitor.c - mate-session/gsm-inhibitor.h - mate-session/gsm-logout-dialog.c - mate-session/gsm-logout-dialog.h - mate-session/gsm-store.c - mate-session/gsm-store.h - mate-session/gsm-systemd.c - mate-session/gsm-systemd.h - mate-session/gsm-xsmp-client.c - mate-session/gsm-xsmp-client.h - mate-session/gsm-xsmp-server.c - mate-session/gsm-xsmp-server.h
2018-11-26Avoid compile warning for g_type_class_add_privateyetist2-101/+115
Fixes the issue with GLib >= 2.58, list of modified files: - mate-session/gsm-presence.c - mate-session/gsm-presence.h
2018-11-26Avoid compile warning for g_type_class_add_privateyetist2-316/+516
Fixes the issue with GLib >= 2.58, list of modified files: - mate-session/gsm-manager.c - mate-session/gsm-manager.h
2018-11-26Avoid compile warning for g_type_class_add_privateyetist2-64/+37
Fixes the issue with GLib >= 2.58, list of modified files: - mate-session/gs-idle-monitor.c - mate-session/gs-idle-monitor.h
2018-11-26Avoid compile warning for g_type_class_add_privateyetist2-75/+36
Fixes the issue with GLib >= 2.58, list of modified files: - mate-session/mdm-signal-handler.c - mate-session/mdm-signal-handler.h
2018-11-18Only show application name when run with --versionyetist1-1/+1
Run with --version, only show the application name and version, not show the path of program.
2018-06-30replace deprecated gdk_error_trap functionsyetist2-11/+16
2018-02-13avoid deprecated GtkStockPablo Barciela1-2/+2
2018-01-03gsm-manager.c: Fix build warning:Pablo Barciela1-1/+4
ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
2017-10-17don't lose focus when displaying logout or shutdown dialogmonsta1-0/+5
same as done in: https://github.com/mate-desktop/mate-polkit/commit/ed37b52fbfbce5d57d0549fac1a9dca2502f3372 fixes https://github.com/mate-desktop/mate-session-manager/issues/123 fixes https://github.com/mate-desktop/mate-session-manager/issues/140
2017-08-14add style class logout-dialograveit651-0/+4
2017-05-25systemd user-session needs to be updated to get all user-definedBjörn Esser3-6/+133
enviroment when the session starts. If we get passed an environment variable, send it along to the systemd --user session so things running in that context can pick it up. See: https://bugzilla.gnome.org/show_bug.cgi?id=736660
2017-05-25dbus needs to be updated to get all user-defined environment whenBjörn Esser3-29/+99
the session starts. dbus-update-activation-environment excepts certain environment variables, that systemd won't. We're going to want to eventually send the environment to systemd, too, so we should make sure the same set of variables get sent to both. See: https://bugzilla.gnome.org/show_bug.cgi?id=736660
2017-03-05Replace deprecated upower functions with ConsoleKit2 equivalentsSander Sweers5-83/+159
This requires ConsoleKit2 version 0.9.2. + corrections for issues mentioned at https://github.com/mate-desktop/mate-session-manager/pull/133
2017-03-05fix indent a bitmonsta3-79/+79
2017-02-27fix indent of some #if's to match the rest of the filemonsta1-8/+8
2017-01-18build: check stricter for presence of xtransmonsta1-4/+4
this should ensure that mate-session won't listen to TCP ports. if needed, this check can be disabled using --without-xtrans option. fixes https://github.com/mate-desktop/mate-session-manager/issues/131 adapted from: https://git.gnome.org/browse/gnome-session/commit/?id=aa4c9d125012ae94154ce075d62342b63b41a7d9
2016-10-19Also look for gdm-binary processGeorge Vlahavas1-1/+1
In some systems the gdm binary is actually called "gdm-binary", so we need to check for that too.
2016-08-03Fix Gtk-CRITICAL error caused by deprecated coderaveit651-5/+0
It removes the code related to the old dialog icon which is not displayed anymore. The Gtk-CRITICAL error was caused by gtk_message_dialog_get_image returning NULL as it is now deprecated in GTK 3. taken from: https://github.com/linuxmint/cinnamon-session/pull/71
2016-05-17require GTK+ >= 3.14, drop GTK+2 code and --with-gtk build optionmonsta4-95/+0
2016-01-31Adding #include <signal.h> for FreeBSD supportEric Turgeon1-0/+2
2015-12-31mdm: fix logic errormonsta1-1/+1
2015-12-13fix a typo in a warningMonsta1-2/+2
2015-12-13fix logic error that caused a weird build warningMonsta1-1/+1
2015-12-13fix one more build warningMonsta1-1/+2
2015-12-13fix warnings about unused variablesMonsta1-18/+6
2015-12-13Merge pull request #110 from oleid/mastermonsta2-10/+10
compile fix for upower 0.99 series
2015-11-14compile fix for upower 0.99 seriesOlaf Leidinger2-10/+10
upower 0.99 has lost support for hibernate and suspend. This leads to undefined references to up_client_get_can_suspend and up_client_get_can_hibernate on my system. This patch removes any call to those functions for upower >= 0.99.
2015-11-11get rid of dependency on libmate-desktopmonsta1-3/+17
this introduces a bit of code duplication but makes m-s-m independent of any MATE packages which rely upon GTK+, and so makes it possible to migrate m-s-m to GTK+3 right away. of course, this change might be reverted in the future (when all of MATE becomes GTK+3 only).
2015-10-15Only wait 1 second max on logout/shutdownClement Lefebvre1-1/+6
Ported from https://github.com/linuxmint/cinnamon-session/commit/73048abbfe05f882fed31365a1fe5b5733b6b7f6
2015-09-04Use org.gnome.SessionManager at /org/gnome/SessionManager as the DBUS API. ↵Clement Lefebvre17-60/+60
This is necessary for compatibility and it brings support for many apps hardcoding GNOME support but also apps written in GTK (Gtk.Application taps into org.gnome.Session to register applications for a clean shutdown and for inhibition). It doesn't conflict with GNOME or Cinnamon (which both use the same name) since it's on the SessionBus. It makes mate-session aware of programs such as gedit, etc.. which might need to save people's work before logout, it brings support for totem inhibiting the session etc etc..