diff --git a/fdroidserver/common.py b/fdroidserver/common.py index d8defcb8..229c6e4d 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -135,7 +135,7 @@ def fill_config_defaults(thisconfig): pathlist += glob.glob('/System/Library/Java/JavaVirtualMachines/1.[6-9].0.jdk') pathlist += glob.glob('/Library/Java/JavaVirtualMachines/*jdk*[6-9]*') if os.getenv('JAVA_HOME') is not None: - pathlist += os.getenv('JAVA_HOME') + pathlist.append(os.getenv('JAVA_HOME')) if os.getenv('PROGRAMFILES') is not None: pathlist += glob.glob(os.path.join(os.getenv('PROGRAMFILES'), 'Java', 'jdk1.[6-9].*')) for d in sorted(pathlist):