include-profile-env-variables.patch 649 B

12345678910111213141516171819202122
  1. By default GNOME folks want us to put all stuff in /usr/share/gdm/env.d
  2. (which is a lot of effort for no good reason for us) or use the systemd
  3. specific /etc/environment.d to set environment variables. With this
  4. patch we just force gnome-session's hand to include the env variables
  5. of /etc/profile.
  6. --- gnome-session/gnome-session.in
  7. +++ gnome-session/gnome-session.in
  8. @@ -1,4 +1,4 @@
  9. -#!/bin/sh
  10. +#!/bin/bash
  11. if [ "x$XDG_SESSION_TYPE" = "xwayland" ] &&
  12. [ "x$XDG_SESSION_CLASS" != "xgreeter" ] &&
  13. @@ -25,4 +25,6 @@ if [ -n "$REGION" ]; then
  14. export LC_PAPER=$REGION
  15. fi
  16. +source /etc/profile
  17. +
  18. exec @libexecdir@/gnome-session-binary "$@"