nautilus lost $PWD since Gnome 40
Affected version
nautilus-40.0-1.fc34.x86_64
Steps to reproduce
- create in an subfolder of /home/<user> e.g /home/<user>/Downloads a shell script with echo ${PWD} in it
- run the script via nautilus "Run as a Program"
Current behavior
the output is always only /home/<user> and not e.g /home/<user>/Downloads.
this will break all user scripts which operates in subdirectories, e.g.:
echo "something" >> ./something.txt
or
rm -rf ./<something>
in the worse case the user unwanted deletes something in her/his $HOME !!!
Expected behavior
nautilus should further respect $PWD as it was in Gnome < 40.0
Additional information
a month ago I opened this report: https://bugzilla.redhat.com/show_bug.cgi?id=1945933