mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
1.5 KiB
Diff
33 lines
1.5 KiB
Diff
diff --git a/minigalaxy/launcher.py b/minigalaxy/launcher.py
|
|
index 641db77..712c55b 100644
|
|
--- a/minigalaxy/launcher.py
|
|
+++ b/minigalaxy/launcher.py
|
|
@@ -77,6 +77,7 @@ def get_execute_command(game) -> list:
|
|
if game.get_info("use_mangohud") is True:
|
|
exe_cmd.insert(0, "mangohud")
|
|
exe_cmd.insert(1, "--dlsym")
|
|
+ exe_cmd.insert(0, "@steamrun@")
|
|
exe_cmd = get_exe_cmd_with_var_command(game, exe_cmd)
|
|
logger.info("Launch command for %s: %s", game.name, " ".join(exe_cmd))
|
|
return exe_cmd
|
|
diff --git a/tests/test_installer.py b/tests/test_installer.py
|
|
index 8e6cb76..a9d9f46 100644
|
|
--- a/tests/test_installer.py
|
|
+++ b/tests/test_installer.py
|
|
@@ -296,13 +296,13 @@ def test_get_exec_line(self, mock_list_dir, mock_which):
|
|
mock_list_dir.return_value = ["data", "docs", "scummvm", "support", "beneath.ini", "gameinfo", "start.sh"]
|
|
|
|
result1 = installer.get_exec_line(game1)
|
|
- self.assertEqual(result1, "scummvm -c beneath.ini")
|
|
+ self.assertEqual(result1, "@steamrun@ scummvm -c beneath.ini")
|
|
|
|
game2 = Game("Blocks That Matter", install_dir="/home/test/GOG Games/Blocks That Matter", platform="linux")
|
|
mock_list_dir.return_value = ["data", "docs", "support", "gameinfo", "start.sh"]
|
|
|
|
result2 = installer.get_exec_line(game2)
|
|
- self.assertEqual(result2, "./start.sh")
|
|
+ self.assertEqual(result2, "@steamrun@ ./start.sh")
|
|
|
|
@mock.patch('os.path.getsize')
|
|
@mock.patch('os.listdir')
|