Results 1 to 3 of 3

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

  1. #1
    STurtle NNTP User

    Default 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.


    --
    STurtle
    ------------------------------------------------------------------------
    STurtle's Profile: http://forums.opensuse.org/member.php?userid=1602
    View this thread: http://forums.opensuse.org/showthread.php?t=407618


  2. #2
    STurtle NNTP User

    Default 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.


    --
    STurtle
    ------------------------------------------------------------------------
    STurtle's Profile: http://forums.opensuse.org/member.php?userid=1602
    View this thread: http://forums.opensuse.org/showthread.php?t=407618


  3. #3
    STurtle NNTP User

    Default 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"!


    --
    STurtle
    ------------------------------------------------------------------------
    STurtle's Profile: http://forums.opensuse.org/member.php?userid=1602
    View this thread: http://forums.opensuse.org/showthread.php?t=407618


Posting Permissions

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