Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

Align Windows launcher with source launch flow

wyt446a41141f07
diff --git a/run.cmd b/run.cmd
index f73015c7..6159d3fb 100644
--- a/run.cmd
+++ b/run.cmd
@@ -21,7 +21,16 @@ if errorlevel 1 exit /b 1
pushd "%APP_DIR%"
taskkill /F /IM electron.exe >nul 2>nul
-set "ELECTRON_USER_DATA_DIR=%TEMP%\orkas-electron-source"
+timeout /t 1 /nobreak >nul 2>nul
+
+REM Keep the Orkas product identity and install data root unchanged, but give
+REM source launches their own Electron profile. This mirrors run.sh, so a
+REM packaged Orkas instance does not own the same Electron single-instance lock.
+set "PROFILE_KEY=%APP_DIR%"
+set "PROFILE_KEY=%PROFILE_KEY:\=_%"
+set "PROFILE_KEY=%PROFILE_KEY::=_%"
+set "PROFILE_KEY=%PROFILE_KEY: =_%"
+set "ELECTRON_USER_DATA_DIR=%TEMP%\orkas-electron-source-%PROFILE_KEY%"
if exist "%APP_DIR%\node_modules\.bin\electron.cmd" (
call "%APP_DIR%\node_modules\.bin\electron.cmd" "--user-data-dir=%ELECTRON_USER_DATA_DIR%" "%APP_DIR%"
) else (