I open Nautilus by command line in new window. I want to execute another command after nautilus is closed. Like this :
bash -c 'sshfs -o idmap=user email@example.com:/ /media/192.168.1.200 | nautilus /media/192.168.1.200;fusermount -u /media/192.168.1.200'
In this case, I want to execute
fusermount -u /media/192.168.1.200 only after Nautilus is closed.
Is possible ?
Addendum: I often multiple Nautilus windows open. So I want to close this window ONLY.