summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodfall <dave@dawoodfall.net>2017-11-03 22:16:54 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2017-11-03 23:18:38 +0000
commitd74bb259a9038cdbdc7f8ccda71275a466c94f66 (patch)
tree131bd0d72f09b4686f923c2d4b1614ce01b8810e
parent4b65b136483721f396cd8a21fbd806068d7602b4 (diff)
downloadslackbuilds-d74bb259a9038cdbdc7f8ccda71275a466c94f66.tar.gz
system/sddm: Patched + important info in README.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--system/sddm/README11
-rw-r--r--system/sddm/doinst.sh11
-rw-r--r--system/sddm/sddm.SlackBuild8
-rw-r--r--system/sddm/xsession.patch22
4 files changed, 50 insertions, 2 deletions
diff --git a/system/sddm/README b/system/sddm/README
index b16bdbaf0d..f31e540f47 100644
--- a/system/sddm/README
+++ b/system/sddm/README
@@ -4,9 +4,18 @@ which in turn gives the designer the ability to create smooth,
animated user interfaces.
You will need to edit /etc/rc.d/rc.4 to get this work.
-Put the section that refers to sddm before the others:
+Put the section that refers to sddm before the sections for xdm, kdm
+etc:
# Look for SDDM as well:
if [ -x /usr/bin/sddm ]; then
exec /usr/bin/sddm
fi
+
+Note: The home for SDDM is set by default in /etc/passwd as
+/var/empty. This ought to be changed to /var/lib/sddm. To do this,
+run:
+
+usermod -d /var/lib/sddm sddm
+
+when SDDM is *not* running.
diff --git a/system/sddm/doinst.sh b/system/sddm/doinst.sh
index c5a2478d2b..8133e45f74 100644
--- a/system/sddm/doinst.sh
+++ b/system/sddm/doinst.sh
@@ -12,3 +12,14 @@ config() {
}
config etc/sddm.conf.new
+
+if [ -n "$(grep sddm etc/passwd | grep var/empty)" ]; then
+ echo "*NOTICE*"
+ echo
+ echo 'SDDM $HOME is set to /var/empty in /etc/passwd'
+ echo "This needs to be changed to /var/lib/sddm"
+ echo
+ echo "Please run:"
+ echo "usermod -d /var/lib/sddm sddm"
+ echo
+fi
diff --git a/system/sddm/sddm.SlackBuild b/system/sddm/sddm.SlackBuild
index c74771be5c..f21cdad6fc 100644
--- a/system/sddm/sddm.SlackBuild
+++ b/system/sddm/sddm.SlackBuild
@@ -23,7 +23,7 @@
PRGNAM=sddm
VERSION=${VERSION:-0.16.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -70,6 +70,9 @@ find -L . \
patch -p1 --verbose < $CWD/consolekit.patch
+# Fix so that SDDM doesn't run ~/.xsession
+patch -p1 --verbose < $CWD/xsession.patch
+
mkdir -p build
cd build
cmake \
@@ -95,6 +98,9 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/etc/sddm.conf $PKG/etc/sddm.conf.new
+mkdir -p $PKG/var/lib/sddm
+chown sddm:users $PKG/var/lib/sddm
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
diff --git a/system/sddm/xsession.patch b/system/sddm/xsession.patch
new file mode 100644
index 0000000000..5bef451944
--- /dev/null
+++ b/system/sddm/xsession.patch
@@ -0,0 +1,22 @@
+diff -Naur a/data/scripts/Xsession b/data/scripts/Xsession
+--- a/data/scripts/Xsession 2017-11-03 11:49:19.374409491 +0000
++++ b/data/scripts/Xsession 2017-11-03 11:50:17.807893273 +0000
+@@ -67,7 +67,6 @@
+ # by the scripts to work
+ xsessionddir="/etc/X11/Xsession.d"
+ OPTIONFILE=/etc/X11/Xsession.options
+-USERXSESSION=$HOME/.xsession
+ USERXSESSIONRC=$HOME/.xsessionrc
+ ALTUSERXSESSION=$HOME/.Xsession
+
+@@ -90,10 +89,6 @@
+ fi
+ [ -f $HOME/.Xresources ] && xrdb -merge $HOME/.Xresources
+
+-if [ -f "$USERXSESSION" ]; then
+- . "$USERXSESSION"
+-fi
+-
+ if [ -z "$@" ]; then
+ exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session."
+ else