[Bug 49767] Re: NAUTILUS_SCRIPT_CURRENT_URI is set to $HOME when executing scripts from desktop
RichardQuirk
quirky at zoom.co.uk
Thu Jun 15 21:44:08 UTC 2006
Your script has a bug - a URI is not the same as a directory.
cd file:///home/user/Desktop
is not the same as:
cd /home/user/Desktop
"cd" is an old skool program that knows not of URIs. Use some sed in there and it'll work:
#!/bin/bash
gnome-terminal --working-directory=$(echo $NAUTILUS_SCRIPT_CURRENT_URI | sed 's!file://!!g')
--
NAUTILUS_SCRIPT_CURRENT_URI is set to $HOME when executing scripts from desktop
https://launchpad.net/bugs/49767
More information about the desktop-bugs
mailing list