- 03 Dec, 2020 2 commits
-
-
Closes: #71
-
-
- 31 Jul, 2020 1 commit
-
-
In the event that the user logs back in after a session failure, it is likely that some failed units cannot start. Reset all failed states to ensure that systemd at least tries to start all previously failed units on every login.
-
- 04 May, 2020 1 commit
-
-
Ray Strode authored
The bus daemon is going to get restarted on shutdown, so make sure it has a pristine environment when starting back up.
-
- 10 Apr, 2020 1 commit
-
-
Xiaoguang Wang authored
There is error in journal log: gnome-session-c[4905]: Error creating FIFO: File exists The errno can't be negative number. !42
-
- 16 Dec, 2019 2 commits
-
-
Iain Lane authored
Now we're started by systemd, we also need to handle being *stopped* by systemd too. systemd sends us a SIGTERM to ask us to quit, but we refuse to exit on SIGTERM if we're not fully running. That's a problem if the SIGTERM is sent early in startup. For example, if gnome-shell has exited due to Wayland not being supported, and we're trying to fall back to Xorg, the session will not be running at this point, but we want to be able to kill everything in order to try again with Xorg. Fix this by looking at the `GError` returned by `gsm_manager_logout()`, and directly quitting if we're not in the running phase yet.
-
Iain Lane authored
-
- 02 Aug, 2019 1 commit
-
-
Benjamin Berg authored
This flips the switch and enables systemd usage in gnome-session.
-
- 01 Aug, 2019 3 commits
-
-
Benjamin Berg authored
The autostart directory that was overriden by GDM needs to be passed to the systemd service via environment. Export the parameter when needed so that this will work properly.
-
Benjamin Berg authored
We are in the situation that gnome-session-binary is the session leader process for the user. This process is managed via logind and is inside the session scope of the user. This process has an important role for the session lifetime management, but we cannot track or manage its state from the systemd user instance. This adds a simple protocol to allow us managing the state. The counterpart is in gnome-session-ctl.c. It works by creating a named fifo called gnome-session-leader-fifo in the users runtime directory. The session leader opens it for writing, the monitoring process opens it for reading. By closing the FD the monitor process can signal to the leader that the session has been shut down normally. By writing to the FD the leader can signal the monitoring process to initiate a clean shutdown of the session. If either process crashes or is killed, the FD is closed and the other side will also quit.
-
Benjamin Berg authored
When running on systemd a few things need to change in the manager. Add a property for this but leave it unused for now.
-
- 30 Jul, 2019 1 commit
-
-
This is so that we can be started by systemd, yet still autostart things from the right place if necessary - e.g. for the gdm session.
-
- 13 Mar, 2018 1 commit
-
-
Bastien Nocera authored
It was re-added "for compatibility reasons" nearly 10 years ago in commit b7c80650. There's really no need to keep this compatibility any longer. https://bugzilla.gnome.org/show_bug.cgi?id=790387
-
- 12 Feb, 2018 1 commit
-
-
Ray Strode authored
This reverts commit 6bf47ad8. https://bugzilla.gnome.org/show_bug.cgi?id=790387
-
- 04 Jan, 2018 1 commit
-
-
Dominique Leuenberger authored
Allow distros that do wish to do so to disable logging to the systemd journal. Unless specified at 'configure time', the default remains to log to the journal. https://bugzilla.gnome.org/show_bug.cgi?id=768982
-
- 15 Nov, 2017 1 commit
-
-
Bastien Nocera authored
It was re-added "for compatibility reasons" nearly 10 years ago in commit b7c80650. There's really no need to keep this compatibility any longer. https://bugzilla.gnome.org/show_bug.cgi?id=790387
-
- 10 Nov, 2017 1 commit
-
-
Antoine Jacoutot authored
Some operating systems (like OpenBSD) don't have support for it. https://bugzilla.gnome.org/show_bug.cgi?id=790154
-
- 20 Sep, 2017 1 commit
-
-
Ray Strode authored
on_bus_lost currently calls gsm_manager_set_phase (NULL, ...), because a local is shadowing a global. This commit fixes that. https://bugzilla.gnome.org/show_bug.cgi?id=787950
-
- 29 Jun, 2017 1 commit
-
-
Tomas Popela authored
Don't use already freed use_vfs variable in the fuse code, but use the disable_fuse one. https://bugzilla.gnome.org/show_bug.cgi?id=784339
-
- 21 Jun, 2017 2 commits
-
-
- 22 Mar, 2017 1 commit
-
-
Rui Matos authored
This closes a race where the clients we spawn wouldn't be able to reach us on the well known DBus name because they'd attempt to do so before we own it. By registering DBus APIs on the bus acquired callback but only starting the GsmManager on name acquired we guarantee that clients will be able to reach us. https://bugzilla.gnome.org/show_bug.cgi?id=780405
-
- 13 Jan, 2017 2 commits
-
-
Ray Strode authored
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. https://bugzilla.gnome.org/show_bug.cgi?id=736660
-
Ray Strode authored
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 shouldn't make sure the same set of variables get sent to both. This commit takes the dbus-update-activation-environment call out of the gnome-session shell script wrapper, and instead changes the C code to do the export explicitly. https://bugzilla.gnome.org/show_bug.cgi?id=736660
-
- 24 Oct, 2016 1 commit
-
-
Ray Strode authored
This reverts commits: 971baf2e e833cd1b ce4208ad https://bugzilla.gnome.org/show_bug.cgi?id=762681
-
- 10 Oct, 2016 1 commit
-
-
Bastien Nocera authored
It is already done in the wrapper script, and needs to stay there. See https://bugzilla.gnome.org/show_bug.cgi?id=756324 See https://bugzilla.gnome.org/show_bug.cgi?id=766176 https://bugzilla.gnome.org/show_bug.cgi?id=772562
-
- 18 Aug, 2016 1 commit
-
-
Gunnar Hjalmarsson authored
To give a user the option to use some other input method framework but IBus, gnome-session should not override the QT_IM_MODULE and XMODIFIERS environment variables if they are already set. The desired approach has been implemented in gnome-settings-daemon: https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=21a16d25d981f3ce34b764dbc8005dbf8edfbe97 It would be consistent to change gnome-session in a similar way.
-
- 22 Jul, 2016 1 commit
-
-
Hanno Böck authored
I have discovered a heap overflow with the help of an address sanitizer. The require_dbus_session() function has this code: new_argv = g_malloc (argc + 3 * sizeof (*argv)); The intention is to allocate space for (argc + 3) pointers. However obviously a parenthesis is missing, therefore only argc bytes + 3 * pointer size gets allocated, which is insufficient space. This leads to invalid memory writes. The fix is trivial: Parentheses around argc + 3. https://bugzilla.gnome.org/show_bug.cgi?id=768441
-
- 09 Apr, 2016 2 commits
-
-
Cosimo Cecchi authored
-
This is useful to avoid repeating the same code e.g. in the Details settings panel. Note that it's possible that both the display manager and the user session run gnome-session, and that they both share the same X server. In that case, we need to store the renderer string as an X property on the root window (like the helper already does for other properties). https://bugzilla.gnome.org/show_bug.cgi?id=686806
-
- 01 Apr, 2016 1 commit
-
-
Ray Strode authored
commit 971baf2e added code to make Qt applications look like GNOME ones. That makes it impossible for users to use custom platform themes though. This commit addresses the problem by only setting QT_QPA_PLATFORMTHEME if it isn't already set. https://bugzilla.gnome.org/show_bug.cgi?id=762681
-
- 31 Mar, 2016 1 commit
-
-
Andreas Henriksson authored
The changes related to gsm_util_setenv during 3.19.x seems to have broken starting a gnome desktop the old fashioned way, eg. via startx. The gnome.session required components has OnlyShowIn=GNOME; which disqualifies them from being started unless XDG_CURRENT_DESKTOP is also set to GNOME (by the gio utility function used to look up info). Currently gnome-session already carries code to catch the case of XDG_CURRENT_DESKTOP being unset and set it to GNOME as a fallback. Unfortunately the changes to gsm_util_setenv seems to have made it only set the values in the (dbus activated) child environment, rather than the current environment which g_desktop_app_info_get_show_in is looking at. Make the fallback code set XDG_CURRENT_DESKTOP in both current and child environment fixes it. Also move the entire hunk of code before initializing gio to prevent potential thread issues, now that is uses g_setenv. https://bugzilla.gnome.org/show_bug.cgi?id=764379
-
- 25 Feb, 2016 2 commits
-
-
Ray Strode authored
-
Ray Strode authored
If the user is logging into GNOME then QT applications run in the session should integrate as good as possible. According to KDE folks, the best way to achieve that is to set QT_QPA_PLATFORMTHEME="qgnomeplatform" This commit does that. https://bugzilla.gnome.org/show_bug.cgi?id=762681
-
- 21 Jan, 2016 2 commits
-
-
Ray Strode authored
Fixes build.
-
Ting-Wei Lan authored
It is required to correctly show translated messages on some locales. https://bugzilla.gnome.org/show_bug.cgi?id=760425
-
- 14 Oct, 2015 4 commits
-
-
Ray Strode authored
I reworked some of Giovanni's code and introduced a few typos in commit 6b8d94ae https://bugzilla.gnome.org/show_bug.cgi?id=756324
-
Giovanni Campagna authored
So that we don't accidentally start gvfsd too early Patch slightly modified by Ray Strode to preserve original glib environment variable values. https://bugzilla.gnome.org/show_bug.cgi?id=756324
-
Giovanni Campagna authored
Before anything else runs https://bugzilla.gnome.org/show_bug.cgi?id=756324
-
Ray Strode authored
Until we can get a more complete environment variable propagation story figured, implement a quick hack for the most pressing one, SSH_AUTH_SOCK. https://bugzilla.gnome.org/show_bug.cgi?id=738205
-