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
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
On 2023-08-15 08:21:13 Michele Calgaro via tde-devels wrote:
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
kdcop is good for examining, but I also found the dcop command very useful for making "maps" of where to look. The lists of objects and methods can be easier to read in your favorite editor, and the text files can make it easier to figure out what app has what DCOP capabilities. E.G., only some have an object that lets you get the window caption, even though they all lie and _claim_ that they do: if you call the "caption()" method of the "qt" object, you always get an empty string terminated with a newline.
Most apps have a separate process for every window. Alas for me, konqueror isn't one of them: it has multiple objects that expose _some_ of its windows, but nowhere near all, or even most. And there's nothing about the tab titles.I need to find out how kicker knows what windows are out there, and how it pops them up when selected. I'm guessing that the windows get registered somewhere that kicker can query. I know the registration isn't with kicker, because I've had it crash a few times over the years, and it always gets its lists back when I start a replacement.
I do have my "find and pop up" command working now. It list captions for any type of app that exposes them through DCOP, with options to do a grep-ish filter on them and to pop up the one(s) that match. It's not very well commented, so it's not a great example, but if anyone wants a copy, let me know.
Ran
On Thu, Aug 17, 2023 at 11:21 PM J Leslie Turriff via tde-devels < devels@trinitydesktop.org> wrote:
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) ____________________________________________________ tde-devels mailing list -- devels@trinitydesktop.org To unsubscribe send an email to devels-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/devels@trinitydeskt...