[Bug #5610] Can't launch external viewer due to PATH set by Gramps

startup script


Hard-code the path to /usr/bin/open in gui/utils.py. Since this is an 
Apple-only utility and Apple-proprietary, there's no legitimate reason 
to use a different one.


svn: r19022
This commit is contained in:
John Ralls 2012-03-06 19:08:29 +00:00
parent 3475e213f0
commit a89bc54a25

View File

@ -342,7 +342,7 @@ def open_file_with_default_application( file_path ):
ErrorDialog(_("Error Opening File"), str(msg))
else:
if constfunc.mac():
utility = 'open'
utility = '/usr/bin/open'
else:
utility = 'xdg-open'
search = os.environ['PATH'].split(':')