GetManagedObjects returns nothing when it is activated by D-Bus
Created originally on Bitbucket by lantw44 (藍挺瑋)
To reproduce the bug, terminate bsdisks and call GetManagedObjects
:
# killall bsdisks
# gdbus call --system -d org.freedesktop.UDisks2 -o /org/freedesktop/UDisks2 -m org.freedesktop.DBus.ObjectManager.GetManagedObjects
(@a{oa{sa{sv}}} {},)
It only happens when bsdisks isn’t started. After bsdisks is started, calling GetManagedObjects
returns expected data. This results in udisksctl dump
showing empty result and gnome-control-center showing disk size as unknown if the user doesn’t manually start bsdisks before using these programs.