11import { getIdentifier } from "@tauri-apps/api/app" ;
2- import { appDataDir } from "@tauri-apps/api/path" ;
32import { Effect , Exit } from "effect" ;
43import { create as mutate } from "mutative" ;
54import type { StoreApi } from "zustand" ;
@@ -18,6 +17,7 @@ import {
1817 commands as listener2Commands ,
1918 events as listener2Events ,
2019} from "@hypr/plugin-listener2" ;
20+ import { commands as path2Commands } from "@hypr/plugin-path2" ;
2121
2222import { fromResult } from "../../../effect" ;
2323import type { BatchActions , BatchState } from "./batch" ;
@@ -205,7 +205,7 @@ export const createGeneralSlice = <
205205 const [ dataDirPath , micUsingApps , bundleId ] = yield * Effect . tryPromise ( {
206206 try : ( ) =>
207207 Promise . all ( [
208- appDataDir ( ) ,
208+ path2Commands . base ( ) ,
209209 detectCommands
210210 . listMicUsingApplications ( )
211211 . then ( ( r ) =>
@@ -291,8 +291,8 @@ export const createGeneralSlice = <
291291 onSuccess : ( ) => {
292292 if ( sessionId ) {
293293 void Promise . all ( [
294- appDataDir ( ) ,
295- getIdentifier ( ) . catch ( ( ) => "com.hyprnote.app " ) ,
294+ path2Commands . base ( ) ,
295+ getIdentifier ( ) . catch ( ( ) => "com.hyprnote.stable " ) ,
296296 ] )
297297 . then ( ( [ dataDirPath , bundleId ] ) => {
298298 const sessionPath = `${ dataDirPath } /hyprnote/sessions/${ sessionId } ` ;
0 commit comments