Hi guys,
I have seen this issue Waybar not showing - #2 by trya2l, but there is no answer.
I am also stuck trying to start waybar on Sway.
There is no special log but I think there is something missing related to ipc, dbus, portals, …
I am new to nixos, so I don’t even know where to start when I have nearly no logs.
The only ones that seem relevant are these
Failed to create secure directory (/run/user/1000/pulse): Too many open files
[2024-06-16 19:54:12.305] [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
Here are the complete logs
[2024-06-16 21:31:44.587] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2024-06-16 21:31:44.587] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config.jsonc
[2024-06-16 21:31:44.587] [debug] Try expanding: $HOME/.config/waybar/config
[2024-06-16 21:31:44.587] [debug] Try expanding: $HOME/.config/waybar/config.jsonc
[2024-06-16 21:31:44.587] [debug] Try expanding: $HOME/waybar/config
[2024-06-16 21:31:44.587] [debug] Try expanding: $HOME/waybar/config.jsonc
[2024-06-16 21:31:44.587] [debug] Try expanding: /etc/xdg/waybar/config
[2024-06-16 21:31:44.587] [debug] Try expanding: /etc/xdg/waybar/config.jsonc
[2024-06-16 21:31:44.587] [debug] Try expanding: /nix/store/9cwiblii5ziyk7x9znimb1zzx7cjf08z-waybar-0.10.3/etc/xdg/waybar/config
[2024-06-16 21:31:44.587] [debug] Try expanding: /nix/store/9cwiblii5ziyk7x9znimb1zzx7cjf08z-waybar-0.10.3/etc/xdg/waybar/config.jsonc
[2024-06-16 21:31:44.587] [debug] Found config file: /nix/store/9cwiblii5ziyk7x9znimb1zzx7cjf08z-waybar-0.10.3/etc/xdg/waybar/config.jsonc
[2024-06-16 21:31:44.587] [info] Using configuration file /nix/store/9cwiblii5ziyk7x9znimb1zzx7cjf08z-waybar-0.10.3/etc/xdg/waybar/config.jsonc
[2024-06-16 21:31:44.589] [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-06-16 21:31:44.589] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2024-06-16 21:31:44.589] [debug] Try expanding: $HOME/.config/waybar/style.css
[2024-06-16 21:31:44.589] [debug] Try expanding: $HOME/waybar/style.css
[2024-06-16 21:31:44.589] [debug] Try expanding: /etc/xdg/waybar/style.css
[2024-06-16 21:31:44.589] [debug] Try expanding: /nix/store/9cwiblii5ziyk7x9znimb1zzx7cjf08z-waybar-0.10.3/etc/xdg/waybar/style.css
[2024-06-16 21:31:44.589] [debug] Found config file: /nix/store/9cwiblii5ziyk7x9znimb1zzx7cjf08z-waybar-0.10.3/etc/xdg/waybar/style.css
[2024-06-16 21:31:44.589] [info] Using CSS file /nix/store/9cwiblii5ziyk7x9znimb1zzx7cjf08z-waybar-0.10.3/etc/xdg/waybar/style.css
and some extra ones that appear sometimes
[2024-06-16 21:34:13.377] [warning] Mapping is not an object
[2024-06-16 21:34:13.459] [error] media stopped unexpectedly, is it endless?
Failed to create secure directory (/run/user/1000/pulse): Too many open files
socket(): Too many open files
shared memfd open() failed: Too many open files
Failed to create secure directory (/run/user/1000/pulse): Too many open files
socket(): Too many open files
shared memfd open() failed: Too many open files
Failed to create secure directory (/run/user/1000/pulse): Too many open files
socket(): Too many open files
Anyway, are you able to run waybar in vanilla nixos (configuration.nix), especially on sway ?