diff --git a/iso_configs/pmostools/peptools/__pycache__/welfunc.cpython-311.pyc b/iso_configs/pmostools/peptools/__pycache__/welfunc.cpython-311.pyc index 80d2d3ad..dc5e09bc 100644 Binary files a/iso_configs/pmostools/peptools/__pycache__/welfunc.cpython-311.pyc and b/iso_configs/pmostools/peptools/__pycache__/welfunc.cpython-311.pyc differ diff --git a/iso_configs/pmostools/peptools/welfunc.py b/iso_configs/pmostools/peptools/welfunc.py index 229b224d..b6322b39 100644 --- a/iso_configs/pmostools/peptools/welfunc.py +++ b/iso_configs/pmostools/peptools/welfunc.py @@ -7,7 +7,7 @@ * Screen """ import os.path - +import shutil # This will get the logged in user gusr = os.getlogin() spath = "/home/" + gusr + "/.local/share/pmostools/peptools" @@ -29,10 +29,15 @@ def determine_browser(run_addrs): profile_path = os.path.expanduser( f"/home/{gusr}/.local/share/pmostools/ff_profile/" ) - command = ( - f'firefox -P firefox_kumo --profile "{profile_path}" {run_addrs} &' - ) - print("Found the FF, running Firefox") + + if shutil.which('firefox'): + command = ( + f'firefox -P firefox_kumo --profile "{profile_path}" {run_addrs} &' + ) + print("Found the FF, running Firefox") + else: + print("Firefox not found, running with luakit instead") + command = f'luakit -U {run_addrs} &' else: command = f'luakit -U {run_addrs} &' print("This is a 32bit Flagship with no browser")