[packages/gdm] - rediffed xsession patch, BR: dconf

qboosh qboosh at pld-linux.org
Thu Apr 8 06:40:50 CEST 2021


commit 51dc29051c2f689bf559747201df4fa00095492e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Apr 8 06:40:43 2021 +0200

    - rediffed xsession patch, BR: dconf

 gdm-xsession.patch | 35 +++++++++++++++--------------------
 gdm.spec           |  1 +
 2 files changed, 16 insertions(+), 20 deletions(-)
---
diff --git a/gdm.spec b/gdm.spec
index 927ad37..e169762 100644
--- a/gdm.spec
+++ b/gdm.spec
@@ -40,6 +40,7 @@ URL:		https://wiki.gnome.org/Projects/GDM
 BuildRequires:	accountsservice-devel >= 0.6.35
 BuildRequires:	audit-libs-devel
 BuildRequires:	check-devel >= 0.9.4
+BuildRequires:	dconf
 BuildRequires:	gettext-tools >= 0.19.8
 BuildRequires:	glib2-devel >= %{glib2_ver}
 BuildRequires:	gobject-introspection-devel >= 0.9.12
diff --git a/gdm-xsession.patch b/gdm-xsession.patch
index 07b7c0e..33c1bf0 100644
--- a/gdm-xsession.patch
+++ b/gdm-xsession.patch
@@ -1,8 +1,7 @@
-diff -urN gdm-2.6.0.3.orig/data/Xsession.in gdm-2.6.0.3/data/Xsession.in
---- gdm-2.6.0.3.orig/data/Xsession.in	2004-05-28 21:50:17.000000000 +0200
-+++ gdm-2.6.0.3/data/Xsession.in	2004-07-09 15:07:16.039478016 +0200
-@@ -35,6 +35,10 @@
- test -f /etc/xprofile && . /etc/xprofile
+--- gdm-40.0/data/Xsession.in.orig	2021-03-30 15:27:29.673587600 +0200
++++ gdm-40.0/data/Xsession.in	2021-04-08 06:33:38.688182706 +0200
+@@ -45,6 +45,10 @@
+ fi
  test -f "$HOME/.xprofile" && . "$HOME/.xprofile"
  
 +if [ ! -f $HOME/.profile ] && echo $SHELL |grep -q "bash"; then
@@ -10,12 +9,18 @@ diff -urN gdm-2.6.0.3.orig/data/Xsession.in gdm-2.6.0.3/data/Xsession.in
 +fi
 +
  # Translation stuff
- if [ -x "@EXPANDED_LIBEXECDIR@/gdmtranslate" ] ; then
-   gdmtranslate="@EXPANDED_LIBEXECDIR@/gdmtranslate"
-@@ -222,14 +226,23 @@
+ if [ -x "@libexecdir@/gdmtranslate" ] ; then
+   gdmtranslate="@libexecdir@/gdmtranslate"
+@@ -207,12 +211,21 @@
    fi
  fi
  
+-# add ssh-agent if found
+-sshagent="`gdmwhich ssh-agent`"
+-if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
+-    command="$sshagent -- $command"
+-elif [ -z "$sshagent" ] ; then
+-    echo "$0: ssh-agent not found!"
 +# Keep in sync with Xclients from xinitrc-ng 
 +syswmfile="/etc/sysconfig/desktop"
 +
@@ -31,16 +36,6 @@ diff -urN gdm-2.6.0.3.orig/data/Xsession.in gdm-2.6.0.3/data/Xsession.in
 +    command="$HOME/bin/$command.sh"
 +elif [ -x "$wmstyledir/$command.sh" ]; then
 +    command="$wmstyledir/$command.sh"
-+fi
-+
--# add ssh-agent if found
--sshagent="`gdmwhich ssh-agent`"
--if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
--    command="$sshagent -- $command"
--elif [ -z "$sshagent" ] ; then
--    echo "$0: ssh-agent not found!"
--fi
--
- echo "$0: Setup done, will execute: $command"
+ fi
  
- eval exec $command
+ echo "$0: Setup done, will execute: $command"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gdm.git/commitdiff/51dc29051c2f689bf559747201df4fa00095492e



More information about the pld-cvs-commit mailing list