diff --git a/src/backend/main.ts b/src/backend/main.ts index 32141b8fbb..bcbec0e49c 100644 --- a/src/backend/main.ts +++ b/src/backend/main.ts @@ -157,6 +157,7 @@ import { getGameSdl } from 'backend/storeManagers/legendary/library' import { storeMap } from 'common/utils' +import { InstallResult } from 'common/types/game_manager' app.commandLine?.appendSwitch('ozone-platform-hint', 'auto') @@ -1275,7 +1276,13 @@ ipcMain.handle( const { title } = gameManagerMap[runner].getGameInfo(appName) notify({ title, body: i18next.t('notify.moving', 'Moving Game') }) - const moveRes = await gameManagerMap[runner].moveInstall(appName, path) + let moveRes: InstallResult = { + status: 'error', + error: 'No flatpak sandbox access to this path' + } + + if (isAccessibleWithinFlatpakSandbox(Path.parse(path))) + moveRes = await gameManagerMap[runner].moveInstall(appName, path) if (moveRes.status === 'error') { notify({ title, diff --git a/src/frontend/screens/Library/components/InstallModal/DownloadDialog/index.tsx b/src/frontend/screens/Library/components/InstallModal/DownloadDialog/index.tsx index 250d59a477..16f7c8cb65 100644 --- a/src/frontend/screens/Library/components/InstallModal/DownloadDialog/index.tsx +++ b/src/frontend/screens/Library/components/InstallModal/DownloadDialog/index.tsx @@ -739,6 +739,7 @@ export default function DownloadDialog({