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
"""
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/"
)
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")