Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.3k stars 689 forks source link

Usage without xdg-desktop-portal #3140

Open WhyNotHugo opened 5 months ago

WhyNotHugo commented 5 months ago

The xdg-desktop-portal is currently crashing for me for unrelated reasons.

Waybar attempts to communicate with this portal at start-up, and fails:

> waybar
[2024-04-15 13:33:57.764] [info] Using configuration file /home/hugo/.config/waybar/config.jsonc
[2024-04-15 13:33:57.772] [error] Error calling StartServiceByName for org.freedesktop.portal.Desktop: Process org.freedesktop.portal.Desktop received signal 11

This is blocking me from using waybar entirely. I run the xdg-desktop-portal for dark mode in a few applications (notably: not waybar) and screensharing. However, the portal does not provide any functionality required by waybar itself.

Is there some way to have waybar work without the xdg-desktop-portal? Waybar is required for my graphical session to be usable, and xdg-desktop-portal is far from that. The xdg-desktop-portal is somewhat brittle (it's not the first time that it breaks), and it's quite annoying that waybar stops working with it as well -- ideally, I'd want Waybar to run regardless of the status of the xdg-desktop-portal.

ordy commented 5 months ago

However, the portal does not provide any functionality required by waybar itself.

I think it "kinda" does since https://github.com/Alexays/Waybar/pull/2470

Is there some way to have waybar work without the xdg-desktop-portal

Well yes, I just uninstalled my xdg-desktop-portal and I can run waybar just fine. I get the No such interface “org.freedesktop.portal.Settings” info line mentioned in the test plan of the PR above, but that's it, no blocking error (on arch distro).

WhyNotHugo commented 5 months ago

waybar crashes for me without the portal:

> waybar
[2024-04-16 16:16:09.444] [info] Using configuration file /home/hugo/.config/waybar/config.jsonc
[2024-04-16 16:16:09.452] [error] Error calling StartServiceByName for org.freedesktop.portal.Desktop: Process org.freedesktop.portal.Desktop received signal 11

Perhaps the different here is that the portal crashes on startup, rather than being absent.

WhyNotHugo commented 5 months ago

Removing the portal's dbus service file lets me run waybar as a workaround.

I'd still like waybar to run if the portal fails to start. It's not the first time that the portal doesn't start, and it won't be the last. Without waybar, my desktop session is pretty nerfed and it's hard to even debug the situation.