[arch-commits] Commit in sway/trunk (10-systemd.conf 50-systemd-user.conf PKGBUILD)

Brett Cornwall ainola at archlinux.org
Sun Jan 26 04:20:19 UTC 2020


    Date: Sunday, January 26, 2020 @ 04:20:18
  Author: ainola
Revision: 555631

rename conf.d -> config.d; convert systemd script to conf

conf.d was created to house 10-systemd.sh but the default config references
config.d.

the shell script was also converted to sway configuration. Same result,
different format; It seems more right to the author.

See FS#63021 for more details

Added:
  sway/trunk/50-systemd-user.conf
Modified:
  sway/trunk/PKGBUILD
Deleted:
  sway/trunk/10-systemd.conf

----------------------+
 10-systemd.conf      |   10 ----------
 50-systemd-user.conf |    6 ++++++
 PKGBUILD             |    8 ++++----
 3 files changed, 10 insertions(+), 14 deletions(-)

Deleted: 10-systemd.conf
===================================================================
--- 10-systemd.conf	2020-01-26 03:29:51 UTC (rev 555630)
+++ 10-systemd.conf	2020-01-26 04:20:18 UTC (rev 555631)
@@ -1,10 +0,0 @@
-#!/bin/sh
-#
-# FS#63021
-#
-
-systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XCURSOR_SIZE
-
-if command -v dbus-update-activation-environment >/dev/null 2>&1; then
-  dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XCURSOR_SIZE
-fi

Added: 50-systemd-user.conf
===================================================================
--- 50-systemd-user.conf	                        (rev 0)
+++ 50-systemd-user.conf	2020-01-26 04:20:18 UTC (rev 555631)
@@ -0,0 +1,6 @@
+# sway does not set DISPLAY/WAYLAND_DISPLAY in the systemd user environment
+# See FS#63021
+# Adapted from xorg's 50-systemd-user.sh, which achieves a similar goal.
+
+exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XCURSOR_SIZE
+exec hash dbus-update-activation-environment && dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XCURSOR_SIZE

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-26 03:29:51 UTC (rev 555630)
+++ PKGBUILD	2020-01-26 04:20:18 UTC (rev 555631)
@@ -4,7 +4,7 @@
 pkgname=sway
 pkgver=1.4
 epoch=1
-pkgrel=1
+pkgrel=2
 pkgdesc='Tiling Wayland compositor and replacement for the i3 window manager'
 arch=(x86_64)
 url='https://swaywm.org/'
@@ -27,10 +27,10 @@
 )
 source=("https://github.com/swaywm/sway/releases/download/$pkgver/sway-$pkgver.tar.gz"
         "https://github.com/swaywm/sway/releases/download/$pkgver/sway-$pkgver.tar.gz.sig"
-        "10-systemd.conf")
+        "50-systemd-user.conf")
 sha512sums=('3b280bdfdbdae8fb9b4f555bc630c64e7c1d09f7b2c783b99413863a6b620d50cd2b6d10d63e11fdfb9c678fce9a403228ac52fa69fb52561ffbd06790505a71'
             'SKIP'
-            '122b97f7adb6444c442368c5bbbd3401bcd8420f522fcd6521def5a09cd2989f5f6f555a5a7762e922eaa307077eb26db6508242ee1b835ca73ad65acaeef95b')
+            'a44c7d2dd5af142c69bb8f43bea9db04da2a3cc5b34d8f10d6f00572dbb3aec6523cd2108a28b391a4422cc5d9c7371c4dc3e600fece225580a10f377e40817a')
 validpgpkeys=('9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A') # Drew DeVault
 
 prepare() {
@@ -49,7 +49,7 @@
 package() {
   DESTDIR="$pkgdir" ninja -C build install
   install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-  install -Dm755 10-systemd.conf "$pkgdir/etc/sway/conf.d/10-systemd.conf"
+  install -Dm644 50-systemd-user.conf -t "$pkgdir/etc/sway/config.d/"
 }
 
 # vim: ts=2 sw=2 et



More information about the arch-commits mailing list