Get file properties via dbus command

Ahmad Ismail <[email protected]> Fri, 23 Jun 2023 06:36:57 +0600
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <CAHAhJwKuyyQmjUM5ND2EDG-3ZvfWxR7rQbKUo22m6OX4F5YyNw@mail.gmail.com>
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

It is giving error Error org.freedesktop.DBus.Error.InvalidArgs: Type of
message, “()”, does not match expected type “(ass)”. I do not have any idea
what this argument should look like or where i can get it from.

To get the items, there is another command:

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

This also gives the same error.

What can I do?