Skip to main content
Topic: xdg-desktop-portal-hyprland depends on libsystemd.so.0: (Read 422 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

xdg-desktop-portal-hyprland depends on libsystemd.so.0:

So I use hyprland and for some reason, when I try to launch /usr/lib/xdg-desktop-portal-hyprland, it states this:

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

Now here's the weird thing. I do have libsystemd.so.0 as you can see here:

Code: [Select]
~
❯ ldd /usr/lib32/libsystemd.so.0
linux-gate.so.1 (0xf7fa0000)
libcap.so.2 => /usr/lib32/libcap.so.2 (0xf7e8c000)
libgcrypt.so.20 => /usr/lib32/libgcrypt.so.20 (0xf7d8f000)
liblzma.so.5 => /usr/lib32/liblzma.so.5 (0xf7d55000)
libzstd.so.1 => /usr/lib32/libzstd.so.1 (0xf7c88000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7c5f000)
libc.so.6 => /usr/lib32/libc.so.6 (0xf7a00000)
/usr/lib/ld-linux.so.2 (0xf7fa3000)
libgpg-error.so.0 => /usr/lib32/libgpg-error.so.0 (0xf7c39000)

I'm confused on what's going on and I do need xdg-desktop-portal-hyprland in order to screenshare on Discord. Is there any way to fix this?

Re: xdg-desktop-portal-hyprland depends on libsystemd.so.0:

Reply #1
Install the Artix hyprland package which depends on libudev.
You must have the Arch hyprland package installed (depends on systemd-libs).

Code: [Select]
ldd /usr/lib32/libsystemd.so.0
Note the lib32. It's from multilib (arch). Something you installed from AUR probably dragged it in or you have [multilib] above [lib32] in /etc/pacman.conf

Edit: Actually first bit is wrong.
xdg-desktop-portal-hyprland is only in Arch it seems ?
libsystemd is missing from its 'depends' but is linked in

PKGBUILD
Code: [Select]
.
.
build() {
    cd "$_archive"
    arch-meson -Dsd-bus-provider=libsystemd build
    ninja -C build
    make -C hyprland-share-picker all
}
.
.

You'll need to build a version which doesn't link to libsystemd or hopefully one will be added for you and other hyprland users ?