Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waybar doesn't autostarts consistently on Hyprland #3742

Open
aguyfromuranus opened this issue Nov 3, 2024 · 5 comments
Open

Waybar doesn't autostarts consistently on Hyprland #3742

aguyfromuranus opened this issue Nov 3, 2024 · 5 comments

Comments

@aguyfromuranus
Copy link

Waybar 0.11.0, Hyprland 0.44.1, OS Artix Linux with OpenRC

When autostarting Waybar with Hyprland's "exec-once" command, one of the three things can randomly happen:

1. The bar won't appear at all

[2024-11-03 12:55:39.000] [info] Using configuration file /home/uranus/.config/waybar/config.jsonc
[2024-11-03 12:55:39.153] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-11-03 12:55:39.153] [info] Using CSS file /home/uranus/.config/waybar/style.css
[2024-11-03 12:55:39.158] [info] Hyprland IPC starting

2. The bar will appear, but without the hyprland modules

[2024-11-03 12:56:28.435] [info] Using configuration file /home/uranus/.config/waybar/config.jsonc
[2024-11-03 12:56:28.585] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-11-03 12:56:28.585] [info] Using CSS file /home/uranus/.config/waybar/style.css
[2024-11-03 12:56:28.591] [info] Hyprland IPC starting
[2024-11-03 12:56:28.591] [error] Hyprland IPC: Unable to connect?
[2024-11-03 12:56:28.592] [warning] module hyprland/workspaces: Disabling module "hyprland/workspaces", Hyprland IPC: Couldn't connect to /run/user/1000/hypr/4520b30d498daca8079365bdb909a8dea38e8d55_1730634985_1865359752/4520b30d498daca8079365bdb909a8dea38e8d55_1730634985_1865359752/.socket.sock. (3)
[2024-11-03 12:56:28.602] [warning] module hyprland/language: Disabling module "hyprland/language", Hyprland IPC: Couldn't connect to /run/user/1000/hypr/4520b30d498daca8079365bdb909a8dea38e8d55_1730634985_1865359752/4520b30d498daca8079365bdb909a8dea38e8d55_1730634985_1865359752/.socket.sock. (3)
[2024-11-03 12:56:28.732] [info] Bar configured (width: 2560, height: 50) for output: DP-3

3. The bar will appear with all the modules and work as normal

[2024-11-03 12:59:30.111] [info] Using configuration file /home/uranus/.config/waybar/config.jsonc
[2024-11-03 12:59:30.270] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-11-03 12:59:30.270] [info] Using CSS file /home/uranus/.config/waybar/style.css
[2024-11-03 12:59:30.275] [info] Hyprland IPC starting
[2024-11-03 12:59:30.276] [info] Loading persistent workspaces from Hyprland workspace rules
[2024-11-03 12:59:30.453] [info] Bar configured (width: 2560, height: 50) for output: DP-3

Starting Waybar after Hyprland boots works as intended. Here are the modules I use:

    "modules-left": [
        "hyprland/workspaces"
    ],
    "modules-center": [
        "clock"
    ],
    "modules-right": [
        "pulseaudio",
        "custom/net",
        "custom/mounts",
        "cpu",
        "memory",
        "hyprland/language"
    ]
@linux36524
Copy link

Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface

Maybe the error is here. You can try to use the default configuration to see if it can be started.

@aguyfromuranus
Copy link
Author

The hyprland modules seem to be the culprit, as commenting them out and not touching anything else solves the problem. I'll make an issue at hyprland and see what they'll say

@AlphaNecron
Copy link

Hm so you can try making a script to poll for Hyprland availability? This may be useful

@icy-comet
Copy link

icy-comet commented Jan 6, 2025

i just booted to find Waybar missing. i start waybar with exec-once, even though i use uwsm to launch Hyprland (just haven't gotten around it yet).

waybar coredumped with the following preceding lines:

arch kernel: traps: waybar[1343] general protection fault ip:7f0a689ab2a0 sp:7f0a6131f3d0 error:0 in libstdc++.so.6.0.33[7f0a68897000+14d000]

arch systemd-coredump[1345]: Process 1190 (waybar) of user 1001 terminated abnormally with signal 11/SEGV, processing...

the last waybar-related line stated [info] Hyprland IPC starting just like stated in the "no bar" case in #3742 (comment)

i am not sure if this info is relevant. however, i can also attach the coredump file if necessary.

is #3822 or #3826 relevant?

PS: hyprwm/Hyprland#8394 (comment) seems to suggest just launching it as a user service should fix the issue

@icy-comet
Copy link

PS: hyprwm/Hyprland#8394 (comment) seems to suggest just launching it as a user service should fix the issue

just a note: i switched to starting waybar as user service for last 4 days, and i still find the hyprland/workspaces module missing at times on startup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants