From a3d7fc43899becb393410b48d6d8c3f10a3ccbd7 Mon Sep 17 00:00:00 2001 From: ChemicalXandco <32775248+ChemicalXandco@users.noreply.github.com> Date: Sun, 14 Mar 2021 12:53:12 +0000 Subject: [PATCH] add start.sh --- Rare/Components/Tabs/Games/GameInfo/GameSettings.py | 13 ++++++++----- Rare/{Main.py => __main__.py} | 0 requirements.txt | 4 ++-- start.sh | 2 ++ 4 files changed, 12 insertions(+), 7 deletions(-) rename Rare/{Main.py => __main__.py} (100%) create mode 100644 start.sh diff --git a/Rare/Components/Tabs/Games/GameInfo/GameSettings.py b/Rare/Components/Tabs/Games/GameInfo/GameSettings.py index c1bbd28e..8235b169 100644 --- a/Rare/Components/Tabs/Games/GameInfo/GameSettings.py +++ b/Rare/Components/Tabs/Games/GameInfo/GameSettings.py @@ -40,11 +40,14 @@ class GameSettings(QWidget): self.layout.addWidget(self.linux_settings) self.possible_proton_wrappers = [] - for i in os.listdir(os.path.expanduser("~/.steam/steam/steamapps/common")): - if i.startswith("Proton"): - wrapper = '"' + os.path.join(os.path.expanduser("~/.steam/steam/steamapps/common"), i, - "proton") + '" run' - self.possible_proton_wrappers.append(wrapper) + try: + for i in os.listdir(os.path.expanduser("~/.steam/steam/steamapps/common")): + if i.startswith("Proton"): + wrapper = '"' + os.path.join(os.path.expanduser("~/.steam/steam/steamapps/common"), i, + "proton") + '" run' + self.possible_proton_wrappers.append(wrapper) + except FileNotFoundError as e: + print("Unable to find Proton:", e) self.select_proton = QComboBox() self.select_proton.addItems(["Don't use Proton"] + self.possible_proton_wrappers) self.select_proton.currentIndexChanged.connect(self.change_proton) diff --git a/Rare/Main.py b/Rare/__main__.py similarity index 100% rename from Rare/Main.py rename to Rare/__main__.py diff --git a/requirements.txt b/requirements.txt index 7ed2416f..11e0ebc0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -legendary-gl +git+https://github.com/ChemicalXandco/legendary.git@c1db2b9#egg=legendary-gl requests Pillow PyQt5 QtAwesome -notify-py \ No newline at end of file +notify-py diff --git a/start.sh b/start.sh new file mode 100644 index 00000000..064e6a60 --- /dev/null +++ b/start.sh @@ -0,0 +1,2 @@ +export PYTHONPATH=$PWD +python3 Rare \ No newline at end of file