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

Thomas Kluyver thomas at kluyver.me.uk
Tue May 9 13:47:57 UTC 2023


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20230509/161e158f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: window.png
Type: image/png
Size: 62373 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20230509/161e158f/attachment-0001.png>


More information about the dbus mailing list