Bug 1945933 - scripts started out of nautilus misses $PWD
Summary: scripts started out of nautilus misses $PWD
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nautilus
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-02 18:15 UTC by Ronald Warsow
Modified: 2021-05-08 01:34 UTC (History)
9 users (show)

Fixed In Version: nautilus-40.1-2.fc34
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-08 01:34:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ronald Warsow 2021-04-02 18:15:28 UTC
Description of problem:
shell scripts started via "Run as Program" under nautilus misses the correct $PWD.

$PWD is always /home/<user>

this has some dangerous side effects, if the scripts runs commands which are only intented to run in the dir where the scripts was started.  

e.g. rm -rf ./<something>


Version-Release number of selected component (if applicable):
nautilus-40.0-1.fc34.x86_64

How reproducible:
build a script with echo $(pwd) or echo $PWD in it.
the output is always /home/<user>

Expected results:

an upgrade from F33 to F34 shouldn't break user scripts

Comment 1 Ronald Warsow 2021-04-30 22:54:22 UTC
cause nobody cared:
https://gitlab.gnome.org/GNOME/nautilus/-/issues/1842

Comment 2 Ronald Warsow 2021-05-06 22:15:07 UTC
houston, the bug is fixed with nautilus-40.1-2.fc34 (kudos to kalev and António Fernandes)

please close this one

Comment 3 Fedora Update System 2021-05-06 22:49:22 UTC
FEDORA-2021-385c0e758d has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-385c0e758d

Comment 4 Fedora Update System 2021-05-07 02:07:41 UTC
FEDORA-2021-385c0e758d has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-385c0e758d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-385c0e758d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-05-08 01:34:16 UTC
FEDORA-2021-385c0e758d has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.