Skip to content

Commit

Permalink
MangoHud was not working properly for default prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Faugus authored Nov 14, 2024
1 parent 9116d89 commit 813f2eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions faugus-launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
faugus_run = "/usr/bin/faugus-run"
faugus_proton_manager = "/usr/bin/faugus-proton-manager"
umu_run = "/usr/bin/umu-run"
mangohud = "/usr/bin/mangohud"
mangohud_dir = "/usr/bin/mangohud"
gamemoderun = "/usr/bin/gamemoderun"

def get_desktop_dir():
Expand Down Expand Up @@ -632,7 +632,7 @@ def on_button_edit_clicked(self, widget):
gamemode_status = fields[6] == "gamemoderun"
sc_controller_status = fields[7] == "SC_CONTROLLER=1"

mangohud_enabled = os.path.exists(mangohud)
mangohud_enabled = os.path.exists(mangohud_dir)
if mangohud_enabled:
edit_game_dialog.checkbox_mangohud.set_active(mangohud_status)
gamemode_enabled = os.path.exists(gamemoderun) or os.path.exists("/usr/games/gamemoderun")
Expand Down Expand Up @@ -1315,7 +1315,7 @@ def __init__(self, parent):
self.load_config()

# Check if optional features are available and enable/disable accordingly
self.mangohud_enabled = os.path.exists(mangohud)
self.mangohud_enabled = os.path.exists(mangohud_dir)
if not self.mangohud_enabled:
self.checkbox_mangohud.set_sensitive(False)
self.checkbox_mangohud.set_active(False)
Expand Down Expand Up @@ -2027,7 +2027,7 @@ def __init__(self, parent, game_running2, file_path):
self.combo_box_runner.set_active(index_to_activate)

# Check if optional features are available and enable/disable accordingly
self.mangohud_enabled = os.path.exists(mangohud)
self.mangohud_enabled = os.path.exists(mangohud_dir)
if not self.mangohud_enabled:
self.checkbox_mangohud.set_sensitive(False)
self.checkbox_mangohud.set_active(False)
Expand Down Expand Up @@ -2787,7 +2787,7 @@ def __init__(self, file_path):
self.load_config()

# Check if optional features are available and enable/disable accordingly
self.mangohud_enabled = os.path.exists(mangohud)
self.mangohud_enabled = os.path.exists(mangohud_dir)
if not self.mangohud_enabled:
self.checkbox_mangohud.set_sensitive(False)
self.checkbox_mangohud.set_active(False)
Expand Down Expand Up @@ -3212,7 +3212,7 @@ def run_file(file_path):
faugus_run_path = faugus_run

if not file_path.endswith(".reg"):
mangohud_enabled = os.path.exists(mangohud)
mangohud_enabled = os.path.exists(mangohud_dir)
gamemode_enabled = os.path.exists(gamemoderun) or os.path.exists("/usr/games/gamemoderun")
sc_controller_enabled = os.path.exists("/usr/bin/sc-controller") or os.path.exists("/usr/local/bin/sc-controller")

Expand Down

0 comments on commit 813f2eb

Please sign in to comment.