[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: r19023
This commit is contained in:
John Ralls 2012-03-06 19:10:24 +00:00
parent 39f157a104
commit c1ff037027

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(':')