mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-28 06:35:24 +02:00
By default gnome-session doesn't source this. Since GDM Wayland isn't launched from a shell it doesn't source profile either and instead wants us to use /usr/share/gdm/env.d or /etc/enviroment.d (which is systemd specific). So instead we force gnome-session's hand to just source /etc/profile. fixes #8613
21 lines
649 B
Diff
21 lines
649 B
Diff
By default GNOME folks want us to put all stuff in /usr/share/gdm/env.d
|
|
(which is a lot of effort for no good reason for us) or use the systemd
|
|
specific /etc/environment.d to set environment variables. With this
|
|
patch we just force gnome-session's hand to include the env variables
|
|
of /etc/profile.
|
|
|
|
--- gnome-session/gnome-session.in
|
|
+++ gnome-session/gnome-session.in
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/sh
|
|
+#!/bin/bash
|
|
|
|
if [ "x$XDG_SESSION_TYPE" = "xwayland" ] &&
|
|
[ "x$XDG_SESSION_CLASS" != "xgreeter" ] &&
|
|
@@ -25,4 +25,6 @@ if [ -n "$REGION" ]; then
|
|
export LC_PAPER=$REGION
|
|
fi
|
|
|
|
+source /etc/profile
|
|
+
|
|
exec @libexecdir@/gnome-session-binary "$@"
|