2020-08-20 20:08:30 +02:00
|
|
|
diff --git a/gnome-session/gnome-session.in b/gnome-session/gnome-session.in
|
2022-01-30 02:23:14 +01:00
|
|
|
index b4b1f8fa..99d52cba 100755
|
2018-07-23 18:52:28 +02:00
|
|
|
--- a/gnome-session/gnome-session.in
|
|
|
|
+++ b/gnome-session/gnome-session.in
|
2022-01-30 02:23:14 +01:00
|
|
|
@@ -4,13 +4,15 @@ if [ "x$XDG_SESSION_TYPE" = "xwayland" ] &&
|
2018-08-04 15:17:32 +02:00
|
|
|
[ "x$XDG_SESSION_CLASS" != "xgreeter" ] &&
|
2022-01-30 02:23:14 +01:00
|
|
|
[ -n "$SHELL" ]; then
|
2018-08-04 15:17:32 +02:00
|
|
|
if [ "$1" != '-l' ]; then
|
|
|
|
- exec bash -c "exec -l '$SHELL' -c '$0 -l $*'"
|
2020-08-20 20:08:30 +02:00
|
|
|
+ # Make sure the shell actually sets up the environment.
|
2019-10-06 07:08:11 +02:00
|
|
|
+ unset __NIXOS_SET_ENVIRONMENT_DONE
|
2018-08-04 15:17:32 +02:00
|
|
|
+ exec @bash@ -c "exec -l '$SHELL' -c '$0 -l $*'"
|
|
|
|
else
|
|
|
|
shift
|
|
|
|
fi
|
2018-07-23 18:52:28 +02:00
|
|
|
fi
|
|
|
|
|
2020-08-20 20:08:30 +02:00
|
|
|
-SETTING=$(G_MESSAGES_DEBUG='' gsettings get org.gnome.system.locale region)
|
|
|
|
+SETTING=$(G_MESSAGES_DEBUG='' @gsettings@ get org.gnome.system.locale region)
|
2018-07-23 18:52:28 +02:00
|
|
|
REGION=${SETTING#\'}
|
|
|
|
REGION=${REGION%\'}
|
|
|
|
|
2020-08-20 20:08:30 +02:00
|
|
|
diff --git a/gnome-session/main.c b/gnome-session/main.c
|
2022-01-30 02:23:14 +01:00
|
|
|
index a460a849..9d07898f 100644
|
2018-07-23 18:52:28 +02:00
|
|
|
--- a/gnome-session/main.c
|
|
|
|
+++ b/gnome-session/main.c
|
2020-08-20 20:08:30 +02:00
|
|
|
@@ -215,7 +215,7 @@ require_dbus_session (int argc,
|
2018-07-23 18:52:28 +02:00
|
|
|
}
|
|
|
|
new_argv[i + 2] = NULL;
|
|
|
|
|
|
|
|
- if (!execvp ("dbus-launch", new_argv)) {
|
|
|
|
+ if (!execvp ("@dbusLaunch@", new_argv)) {
|
|
|
|
g_set_error (error,
|
|
|
|
G_SPAWN_ERROR,
|
|
|
|
G_SPAWN_ERROR_FAILED,
|