summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-10 15:11:51 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-10 15:11:51 -0400
commita7b7e22968480c0b57f9a0335ee30e27baa9b88d (patch)
tree80a7b5bdf76a23cc108563c694d9a4b9fc31dfa1 /src/utils
parent29dc8a0a243147c26ca49494155ae089b0c6fd80 (diff)
downloaddecky-lsfg-vk-refactor/flatpak-capability.tar.gz
decky-lsfg-vk-refactor/flatpak-capability.zip
fix: canonicalize existing Flatpak targetsrefactor/flatpak-capability
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/steamLaunchOptions.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/utils/steamLaunchOptions.ts b/src/utils/steamLaunchOptions.ts
index ea97a10..0c24887 100644
--- a/src/utils/steamLaunchOptions.ts
+++ b/src/utils/steamLaunchOptions.ts
@@ -428,11 +428,21 @@ export function installWrapperIntegration(
if (savedOriginal && savedOriginal !== managedOriginal) {
throw new Error("Shortcut Target changed externally; refusing to replace it");
}
+ const canonicalTarget = flatpakTargetValue(wrapperPath, managedOriginal);
+ let targetChanged = false;
+ if (current.target !== canonicalTarget) {
+ current = await writeVerified(
+ appId, true, current.target, canonicalTarget,
+ (target) => writeTarget(appId, target), readTarget,
+ "Steam did not accept the canonical Flatpak shortcut Target",
+ );
+ targetChanged = true;
+ }
return {
snapshot: current,
originalExecutable: savedOriginal || managedOriginal,
commandTokenAdded: false,
- changed: launchOptionsChanged,
+ changed: launchOptionsChanged || targetChanged,
};
}
const currentOriginal = selectFlatpakExecutable(transport, current.target);