libdialogs rewrite
Friday, May 6th, 2005Here’s an idea for a rewrite of libdialogs). Basically, instead of relying on 2 shared library (gtkqt to enter Qt event loop, and libdialogs for C bindings for KDE dialogs), all dialog work is done through D-BUS to a dialogs dæmon that would handle displaying dialogs and returning file names.
This would mean that we woun’t have to mess with the GTK apps in the Qt event loop (I think), and we certainly wouldn’t need any C bindings for KDE dialogs. Also, we could detect on the fly what DE is currently in use, and show whatever dialogs would make sense. For example, if the user is running GEdit under KDE, then KDE dialogs are show. However, if the same user was running Gnome, then Gnome/GTK+ dialogs would be shown. All this without recompiling the binary!
The problem? This would certainly slow down displaying dialogs (how much, I can’t say). The big problem is that I haven’t been able to get DBUS to work on Slack :(.