saving contents of applications with a frozen kde desktop

Kevin Krammer kevin.krammer at
Thu Feb 23 10:21:36 GMT 2006

On Wednesday 22 February 2006 17:38, Robert Morrison wrote:
> Hi Sebastian:
> Thanks for following up.
> On Wednesday 22 February 2006 04:14, Sebastian Reitenbach wrote:
> > Hi again,
> >
> > The dcop interface looked interesting first, but this only works for kde
> > applications aware of dcop. As the dcop interface is easy to use I was
> > able to
> > send messages to e.g. kate and to tell it to close a given document. I
> > have not found a save method that I can send to kate.
> That surprises me, but I think you are right. I just spent
> some time investigating and found 'kdcop', which gives us a
> way to browse the dcop functions available. I tried a test
> with Kate, and I don't see 'saveDocument()'.

If the functionality one is looking for is available in the user interface as 
an action (menu entry, toolbar button) it can often be activated via DCOP 
through the DCOP interface named "qt"

For example do this

dcop kate qt objects | grep save

It returns a list of Qt objects, for example

You can then check this object's interface like this
dcop kate qt/KXMLGUIClient-KActionCollection/file_save_all

You'll find a function called "activate" which will execute the same code as 
clicking on the action would have.

Another idea for the topic would be to check what the applications in question 
do on session save, i.e. saving initiated by the session manager.

If this is sufficient, session saving can also be triggered by DCOP if 
ksmserver is used as the session manager.


Kevin Krammer <kevin.krammer at>
Qt/KDE Developer, Debian User
Moderator: (German),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>
-------------- next part --------------
This message is from the kde mailing list.
Account management:
More info:

More information about the kde mailing list