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