1
1
mirror of https://github.com/neosubhamoy/neodlp.git synced 2026-03-22 05:45:50 +05:30

fix: neodlp-pot sidecar not registered error on flatpak

This commit is contained in:
2026-03-05 15:26:05 +05:30
Verified
parent 8db0544131
commit b96d8fe64b

View File

@@ -17,7 +17,12 @@ export default function usePotServer() {
};
const startPotServer = async (port?: number) => {
const runCommand = Command.sidecar('binaries/neodlp-pot', [
const isFlatpak = await invoke<boolean>('is_flatpak');
const runCommand = isFlatpak
? Command.create('sh', [
'-c', `/app/bin/neodlp-pot server --port ${port ? port.toString() : potServerPort.toString()}`
])
: Command.sidecar('binaries/neodlp-pot', [
'server',
'--port',
port ? port.toString() : potServerPort.toString(),