Package Details: sway-systemd-git 0.4.1.r0.gd2c1493-2

Git Clone URL: https://aur.archlinux.org/sway-systemd-git.git (read-only, click to copy)
Package Base: sway-systemd-git
Description: Systemd integration for Sway session
Upstream URL: https://github.com/alebastr/sway-systemd
Keywords: cgroup cgroups environment systemd
Licenses: custom:MIT
Conflicts: sway-services-git, sway-systemd
Provides: sway-systemd
Submitter: Scrumplex
Maintainer: fmauNeko
Last Packager: fmauNeko
Votes: 9
Popularity: 0.000072
First Submitted: 2021-04-25 19:31 (UTC)
Last Updated: 2025-03-11 10:44 (UTC)

Latest Comments

hour-keeper commented on 2026-06-24 01:45 (UTC) (edited on 2026-06-26 16:05 (UTC) by hour-keeper)

sway-contrib has restored the “sway-sessions.target” file


For some reason, sway-contrib removed sway-session.target, so please apply this patch to fix the issue:

diff --git a/PKGBUILD b/PKGBUILD
index 3043508..311369d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,8 +28,6 @@ check() {
 package() {
   DESTDIR="$pkgdir" ninja -C build install

-  rm "$pkgdir/usr/lib/systemd/user/sway-session.target"
-
   cd "$srcdir/${pkgname%-git}"

   install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"

Refer to:

https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/commit/5d3b06eb71cfba1f46390008cfc7828d726e356a

https://gitlab.archlinux.org/archlinux/packaging/packages/xdg-desktop-portal/-/commit/93e731c0f7a1bf646dd66607c08a90a7b2f7f5a8

swantzter commented on 2026-01-29 17:40 (UTC) (edited on 2026-01-29 17:43 (UTC) by swantzter)

For the python scripts to work, python-dbus-fast should be added as a dependency

itaranto commented on 2023-05-21 22:26 (UTC) (edited on 2023-05-21 22:29 (UTC) by itaranto)

Hey! Here's a patch which contains:

  • Fix version generation, currently it wasn't working. I used the suggestion from PKGBUILD-vcs.proto.
  • Remove unnecessary whitespace.
  • Replace $var with ${var}, which is safer.
diff --git a/PKGBUILD b/PKGBUILD
index 09cf197..63275dd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,34 +14,27 @@ conflicts=("${pkgname%-git}" "sway-services-git")
 source=('sway-systemd::git+https://github.com/alebastr/sway-systemd.git')
 sha512sums=('SKIP')

-
 pkgver() {
-    cd "$srcdir/${pkgname%-git}"
-
-    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+    cd "${srcdir}/${pkgname%-git}"
+    printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
 }

 build() {
-
     arch-meson \
         -Dautostart=true \
         -Dcgroups=enabled \
         -Dlocale1=true \
-        "$srcdir/${pkgname%-git}" build
+        "${srcdir}/${pkgname%-git}" build
     ninja -C build
 }

 check() {
-
     ninja -C build test
 }

 package() {
-
-    DESTDIR="$pkgdir" ninja -C build install
-
-    cd "$srcdir/${pkgname%-git}"
-
-    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
-    install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname%-git}/README.md"
+    DESTDIR="${pkgdir}" ninja -C build install
+    cd "${srcdir}/${pkgname%-git}"
+    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname%-git}/README.md"
 }

Scrumplex commented on 2021-06-30 19:37 (UTC)

snakeroot: Thanks for the heads up! I have added python-tenacity as a dependency.

snakeroot commented on 2021-06-30 19:28 (UTC)

Note that after commit 71d697e2b0196c8561ab82a5f891f0466f9a898c sway-systemd depends on python-tenacity which is available in community.