evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / mi / minigalaxy / inject-launcher-steam-run.diff
blob44850e9fbceabd9afa22861e90d8207d00cdae29
1 diff --git a/minigalaxy/launcher.py b/minigalaxy/launcher.py
2 index 641db77..712c55b 100644
3 --- a/minigalaxy/launcher.py
4 +++ b/minigalaxy/launcher.py
5 @@ -77,6 +77,7 @@ def get_execute_command(game) -> list:
6 if game.get_info("use_mangohud") is True:
7 exe_cmd.insert(0, "mangohud")
8 exe_cmd.insert(1, "--dlsym")
9 + exe_cmd.insert(0, "@steamrun@")
10 exe_cmd = get_exe_cmd_with_var_command(game, exe_cmd)
11 logger.info("Launch command for %s: %s", game.name, " ".join(exe_cmd))
12 return exe_cmd
13 diff --git a/tests/test_installer.py b/tests/test_installer.py
14 index 8e6cb76..a9d9f46 100644
15 --- a/tests/test_installer.py
16 +++ b/tests/test_installer.py
17 @@ -296,13 +296,13 @@ def test_get_exec_line(self, mock_list_dir, mock_which):
18 mock_list_dir.return_value = ["data", "docs", "scummvm", "support", "beneath.ini", "gameinfo", "start.sh"]
20 result1 = installer.get_exec_line(game1)
21 - self.assertEqual(result1, "scummvm -c beneath.ini")
22 + self.assertEqual(result1, "@steamrun@ scummvm -c beneath.ini")
24 game2 = Game("Blocks That Matter", install_dir="/home/test/GOG Games/Blocks That Matter", platform="linux")
25 mock_list_dir.return_value = ["data", "docs", "support", "gameinfo", "start.sh"]
27 result2 = installer.get_exec_line(game2)
28 - self.assertEqual(result2, "./start.sh")
29 + self.assertEqual(result2, "@steamrun@ ./start.sh")
31 @mock.patch('os.path.getsize')
32 @mock.patch('os.listdir')