Added removal of chrome env vars so that sites are only added once

This commit is contained in:
sysmoon14 2024-02-09 14:23:36 +00:00 committed by GitHub
parent 28bdf2f93d
commit 3b76cc8a48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,6 +31,12 @@ for line in lines:
name, value = line.strip().split('=', 1)
os.environ[name] = value
# Delete env_vars entries for Chrome shortcuts so that they're only added once
with open(env_vars_path, 'w') as f:
for line in lines:
if line.find('chromelaunchoptions') == -1 and line.find('websites_str') == -1:
f.write(line)
# Variables from NonSteamLaunchers.sh
steamid3 = os.environ['steamid3']
logged_in_home = os.environ['logged_in_home']