Results 1 to 4 of 4

Thread: KDE Shortcut -> D-Bus: Application? Object?

  1. #1
    Join Date
    Jun 2008
    Location
    Hessia
    Posts
    303

    Question KDE Shortcut -> D-Bus: Application? Object?

    What is a D-Bus Application, Object and Method? I have found the exact function I want to call in qdbusviewer, but I cannot identify the exact values for the above three to enter in the "D-Bus call settings" dialogue for KDE Shortcuts (i.e. Kontrolcenter->Advanced->Shortcuts->NewAction->Action->D-Bus Call

    Essentially, I want to create a mouse gesture to show the KDE Dashboard. Using qdbusviewer I found:

    Session Bus -> org.kde.plasma
    Methods -> App/ -> local.PlasmaApp -> toggleDashboard

    This works well in qdbusviewer, but what exactly do I need to enter in the three fields for Application, Object and Method?
    I tried "org.kde.plasma" "local.PlasmaApp" and "toggleDashboard" respectively (and some variants), but the TRY Button still does nothing.

  2. #2
    Join Date
    Jun 2008
    Location
    Hessia
    Posts
    303

    Lightbulb Re: KDE Shortcut -> D-Bus: Application? Object?

    Solved it by playing with the commandline D-Bus tools, which helped me understand how this works, but since maybe others could be confused as I was, I document the clue here:

    Remote Application = Services
    Remote Object = Menu-Header in Methods
    Called Function = Menu-Entry in Methods

    For my purpose, i.e. showing the Dashboard, the required entries for the D-Bus-Action-Form are
    Code:
    Remote Application = org.kde.plasma
    Remote Objection   = /App
    Called Function    = local.PlasmaApp.toggleDasboard
    In any case, sorry for being stupid. Please don't bash me.

    (However, it is annoying that the D-Bus call example that is provided in the menu does not work any more. It would have been helpful if the example entry that is there by default would work, albeit being disabled in the first place for being a mere example. That's the purpose of an example, to show how things work, right?)

  3. #3
    Join Date
    Jun 2008
    Location
    Hessia
    Posts
    303

    Exclamation Re: KDE Shortcut -> D-Bus: Application? Object?

    IMPORTANT: Note the slash before App and not behind! The D-Bus Viewer shows "App/" but the Remote Object requires "/App"!

  4. #4

    Default Re: KDE Shortcut -> D-Bus: Application? Object?

    thanks for this iv been tring to figure out the d-bus stuff for mosue gesture for a while becuase iv been trying to get dolphin and konqeror use mouse gesture like opera for forward, back, newtab and i wanted gestures for amarok.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •