Artix Linux Forum

General Category => Off-Topic => Topic started by: awky on 21 December 2024, 12:56:28

Title: Whats the trouble with dbus?
Post by: awky on 21 December 2024, 12:56:28
hi,
I have read on reddit and other forums that dbus is bloat and bad.
Even the documentation says DO NOT USE THIS C API!

It seems like dbus-broker is a better alternative to the original dbus daemon.
But the dbus-broker developers only target systemd.
And if someone ask for openrc support, they simply say: all linux systems should have systemd nowadays.

https://github.com/bus1/dbus-broker/issues/340

Systemd is slowly creeping into other software.
Is it possible to live without dbus?
Title: Re: Whats the trouble with dbus?
Post by: Artist on 21 December 2024, 13:34:56
Not too long ago I tried to create a desktop without dbus but came to the conclusion this is only possible if you are willing to live with legacy programs in key areas.

Hyperbola is a distro without dbus, but eg. this is their list of browser packages:
https://www.hyperbola.info/packages/?sort=&q=browser

So if you need firefox or chromium you are out of luck, also in other areas.
Iirc also GTK currently has a hard dependency on dbus.

artist
Title: Re: Whats the trouble with dbus?
Post by: Hitman on 22 December 2024, 16:47:14
Dbus can however be slightly handicapped to work in just the user's session, effectively taking out the nosy system interface. You disable the system service (dinit has a problem with that currently so it's easier with other inits), then put some user service runtime like turnstile (or via a script?) to launch dbus alongside the session, yes i know it's not dbus-broker there either but as long as it works i don't care, it's solvable in the future. The only things lost are NetworkManager and co., (un/)mounting filesystems via gvfs, some pacman hook not working, and loading is finnicky in some DE's (yet to investigate that).
LE: dbus-broker itself is just a way to have it's "services" gvfs rtkit etc be managed by systemd as separate services, the problem is that like everything sysd related the process is complicated but not impossible to replicate.
Title: Re: Whats the trouble with dbus?
Post by: cat herders of linux on 22 December 2024, 19:40:40
When dbus doesn’t run on time I take the ebus. 🦾👼🏿👣
Title: Re: Whats the trouble with dbus?
Post by: phoenix_king_rus on 22 December 2024, 20:36:47
When dbus doesn’t run on time I take the ebus. 🦾👼🏿👣
If only you could imagine how hilarious it sounds in Russian
Title: Re: Whats the trouble with dbus?
Post by: cat herders of linux on 22 December 2024, 20:49:50
When dbus doesn’t run on time I take the ebus. 🦾👼🏿👣
If only you could imagine how hilarious it sounds in Russian
Когда dbus не работает вовремя, я сажусь на ebus.


???

google translate is a mess.
Title: Re: Whats the trouble with dbus?
Post by: matrixphil on 25 January 2025, 15:56:27
Living without dbus is possible, but it depends on your use case. It’s challenging for systems relying heavily on inter-process communication. Tools like s6 or runit can minimize systemd/dbus dependence, but they might require significant tweaks.