Bug 51447 - Shell scripts not run in $cwd
Shell scripts not run in $cwd
Status: CLOSED WONTFIX
Product: Red Hat Public Beta
Classification: Retired
Component: nautilus (Show other bugs)
roswell
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Alexander Larsson
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-08-10 11:51 EDT by Ed McKenzie
Modified: 2007-04-18 12:35 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-08-13 12:16:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ed McKenzie 2001-08-10 11:51:42 EDT
Nautilus always runs scripts with cwd set to ~, which makes this 
feature nearly useless for any nontrivial script.
Comment 1 Alexander Larsson 2001-08-10 12:35:40 EDT
The script:
#!/bin/sh
echo args: $*
echo pwd: `pwd`

Run from a nautilus window in /tmp with two files selected outputs:
args: file1 file2
pwd: /tmp

So, I don't see this.
Comment 2 Ed McKenzie 2001-08-12 12:45:53 EDT
Clarification: I'm not talking about Nautilus scripts in ~/.nautilus/scripts,
but my own scripts I have elsewhere.  These are always run in $HOME regardless
of where the script is located.
Comment 3 Owen Taylor 2001-08-13 12:16:43 EDT
How would you distinguish this from double clicking on a binary
in /usr/bin? Would you want to run them with /usr/bin as
the cwd?
Comment 4 Alexander Larsson 2001-08-13 13:19:29 EDT
I feel that executing binaries with the homedir as cwd is probably the right
thing to do. Therefore i am marking this as WONTFIX.

If you disagree, please bring this discussion up on the nautilus mailing list.

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