View previous topic :: View next topic |
Author |
Message |
steveo314 n00b
Joined: 08 Sep 2006 Posts: 56
|
Posted: Thu Oct 17, 2024 10:12 pm Post subject: waybar error |
|
|
Trying to configure waybar on hyprland. When i try to run waybar from kitty, I get the error that waybar cannot find dbus. |
|
Back to top |
|
|
flexibeast Guru
Joined: 04 Apr 2022 Posts: 473 Location: Naarm/Melbourne, Australia
|
Posted: Fri Oct 18, 2024 12:15 am Post subject: |
|
|
Is there a D-Bus session bus running? (Note this is not the same as the D-Bus system bus provided by the 'dbus' service.) Check if the DBUS_SESSION_BUS_ADDRESS variable is set, e.g. by running:
If it's not, then you need to start a session bus when you start your Hyprland session, e.g. by starting Hyprland like this:
Code: | $ dbus-run-session hyprland |
_________________ https://wiki.gentoo.org/wiki/User:Flexibeast |
|
Back to top |
|
|
steveo314 n00b
Joined: 08 Sep 2006 Posts: 56
|
Posted: Fri Oct 18, 2024 4:42 am Post subject: |
|
|
flexibeast wrote: | Is there a D-Bus session bus running? (Note this is not the same as the D-Bus system bus provided by the 'dbus' service.) Check if the DBUS_SESSION_BUS_ADDRESS variable is set, e.g. by running:
If it's not, then you need to start a session bus when you start your Hyprland session, e.g. by starting Hyprland like this:
Code: | $ dbus-run-session hyprland |
|
I don't think Hyprland likes to be started from lightdm |
|
Back to top |
|
|
flexibeast Guru
Joined: 04 Apr 2022 Posts: 473 Location: Naarm/Melbourne, Australia
|
Posted: Fri Oct 18, 2024 6:37 am Post subject: |
|
|
You haven't answered my question about confirming whether or not there is a D-Bus session bus active. If there's not, you need to work out how to ensure LightDM starts a session bus before it starts Hyprland. (i'm not at all familiar with LightDM, and the Gentoo wiki page for LightDM only talks about the `dbus` service, which as i wrote in my previous message, starts a system bus, not the session bus that's required.) _________________ https://wiki.gentoo.org/wiki/User:Flexibeast |
|
Back to top |
|
|
steveo314 n00b
Joined: 08 Sep 2006 Posts: 56
|
Posted: Fri Oct 18, 2024 12:20 pm Post subject: |
|
|
Running gives the DBUS ID
When I actually run Code: | dbus-run-session Hyprland | from tty1, Hyprland and waybar
start how they should. I have lightdm starting on tty7 which is how I go into KDE plasma. |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1477 Location: Earth
|
Posted: Fri Oct 18, 2024 8:53 pm Post subject: |
|
|
you can also edit /usr/share/wayland-sessions/hyprland.desktop and add dbus-run-session to Exec=dbus-run-session Hyprland or use the following patch,
file is located in /etc/portage/patches/gui-wm/hyprland/what-ever-name-you-choose.patch
Code: | diff --git a/example/hyprland.desktop b/example/hyprland.desktop
index 57ad076f..2a8a77db 100644
--- a/example/hyprland.desktop
+++ b/example/hyprland.desktop
@@ -1,5 +1,5 @@
[Desktop Entry]
Name=Hyprland
Comment=An intelligent dynamic tiling Wayland compositor
-Exec=Hyprland
+Exec=dbus-run-session Hyprland
Type=Application
\ No newline at end of file |
for newer versions of Hyprland
Code: | diff --git a/example/hyprland.desktop b/example/hyprland.desktop
index bb2801a..9a7f2f4 100644
--- a/example/hyprland.desktop
+++ b/example/hyprland.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=Hyprland
Comment=An intelligent dynamic tiling Wayland compositor
-Exec=Hyprland
+Exec=dbus-run-session Hyprland
Type=Application
DesktopNames=Hyprland
Keywords=tiling;wayland;compositor;
lines 1-13/13 (END) |
_________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
|