Get opened file's windowIDs and Paths using d-bus command

Ahmad Ismail <[email protected]> Tue, 9 May 2023 18:48:59 +0600
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <CAHAhJwJE4yEWb_guWHVofy3-ryPs_=nJAcSt7DmME_JpnMbr_Q@mail.gmail.com>
Is there any dbus command which I can use to get the window IDs and paths
of files opened by Foliate.

Here is a d-feet screenshot.

[image: window.png]

As you can see, it identifies the windows.

I have used `dbus-monitor --session > dbus-log.txt` (the file is attached
bellow) and found out that file paths are there. Not understanding how to
extract them.

I could not find the window ids though.

I have also found that dbus-send --session --print-reply
--dest=com.github.johnfactotum.Foliate /com/github/johnfactotum/Foliate
org.freedesktop.DBus.Introspectable.Introspect works.

Is there any dbus command which I can use to get the window IDs and paths
of files opened by Foliate.

*Thanks and Best Regards,Ahmad Ismail*
window.png (image/png, 60.9 KB) - not displayed
dbus-log.txt (text/plain, 154 KB) - not displayed