mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
Added removal of chrome env vars so that sites are only added once
This commit is contained in:
parent
28bdf2f93d
commit
3b76cc8a48
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user