From d49c7efcc8be34f425c315b76d80d92ab3874791 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:34:13 +0100 Subject: [PATCH] patch to fix running chosen session in openmamba [release 0.5.0-2mamba;Fri Jul 18 2014] --- lxdm-0.5.0-xsessions-openmamba.patch | 15 +++++++++++++++ lxdm.spec | 8 ++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 lxdm-0.5.0-xsessions-openmamba.patch diff --git a/lxdm-0.5.0-xsessions-openmamba.patch b/lxdm-0.5.0-xsessions-openmamba.patch new file mode 100644 index 0000000..d18233b --- /dev/null +++ b/lxdm-0.5.0-xsessions-openmamba.patch @@ -0,0 +1,15 @@ +diff -Nru lxdm-0.5.0.orig/data/Xsession lxdm-0.5.0/data/Xsession +--- lxdm-0.5.0.orig/data/Xsession 2014-07-18 13:29:45.333063760 +0200 ++++ lxdm-0.5.0/data/Xsession 2014-07-18 13:40:39.521124350 +0200 +@@ -17,7 +17,10 @@ + [ -f /etc/xprofile ] && . /etc/xprofile + [ -f ~/.xprofile ] && . ~/.xprofile + +-if [ -f /etc/X11/xinit/xinitrc-common ]; then ++if [ "`which $LXSESSION`" ]; then ++# openmamba ++ exec -l bash -c "$LXSESSION" ++elif [ -f /etc/X11/xinit/xinitrc-common ]; then + # fedora + . /etc/X11/xinit/xinitrc-common + exec -l bash -c "$LXSESSION" diff --git a/lxdm.spec b/lxdm.spec index 933f932..3be2eec 100644 --- a/lxdm.spec +++ b/lxdm.spec @@ -1,6 +1,6 @@ Name: lxdm Version: 0.5.0 -Release: 1mamba +Release: 2mamba Summary: Login manager for the Lightweight X11 Desktop Environment Group: Graphical Desktop/Applications/Environment Vendor: openmamba @@ -14,6 +14,7 @@ Patch2: lxdm-0.5.0-pam_console_remove.patch Patch3: lxdm-0.5.0-conf.patch Patch5: lxdm-0.4.1-disable-consolekit.patch Patch6: lxdm-0.4.1-automake-1.14.patch +Patch7: lxdm-0.5.0-xsessions-openmamba.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -42,9 +43,9 @@ Login manager for the Lightweight X11 Desktop Environment. #%patch1 -p1 %patch2 -p1 %patch3 -p1 -%patch4 -p1 #%patch5 -p1 #%patch6 -p1 +%patch7 -p1 # Remove pregenerated lxdm.conf to recreate with passed directories # Fixes configuring for using /usr/local/libexec rm -f data/lxdm.conf @@ -132,6 +133,9 @@ fi #README TODO %changelog +* Fri Jul 18 2014 Silvan Calarco 0.5.0-2mamba +- patch to fix running chosen session in openmamba + * Sun Jul 13 2014 Silvan Calarco 0.5.0-1mamba - update to 0.5.0