r51914 - in /desktop/unstable/gnome-session/debian: changelog patches/git_wayland_login_shell.patch patches/series

jbicha-guest at users.alioth.debian.org jbicha-guest at users.alioth.debian.org
Tue Jan 17 00:25:21 UTC 2017


Author: jbicha-guest
Date: Tue Jan 17 00:25:21 2017
New Revision: 51914

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=51914
Log:
Backport 3.23 commit that made Wayland sessions run login scripts like ~/.profile (LP: #1631713)

Added:
    desktop/unstable/gnome-session/debian/patches/git_wayland_login_shell.patch
Modified:
    desktop/unstable/gnome-session/debian/changelog
    desktop/unstable/gnome-session/debian/patches/series

Modified: desktop/unstable/gnome-session/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-session/debian/changelog?rev=51914&op=diff
==============================================================================
--- desktop/unstable/gnome-session/debian/changelog	[utf-8] (original)
+++ desktop/unstable/gnome-session/debian/changelog	[utf-8] Tue Jan 17 00:25:21 2017
@@ -1,3 +1,11 @@
+gnome-session (3.22.2-2) UNRELEASED; urgency=medium
+
+  * Add git_wayland_login_shell.patch:
+    - Backport 3.23 commit that made Wayland sessions run login scripts
+      like ~/.profile since that's what people expect (LP: #1631713)
+
+ -- Jeremy Bicha <jbicha at ubuntu.com>  Mon, 16 Jan 2017 19:11:37 -0500
+
 gnome-session (3.22.2-1) unstable; urgency=medium
 
   * New upstream release.

Added: desktop/unstable/gnome-session/debian/patches/git_wayland_login_shell.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-session/debian/patches/git_wayland_login_shell.patch?rev=51914&op=file
==============================================================================
--- desktop/unstable/gnome-session/debian/patches/git_wayland_login_shell.patch	(added)
+++ desktop/unstable/gnome-session/debian/patches/git_wayland_login_shell.patch	[utf-8] Tue Jan 17 00:25:21 2017
@@ -0,0 +1,40 @@
+From 7e307f8ddb91db5d4051c4c792519a660ba67f35 Mon Sep 17 00:00:00 2001
+From: Ray Strode <rstrode at redhat.com>
+Date: Thu, 5 Jan 2017 10:02:58 -0500
+Subject: gnome-session: make sure wayland sessions get a login shell
+
+Users expect their shell profiles to get sourced at startup, which
+doesn't happen with wayland sessions.
+
+This commit brings back that feature, by making the gnome-session
+wrapper script run a login shell.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=736660
+---
+ gnome-session/gnome-session.in | 13 +++++++++++++
+ 1 file changed, 13 insertions(+)
+
+diff --git a/gnome-session/gnome-session.in b/gnome-session/gnome-session.in
+index fdf7163..ce63df5 100644
+--- a/gnome-session/gnome-session.in
++++ b/gnome-session/gnome-session.in
+@@ -1,5 +1,18 @@
+ #!/bin/sh
+ 
++if [ "x$XDG_SESSION_TYPE" = "xwayland" ] &&
++   [ "x$XDG_SESSION_CLASS" != "xgreeter" ] &&
++   [  -n "$SHELL" ] &&
++   grep -q "$SHELL" /etc/shells &&
++   ! (echo "$SHELL" | grep -q "false") &&
++   ! (echo "$SHELL" | grep -q "nologin"); then
++  if [ "$1" != '-l' ]; then
++    exec bash -c "exec -l '$SHELL' -c '$0 -l $*'"
++  else
++    shift
++  fi
++fi
++
+ SETTING=$(gsettings get org.gnome.system.locale region)
+ REGION=${SETTING#\'}
+ REGION=${REGION%\'}
+

Modified: desktop/unstable/gnome-session/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-session/debian/patches/series?rev=51914&op=diff
==============================================================================
--- desktop/unstable/gnome-session/debian/patches/series	[utf-8] (original)
+++ desktop/unstable/gnome-session/debian/patches/series	[utf-8] Tue Jan 17 00:25:21 2017
@@ -0,0 +1 @@
+git_wayland_login_shell.patch




More information about the pkg-gnome-commits mailing list