From be1feeee76cf4956bc5456e4b2740930750fbedf Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Thu, 10 Sep 2026 14:59:56 -0400 Subject: fix: recognize split Steam Flatpak targets --- tests/test_steam_service.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tests/test_steam_service.py') diff --git a/tests/test_steam_service.py b/tests/test_steam_service.py index 95bd2a2..4f61f3c 100644 --- a/tests/test_steam_service.py +++ b/tests/test_steam_service.py @@ -21,6 +21,10 @@ class SteamTransportTests(unittest.TestCase): classify_shortcut_transport("/usr/bin/flatpak", "run com.example.Game --fullscreen"), {"kind": "flatpak"}, ) + self.assertEqual( + classify_shortcut_transport("flatpak", "run com.example.Game --fullscreen", "/usr/bin/"), + {"kind": "flatpak"}, + ) for executable, options in ( ("flatpak", "run com.example.Game"), ("/usr/bin/flatpak run com.example.Game", "--fullscreen"), @@ -40,6 +44,21 @@ class SteamTransportTests(unittest.TestCase): ) self.assertEqual(classify_shortcut_transport("~/.lsfg", "run com.example.Game"), {"kind": "host"}) + def test_split_flatpak_target_is_recognized_without_script_or_app_detection(self): + game = SteamService._shortcut_game( + { + "appid": 123456, + "AppName": "Split Flatpak shortcut", + "Exe": "flatpak", + "StartDir": "/usr/bin/", + "LaunchOptions": "run io.example.Game", + } + ) + + self.assertEqual(game["transport"], {"kind": "flatpak"}) + self.assertEqual(game["executable"], "flatpak") + self.assertEqual(game["startDir"], "/usr/bin/") + def test_direct_flatpak_shortcut_keeps_arguments_without_an_app_id(self): game = SteamService._shortcut_game( { -- cgit v1.2.3