From 4cfd64c691c144bb028c9bf367627afdeac78432 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Wed, 20 Feb 2019 02:34:35 -0300 Subject: [PATCH] sddm: start elogind via dbus if it is available. --- srcpkgs/sddm/files/sddm/run | 8 ++++++++ srcpkgs/sddm/template | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/sddm/files/sddm/run b/srcpkgs/sddm/files/sddm/run index 9a0ea8df62..9e46251d7d 100644 --- a/srcpkgs/sddm/files/sddm/run +++ b/srcpkgs/sddm/files/sddm/run @@ -1,4 +1,12 @@ #!/bin/sh set -e sv check dbus >/dev/null || exit 1 + +if [ -x /usr/bin/elogind-inhibit ]; then + dbus-send --system --print-reply --dest=org.freedesktop.DBus \ + /org/freedesktop/DBus \ + org.freedesktop.DBus.StartServiceByName \ + string:org.freedesktop.login1 uint32:0 +fi + exec sddm 2>&1 diff --git a/srcpkgs/sddm/template b/srcpkgs/sddm/template index 0d6da23be1..fbc6b8c1c0 100644 --- a/srcpkgs/sddm/template +++ b/srcpkgs/sddm/template @@ -1,7 +1,7 @@ # Template file for 'sddm' pkgname=sddm version=0.18.0 -revision=2 +revision=3 build_style=cmake configure_args="-DBUILD_MAN_PAGES=1 -DNO_SYSTEMD=1 -DUSE_ELOGIND=1 -DLOGIN_DEFS_PATH=${XBPS_SRCPKGDIR}/shadow/files/login.defs