Reply to topic

Documentation for the dbus methods for plasma

kdeforumsuser2010
Registered Member
Posts
59
Karma
0
OS
Where is the documentation for the dbus methods for plasma?

I'm using qdbusviewer to view services, paths, and methods
(http://techbase.kde.org/Development/Tut ... dbusviewer)
and, I'm using qdbus in bash.

Thank you.
User avatar bcooksley
Administrator
Posts
18657
Karma
83
OS
Unfortunately I do not believe such documentation exists, it is preferrable to make any needed changes to Plasma using its Javascript API I believe.


System Settings and Device Actions KCM maintainer
Image
kdeforumsuser2010
Registered Member
Posts
59
Karma
0
OS
I think that is more for writing plasmoids.

I want to be able to create short, mostly reusable, bash script(s) for administrative/system/user tasks. A few may be plasmoid worthy, but
probably not.

Just clicking around qdbusviewer I've seen examples like those shown below. I also found while searching on this forum, a user written bash script to query the dbus services for kde methods.

Examples:
qdbus org.kde.krunner /ScreenSaver Lock
qdbus org.kde.kwin /KWin toggleCompositing
qdbus org.kde.plasma-desktop /App toggleDashboard

An example script, might be, but not limited to, changing a setting on a panel prior to maximizing an application. Sorry for not being more specific, but without knowing the dbus methods for plasma I'm not sure of the possibilities.

Thank you.
User avatar bcooksley
Administrator
Posts
18657
Karma
83
OS
The Plasma JavaScript interface can be used for a variety of other tasks also ( used by Kubuntu to manage the default appearance for instance ).

Any particular task you wish to achieve? Using qdbusviewer on the components of the workspace ( krunner, kwin and plasma ) will list all the various methods available.


System Settings and Device Actions KCM maintainer
Image

 
Reply to topic

Bookmarks



Who is online

Registered users: Alexa [Bot], Baidu [Spider], Bing [Bot], bshah, Exabot [Bot], Google [Bot], grubaugh, Hans, Naver Yeti [Spider], onesandzeros, orbmiser, pedrorodriguez, pvonz, qwach, searchfgold6789, Uri_Herrera, Yahoo [Bot]