Artix Linux Forum

Artix Linux => Package management => Topic started by: smallcreek on 21 July 2023, 15:21:16

Title: [SOLVED] Wlroots's Desktop Portal requires systemd
Post by: smallcreek on 21 July 2023, 15:21:16
I'm on Sway, and I've noticed that in OBS, the Screen Capture via PipeWire option disappeared when I removed --then re-installed-- xdg-desktop-portal-wlr. If I run this program manually using /usr/lib/xdg-desktop-portal-wlr, I get this message:

Code: [Select]
/usr/lib/xdg-desktop-portal-wlr: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory

XDPW used to start fine before, but now it seems to require systemd? I got it from the extra Arch repo, so that might explain it. It's weird, though, shouldn't an important dependency like this already be on Artix repos? `pacman` does not show me a package called xdg-desktop-portal-wlr on any Artix-specific repo. Does the recent migration to Git on Arch/Artix repos have something to do with this?
Title: Re: Wlroots's Desktop Portal requires systemd
Post by: owner on 21 July 2023, 16:30:02
have you installed artix-archlinux-support package from universe?
Title: Re: Wlroots's Desktop Portal requires systemd
Post by: gripped on 21 July 2023, 20:47:48
This seems to keep coming up fairly frequently recently, and I think all related to wayland / sway / tiling desktop type packages.

Installing artix-archlinux-support won't help.

I'm going to refer to the last post I made to avoid repeating myself.
https://forum.artixlinux.org/index.php/topic,5712.msg35796.html#msg35796

But to add to that I mentioned that you might be able to build your own package which uses libelogind rather than libsystemd.

I've checked by using the xdg-desktop-portal-wlr PKGBUILD to get the source and you can.
In meson_options.txt
Quote
option('sd-bus-provider', type: 'combo', choices: ['auto', 'libsystemd', 'libelogind', 'basu'], value: 'auto', description: 'Provider of the sd-bus library')

So in the PKGBUILD you change this line
Code: [Select]
arch-meson -Dsd-bus-provider=libsystemd build
to
Code: [Select]
arch-meson -Dsd-bus-provider=libelogind build
and build the package.
Title: Re: Wlroots's Desktop Portal requires systemd
Post by: Dudemanguy on 21 July 2023, 23:59:06
It seems we have all the various xdg-desktop-portal-* packages already but not xdg-desktop-portal-wlr oddly enough. We're missing xdg-desktop-portal-hyprland as well, but that's pretty new so not really surprising. Anyways, I've just added both of those to the repos with systemd disabled in the build. Kind of the whole point of this distro after all.
Title: Re: Wlroots's Desktop Portal requires systemd
Post by: smallcreek on 22 July 2023, 01:47:00
You are a life-saver. Solved.