Get file properties via dbus command

Ahmad Ismail ismail783 at gmail.com
Fri Jun 23 09:14:02 UTC 2023


Suppose I have file like /home/ismail/Desktop/file.txt or, file:///
home/ismail/Desktop/file.txt

I want to see it's properties using cli.

What command shall I use?

How to get the StartupId and plug it to

$ dbus-send --session --print-reply --dest=org.freedesktop.FileManager1
/org/freedesktop/FileManager1
org.freedesktop.FileManager1.ShowItemProperties


On Fri, Jun 23, 2023 at 7:10 AM Lawrence D'Oliveiro <ldo at geek-central.gen.nz>
wrote:

> On Fri, 23 Jun 2023 06:36:57 +0600, Ahmad Ismail wrote:
>
> > I want to get file / folder properties via the dbus command.
> >
> > I am quiet positive that the command is something like:
> >
> > $ dbus-send --session --print-reply
> > --dest=org.freedesktop.FileManager1 /org/freedesktop/FileManager1
> > org.freedesktop.FileManager1.ShowItemProperties
>
> The spec is here
> <https://www.freedesktop.org/wiki/Specifications/file-manager-interface/>.
> Note that these commands do not return the info, they show it to the
> user.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20230623/9c294fe1/attachment.htm>


More information about the dbus mailing list