[Bug 263008] New: Suggestion on usage of DBus names

Artem Anisimov aanisimov at inbox.ru
Thu Jan 13 09:24:52 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=263008

           Summary: Suggestion on usage of DBus names
           Product: kde
           Version: 4.6
          Platform: Compiled Sources
        OS/Version: All
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: aanisimov at inbox.ru


Version:           4.6 (using KDE 4.5.95) 
OS:                All

I have filed bug #263006 where I complained that kwordquiz lost its ability to
switch keyboard layout on the fly after DBus methods of KXKB have been renamed.

Decision to rename methods of exported kdelibs API that can be used by external
programs is already a not-so-good idea. What was even worse is that kwordquiz
had these names hardcoded and I had to make the same modification to 4
unrelated source files.

Such error would have never happened if DBus interface names had been
registered in a single well-known place. I suggest that kdelibs have a
well-known header file (say, kdelibs-dbus-interfaces.h) that lists names of
every interface that KDE (or at least, its core components) exports to DBus.

Making such interfaces registry will not avoid surprises to external
applications if you ever decide to rename your methods but at least programs
that make up KDE SC will have coherent idea of how DBus is to be used.


Reproducible: Always

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list