top | item 46279607

(no title)

blablabla123 | 2 months ago

This is the first time I hear that anyone hates D-Bus. I always saw it as a global API Bus that Apps can register to and which enables some sort of interoperability and automation. After all it can even be used from Bash. What is bad about this?

The security aspect seems also a bit funny to me. After all the average Desktop has most data in the home directory, so every application can read everything. That's not the fault of D-Bus.

Also I'm puzzled that Polkit hasn't been mentioned even once.

discuss

order

vanviegen|2 months ago

> The security aspect seems also a bit funny to me. After all the average Desktop has most data in the home directory, so every application can read everything.

The world is moving towards sandboxed applications (through flatpak and friends) more and more. As per the OP, this is one of the things holding sandboxing back.

LtWorf|2 months ago

There's sandbox escapes daily since decades. It doesn't work.

dolmen|2 months ago

Check varlink, an alternative to D-Bus defined in the SystemD world.

https://media.ccc.de/v/all-systems-go-2024-276-varlink-now-

goku12|2 months ago

Varlink was created independently of systemd. SystemD just adopted it. It just wasn't that well known before that adoption.

ahartmetz|2 months ago

Nah, fuck that one in particular. DBus was too type-unsafe? Why not use JSON then, right? Right?!

mx7zysuj4xew|2 months ago

The reason you do t hear much about it is because it's not an often discussed topic. Nonetheless the hate is there.

Dbus is a godawful mess. Imagine the windows registry, except it can only be inspected at runtime, contains executable binaries and is exceptionally fragile

craftkiller|2 months ago

> The security aspect seems also a bit funny to me. After all the average Desktop has most data in the home directory, so every application can read everything. That's not the fault of D-Bus.

Those secret stores (gnome-keyring/kwallet) store the secrets encrypted on disk, so every application can read the encrypted secrets but only the secret store has the encryption key to decrypt them. This is held in memory, not on disk.