Capture Konqueror screen shot

David Faure faure at kde.org
Thu Dec 8 23:09:04 GMT 2005


On Thursday 08 December 2005 18:14, yinglcs at aim.com wrote:
> Hi,
> 
> Can someone please tell me how can I write a GTK application which 
> captures Konqueror screen shot?

Funny question... but here's a working answer anyhow: make your program execute the following command
 DISPLAY=:0 import -window `DISPLAY=:0 dcop konqueror-20569 konqueror-mainwindow\#1 getWinID` out.png
or
 dcop konqueror-20569 konqueror-mainwindow\#1 grabWindowToClipBoard
and some tool to get it out of the clipboard ;)

where 20569 is the PID for konqueror in my case.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list