This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Documentation for the dbus methods for plasma

Tags: None
(comma "," separated)
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
19765
Karma
87
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.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
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
19765
Karma
87
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.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar