NAUTILUS_SCRIPT_CURRENT_URI is set to $HOME when executing scripts from desktop
Bug #49767 reported by
Nicolas Maquet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nautilus (Ubuntu) |
Invalid
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
Binary package hint: nautilus
When I execute a nautilus script via the context menu by right-clicking on the desktop, nautilus sets the variable NAUTILUS_
Shouldn't it be $HOME/Desktop instead ?
This would be more sensible IMHO.
For instance, I have a script 'Open Terminal Here' which reads :
#!/bin/bash
cd $NAUTILUS_
exec gnome-terminal
Then, when I right-click on the desktop and select 'Open Terminal Here', I get a terminal with a current directory set to the home folder instead of the ~/Desktop folder.
To post a comment you must log in.
Thanks for your bug. What version of Ubuntu do you use? That works fine for me. I just tried with that code: SCRIPT_ CURRENT_ URI" --info --text "$NAUTILUS_ SCRIPT_ CURRENT_ URI""
"#!/bin/bash
zenity --title "NAUTILUS_
the URI displayed has the Desktop directory mentionned. Do you use the option to have your user directory as desktop? Note that the nautilus- open-terminal package would probably be appropriate to do that