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:
And i know it should take "Application name", and "Reason" but how do i give them to it?
I have tried to write:
but
returnes false.
Can anybody tell me how to call the methods of this? Also a nice dbus tutorial would be nice.
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
I have tried to write:
Code:
qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.Inhibit 'firefox', 'Test'
Code:
qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.HasInhibit
Can anybody tell me how to call the methods of this? Also a nice dbus tutorial would be nice.