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

fix(dbus): No medium found #66

Closed
wants to merge 1 commit into from
Closed

Conversation

sofiedotcafe
Copy link

@sofiedotcafe sofiedotcafe commented May 3, 2024

@sofiedotcafe
Copy link
Author

Noticed that this is the same error I had in my own flake.
Fixed it with this ^-^

@gmodena gmodena self-requested a review May 3, 2024 21:22
@gmodena
Copy link
Owner

gmodena commented May 4, 2024

hey @jh-devv - thanks for this!

I tried to replicate #65, but I don't see any dbus errors on any of my test envs. I use Gnome, and DBUS_SESSION_BUS_ADDRESS is set:

$ echo $DBUS_SESSION_BUS_ADDRESS
unix:path=/run/user/1000/bus,guid=01b38efe8192276454507e05663647ae

On my systems, the variable is set by the systemd dbus.service unit. It is then imported by my session manager (GDM).Could you maybe check the output of:

systemctl status --user dbus.service

I can see how manually setting DBUS_SESSION_BUS_ADDRESS will fix your issue, but I am not sure if an home-manager's activation script is the right place to declare that variable.

If anything, I would suggest checking that DBUS_SESSION_BUS_ADDRESS is already set before (re)exporting it.

Maybe your session manager, or shell's profile config, could be a better place for exporting the variable?

@sofiedotcafe
Copy link
Author

Maybe your session manager, or shell's profile config, could be a better place for exporting the variable?

Maybe, though, it is set?

Maybe something weird with Hyprland?

@gmodena
Copy link
Owner

gmodena commented May 11, 2024

Maybe, though, it is set?
Maybe something weird with Hyprland?

mmm... could be? Unfortunately I am not familiar with hyperland.
If you echo DBUS_SESSION_BUS_ADDRESS on a fresh install, is the variable set at all ?

If I understand your bug report correctly, unix:path=/run/user/$UID/bus existed in your system after boot, and you did not manually have the create the session. Is this right?

@sofiedotcafe
Copy link
Author

Starting Hyprland via an systemd service seemed to fix this?

@gmodena
Copy link
Owner

gmodena commented Aug 19, 2024

Closing this MR, since it seems more appropriate to configure (global) dbus state outside of an activation script. If other folks reports similar issues, we can add documentation / pointers to the project.

@gmodena gmodena closed this Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to connect to bus: No medium found
2 participants