The shell script is trying to `cd` from "/usr/X11R6/bin/" to "../lib/firefox/".
Because "/usr/X11R6/bin/" is a symbolic link to "../bin" this all should 
resolve to "/usr/lib/firefox".
However /bin/sh by default behaves differently and for this reason it is 
recommended to use `cd` and `pwd` with the "-P" switch (I found this by 
googling) when symlinks are involved:

If the -P option is in effect, the cd utility shall perform actions
equivalent to the chdir() function, called with curpath as the path
argument. If these actions succeed, the PWD environment variable shall
be set to an absolute pathname for the current working directory and
shall not contain filename components that, in the context of pathname
resolution, refer to a file of type symbolic link. If there is
insufficient permission on the new directory, or on any parent of that
directory, to determine the current working directory, the value of the
PWD environment variable is unspecified. If the actions equivalent to
chdir() fail for any reason, the cd utility shall display an appropriate
error message and not alter the PWD environment variable. Whether the
actions equivalent to chdir() succeed or fail, no further steps shall be
taken.

At any rate, the attached patch fixes the problem on my system (I just
changed the one instance that caused it).

Regards,
  Panayiotis

** Attachment added: "firefox.patch"
   http://launchpadlibrarian.net/11139271/firefox.patch

-- 
Firefox script broken if not invoked as /usr/bin/firefox
https://bugs.launchpad.net/bugs/157267
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to