Skip to content

Commit c5bc470

Browse files
committed
chore: pid migration
1 parent 3fd72a3 commit c5bc470

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/stores/appSettings.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
DefaultTestURL,
1919
UserFilePath,
2020
} from '@/constant/app'
21-
import { DefaultConnections, DefaultCoreConfig } from '@/constant/kernel'
21+
import { CorePidFilePath, DefaultConnections, DefaultCoreConfig } from '@/constant/kernel'
2222
import {
2323
Theme,
2424
WindowStartState,
@@ -125,6 +125,8 @@ export const useAppSettingsStore = defineStore('app-settings', () => {
125125
}
126126
// @ts-expect-error(Deprecated)
127127
if (app.value.kernel.running !== undefined) {
128+
// @ts-expect-error(Deprecated)
129+
await WriteFile(CorePidFilePath, String(app.value.kernel.pid))
128130
// @ts-expect-error(Deprecated)
129131
delete app.value.kernel.running
130132
// @ts-expect-error(Deprecated)

0 commit comments

Comments
 (0)