Announcement

Collapse
No announcement yet.

qdbus and PowerManagement

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    qdbus and PowerManagement

    Hey All

    I'm trying to develop a plasmoid that can disable power saving, so when i watch flash it wont turn off the screen. For doing that I think i can use the org.freedesktop.PowerManagement.Inhibit function, but i'm at a lost on how.

    I'm trying to call it with:
    Code:
    qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.Inhibit
    And i know it should take "Application name", and "Reason" but how do i give them to it?

    I have tried to write:
    Code:
    qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.Inhibit 'firefox', 'Test'
    but
    Code:
    qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.HasInhibit
    returnes false.

    Can anybody tell me how to call the methods of this? Also a nice dbus tutorial would be nice.

Working...
X