Closed smac89 closed 4 years ago
I am following the guide here, and this is what I have placed in my /usr/share/dbus-1/session-local.conf:
/usr/share/dbus-1/session-local.conf
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> <busconfig> <policy context="default"> <!-- Block all usage of org.freedesktop.FileManager1 for opening files --> <deny send_interface="org.freedesktop.FileManager1" send_destination="org.freedesktop.FileManager1"/> </policy> </busconfig>
Yet, even after restarting, when I run:
➜ dbus-monitor --session interface=org.freedesktop.FileManager1
I can see that the calls are still succeeding:
signal time=1587288407.640479 sender=org.freedesktop.DBus -> destination=:1.599 serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.599" signal time=1587288407.640497 sender=org.freedesktop.DBus -> destination=:1.599 serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost string ":1.599" method call time=1587288409.905988 sender=:1.593 -> destination=org.freedesktop.FileManager1 serial=4 path=/org/freedesktop/FileManager1; interface=org.freedesktop.FileManager1; member=ShowItems array [ string "file:///home/chigozirim/Downloads/image.png" ] string ""
Here is how I trigger the call:
dbus-send --session --dest=org.freedesktop.FileManager1 --type=method_call /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowItems array:string:"file:///home/chigozirim/Downloads/image.png" string:""
What am I doing wrong? Thanks for your time
The problem was in front of me the entire time: The file was in the wrong place. It should be in /etc/dbus-1/
/etc/dbus-1/
I am following the guide here, and this is what I have placed in my
/usr/share/dbus-1/session-local.conf
:Yet, even after restarting, when I run:
I can see that the calls are still succeeding:
Here is how I trigger the call:
What am I doing wrong? Thanks for your time