]> git.pld-linux.org Git - packages/gdm.git/commitdiff
- rediffed xsession patch, BR: dconf auto/th/gdm-40.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 8 Apr 2021 04:40:43 +0000 (06:40 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 8 Apr 2021 04:40:43 +0000 (06:40 +0200)
gdm-xsession.patch
gdm.spec

index 07b7c0eeeb12db1dd4f0556f1e7a35b93046aafd..33c1bf07398b1c1170fd038879085599da0bff65 100644 (file)
@@ -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"
index 927ad378bc8030ca3d886aeed271ff4157bee74e..e1697626b792cf5338ad145a47e1c0381bd128fb 100644 (file)
--- 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
This page took 0.03707 seconds and 4 git commands to generate.