Public bug reported:

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_SCRIPT_CURRENT_URI
to the value $HOME.

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_SCRIPT_CURRENT_URI
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.

** Affects: nautilus (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
NAUTILUS_SCRIPT_CURRENT_URI is set to $HOME when executing scripts from desktop
https://launchpad.net/bugs/49767

--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to