add Linux Runtimes to the banned names

master
kirbylife 2023-05-31 17:28:04 -06:00
parent 3a7d7814a7
commit c82d42e5e3
1 changed files with 5 additions and 3 deletions

View File

@ -24,12 +24,13 @@
import os import os
try: try: # Python 2
from commands import getoutput, getstatusoutput from commands import getoutput, getstatusoutput
except: except: # Python 3
from subprocess import getoutput, getstatusoutput from subprocess import getoutput, getstatusoutput
STEAM_URL = os.environ['HOME'] + "/.steam/steam/steamapps" STEAM_URL = os.environ['HOME'] + "/.steam/steam/steamapps"
BANNED_NAMES = ("Proton", "Steamworks", "Linux Runtime")
def set_item(name, appid=None): def set_item(name, appid=None):
@ -81,7 +82,8 @@ def main(args):
appid = f.split('"')[3] appid = f.split('"')[3]
elif '"name"' in f: elif '"name"' in f:
name = f.split('"')[3] name = f.split('"')[3]
if "Proton" in name or "Steamworks" in name: is_valid = any(attr in name for attr in BANNED_NAMES)
if is_valid:
continue continue
set_item(name, appid) set_item(name, appid)