hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
273 stars 47 forks source link

Screenshare stops working #122

Closed rbroggi closed 11 months ago

rbroggi commented 11 months ago

Hyprland Version

Hyprland, built from branch at commit 1b48642fd15c433c53876f1b933dcd46265caf8f dirty (). Tag: v0.30.0

Bug or Regression?

Bug

Description

During my last boot screensharing stopped working on my browser (chrome).

After investigation I found that there is something wrong with the xdg-desktop-portal-hyprland service:

❯ systemctl --user status xdg-desktop-portal-hyprland
× xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-hyprland.service; static)
     Active: failed (Result: exit-code) since Tue 2023-10-24 16:42:57 CEST; 2s ago
    Process: 41970 ExecStart=/usr/lib/xdg-desktop-portal-hyprland (code=exited, status=127)
   Main PID: 41970 (code=exited, status=127)
        CPU: 3ms

Oct 24 16:42:57 arch systemd[1064]: xdg-desktop-portal-hyprland.service: Scheduled restart job, restart counter is at 5.
Oct 24 16:42:57 arch systemd[1064]: xdg-desktop-portal-hyprland.service: Start request repeated too quickly.
Oct 24 16:42:57 arch systemd[1064]: xdg-desktop-portal-hyprland.service: Failed with result 'exit-code'.
Oct 24 16:42:57 arch systemd[1064]: Failed to start Portal service (Hyprland implementation).

output of:

journalctl --user -xeu xdg-desktop-portal-hyprland.service
Oct 24 16:41:04 arch xdg-desktop-portal-hyprland[41655]: /usr/lib/xdg-desktop-portal-hyprland: error while loading shared libraries: libsdbus-c++.so.1: cannot open shared object file: No such file or directory
Oct 24 16:41:04 arch systemd[1064]: xdg-desktop-portal-hyprland.service: Main process exited, code=exited, status=127/n/a

How to reproduce

I'm not sure how to reproduce, it simply stopped working. I'm updated and running xdg-desktop-portal-hyprland-git arch AUR.

Crash reports, logs, images, videos

No response

vaxerski commented 11 months ago

you're missing a dependency, sdbus-c++.

rbroggi commented 11 months ago

Is this something that is wrong in the package manager specs? How come only happens in git version?

vaxerski commented 11 months ago

iirc the aur git package is outdated.

rbroggi commented 11 months ago

iirc the aur git package is outdated.

I could then deprecate the part in the hyprland wiki that mentions it. WDYT?

vaxerski commented 11 months ago

the only part that is missing is the sdbus-cpp dep iirc