On 2023/08/15 01:11 PM, Ran Talbott via tde-devels
wrote:
One of my hobbies is online debating on a variety
of subjects. I have
separate directories for many topics with downloaded data, notes, etc. I
also usually have multiple programming projects active, most with their
own directories.
I prefer to keep tabs open for active topics and projects, rather than
constantly closing them and re-navigating as I change focus.
For Firefox, I have a Python program that can list all open windows and
tabs, or find the window that has a particular tab. I'd like to do the
same thing for Konqueror.
Is there a system callĀ (preferably with a Python API, but I have
experience in lots of languages) that will give me a list of Konqueror
windows and tabs?
Also, is there an API for a list of Konsole windows? I'd like to do a
command that would grep the window list and pop up the relevant window.
Thanks,
Ran
Hi Ran,
DCOP protocol is probably what you are after. You can either use dcop
client from CLI or kdcop as a GUI app. Cheers
Michele
I use kdcop to navigate the tree of possible DCOP calls, then encode them in
a script that can be called from the command line or from a menu item.
Leslie
--
Platform: Linux
Distribution: openSUSE Leap 15.4 (x86_64)