Updated: Found a minor bug in welcome.

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2024-07-01 13:30:52 +09:00
parent b3fb2503ba
commit acd34d9a68
2 changed files with 10 additions and 5 deletions

View File

@ -7,7 +7,7 @@
* Screen * Screen
""" """
import os.path import os.path
import shutil
# This will get the logged in user # This will get the logged in user
gusr = os.getlogin() gusr = os.getlogin()
spath = "/home/" + gusr + "/.local/share/pmostools/peptools" spath = "/home/" + gusr + "/.local/share/pmostools/peptools"
@ -29,10 +29,15 @@ def determine_browser(run_addrs):
profile_path = os.path.expanduser( profile_path = os.path.expanduser(
f"/home/{gusr}/.local/share/pmostools/ff_profile/" f"/home/{gusr}/.local/share/pmostools/ff_profile/"
) )
command = (
f'firefox -P firefox_kumo --profile "{profile_path}" {run_addrs} &' if shutil.which('firefox'):
) command = (
print("Found the FF, running Firefox") 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: else:
command = f'luakit -U {run_addrs} &' command = f'luakit -U {run_addrs} &'
print("This is a 32bit Flagship with no browser") print("This is a 32bit Flagship with no browser")