Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Wlroots's Desktop Portal requires systemd (Read 710 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Wlroots's Desktop Portal requires systemd

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?

Re: Wlroots's Desktop Portal requires systemd

Reply #1
have you installed artix-archlinux-support package from universe?

Re: Wlroots's Desktop Portal requires systemd

Reply #2
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.

Re: Wlroots's Desktop Portal requires systemd

Reply #3
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.

 

Re: Wlroots's Desktop Portal requires systemd

Reply #4
You are a life-saver. Solved.