You have been subscribed to a public bug:

When I run a script from the desktop, it thinks it's running in
/home/user rather than /home/user/Desktop

For example the following:

#!/bin/bash
zenity --info --text=$PWD
exit

in a file /home/musther/Desktop/test

executed graphically (double click) on the desktop and hit run or 'run
in terminal', gives the output '/home/musther' rather than
'/home/musther/Desktop'

If run from the command line, the correct output is given, ie the
directory from which it is run.

ProblemType: Bug
Architecture: i386
Date: Thu Apr  5 14:38:59 2007
DistroRelease: Ubuntu 7.04
Uname: Linux dominus 2.6.20-13-generic #2 SMP Sun Mar 25 00:21:25 UTC 2007 i686 
GNU/Linux

** Affects: nautilus (Ubuntu)
     Importance: Undecided
         Status: Confirmed

-- 
scripts running from desktop : $PWD = /home/user
https://bugs.launchpad.net/bugs/103144

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

Reply via email to