Trash with files can't be opened with DBus if there is no nautilus service running
Steps to reproduce
- Empty trash
killall nautilus
dbus-send --session --print-reply --type=method_call --dest='org.freedesktop.FileManager1' /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowFolders array:string:"trash:///" string:"3"
- Nautilus is shown
- add files to the trash
killall nautilus
dbus-send --session --print-reply --type=method_call --dest='org.freedesktop.FileManager1' /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowFolders array:string:"trash:///" string:"3"
- No nautilus window is shown (only for less than a second, exactly like when the URI is invalid)
Reproducible in:
Stable version of Nautilus (tested on 3.30.5)
Current behavior
When the trash is empty, querying the "trash:///" URI using DBus works fine.
When the trash contains files AND the nautilus service (nautilus --gapplication-service) is already launched, also works fine.
But when the trash contains files but there is no nautilus service running (no "nautilus --gaplication-service" is listed in ps ax), the window is shown only for a few milliseconds and dissapears.
Expected behavior
A nautilus window should be shown with the contents of the trash.
Edited by Rastersoft