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

"Thomas Kluyver" <[email protected]> Tue, 09 May 2023 14:47:57 +0100
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
Hi Ahmad,

That's really a question for Foliate developers, but I would guess the answer will be no. GUI applications don't usually expose a lot of information to D-Bus.

Best wishes,
Thomas

On Tue, 9 May 2023, at 13:48, Ahmad Ismail wrote:
> 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.
> 
> 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
> 
> 
> *Attachments:*
>  • dbus-log.txt