![]() Registered Member ![]()
|
In KDE3 it was possible to access the desktop (i.e. minimize all windows) with a dcop call. What's the equivalent in KDE4 to access the desktop (from a script or servicemenu or so)? I took a look at qdbusviewer but I couldn't figure it out.
|
![]() Moderator ![]()
|
Type
You'll get a list of strings like:
Take one of these and add it to the command:
Execute it and you'll get a list of other strings:
Add (for example) local.PlasmaApp.toggleDashboard
Execute it and the dashboard will the toggled. I hope it is useful. Jan ![]() |
![]() Registered Member ![]()
|
Thanks for your detailed answer, now I know at least a little how to deal with the structure of qdbus. Is it always the /App part? I tried searching for something that has to do with showing the desktop or minimizing windows but either there is nothing which I cannot imagine or the problem sits between chair and keyboard...
![]() BTW: Do you know how to deal with such things in brackets?
Edit: I found a command to switch to the next desktop:
That could do the job if I knew that the next desktop is empty... But the real show/toogle desktop would be better. Do I look in the wrong direction? I'd expect it to be something with "toggle". |
![]() Moderator ![]()
|
The things in brackets are arguments and you use them like this (I'll take another method)
The description looks like this
int means integer and is a number like 1 40 5. desktop is the name of the variable (in this case it means the desktop to go to). If there's something like you wrote
The arguments are separated with whitspaces (" "):
![]() |
![]() Registered Member ![]()
|
I see, thanks. Is there a way to search for specific elements in qdbus?
|
![]() Moderator ![]()
|
I wrote a script (I didn't know any other way).
Use: pathToScript searchterm pathToScript --kde searchterm If you add --kde it only searches in paths which start with org.kde (all of the KDE applications, I think). Here's the code:
Save it and set the x-bit (execute-bit) by chmod +x pathToScript ![]() |
![]() Registered Member ![]()
|
That's great - thanks!
![]() |
![]() Moderator ![]()
|
No problem
![]() It is fun to do tasks like this and I like helping ![]() ![]() |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]