Ya know, D-Bus is kinda effectively AppleScript for Linux, the IPC layer anyway. :3

That's one of the things I was kinda missing when moving from Mac. Except it's actually been a thing all along.

@Felthry So AppleScript is a programming language on Mac that lets you control other apps. Things like getting a list of songs from iTunes and telling it to play one, say. Apps could have a "dictionary" of commands you could call from AppleScript to control them. I don't think all that many apps support it, but it's a /really/ neat concept [though the language is atrocious!].

@Felthry D-Bus seems to be a similar thing. Programs have a D-Bus interface/API and you can use that API to do stuff. Like I can tell KDE to log out by doing "qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.closeSession". I'm not sure what some of that gobbledygook means though, I just went exploring through zsh's tab completion. >,,>

Follow

@IceWolf what's the difference between dbus and just, shell scripts?
-F

@Felthry Shell scripts are like, calling commands; this isn't calling commands but telling an already running program to do something.

@Felthry Like you could have a command to tell KDE to log out, but it would have to get that message to the KDE session manager somehow. D-Bus can do that.

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!