PDA

View Full Version : Help on Linux


CrouZ
02-Sep-2011, 10:26 AM
I get the following errors when trying to open "Help/Contents" and "Help/Context Sensitive Help" respectively:

gvfs-open: file:///home/user/bcompare-3.3.1.13971/lib/beyondcompare/help/welcome.html: error launching application: Failed to execute child process "/usr/bin/firefox" (No such file or directory)

gvfs-open: file:///home/user/bcompare-3.3.1.13971/lib/beyondcompare/help/folder_compare.html: error launching application: Failed to execute child process "/usr/bin/firefox" (No such file or directory)

Note: "Help/Scooter Software on the Web" and some other html links that I have come across open properly in firefox.

Note: Firefox seems to be located in /usr/local/bin/firefox here.

Used Software:
Beyond Compare 3.3.1 (build 13971)
Fedora 14 (i686?)

David
07-Sep-2011, 10:22 AM
Just to be sure... Check that "/home/user/bcompare-3.3.1.13971/lib/beyondcompare/help/welcome.html" exists. If not then it is a file association problem.

One of our challenges is finding file associations on all the different linux distros. In this case we are looking for the appropriate app to open *.html and all our standard procedures failed. The steps we take are:
1) which(kfmclient)
2) which(gnome-open)
3) which(exo-open)
4) GetEnvironmentVariable('BROWSER')
5) which(sensible-browser)
6) which(x-www-browser)
7) CMD=firefox

The first 3 are the apps used by various distros to return file associations. If we can't find those then we looks for a user supplied environment variable "BROWSER". Then we start looking for obscure stuff. And if that doesn't work we hope firefox is installed.

For Fedora 14 I would have expected gnome-open to have been found (my Fedore 14 VM machine finds gnome-open). Do you get something returned if you do a which(gnome-open) from a terminal prompt?

And we don't give a path for 'firefox' but rely on the PATH environment to be set. I wonder if PATH is not getting passed to BCompare with paths to gnome-open or firefox included?

Another fix would be to set the BROWSER environment variable i.e.
export BROWSER=/usr/local/bin/firefox

You can do this in the /usr/bin/bcompare script (other environment variables are set there as well).

David