improve linux compatibility

This commit is contained in:
FTCHD
2025-02-14 09:56:23 +02:00
parent 018c728568
commit 9dad86bd25
4 changed files with 27 additions and 2 deletions
+4
View File
@@ -193,6 +193,10 @@ export async function provisionRclone() {
const appLocalDataDirPath = await appLocalDataDir()
console.log('appLocalDataDirPath', appLocalDataDirPath)
await invoke('allow_dir', {
path: appLocalDataDirPath,
})
const appLocalDataDirPathExists = await exists(appLocalDataDirPath)
console.log('appLocalDataDirPathExists', appLocalDataDirPathExists)
+3
View File
@@ -10,6 +10,7 @@ import {
getCurrentWindow,
} from '@tauri-apps/api/window'
import { ask } from '@tauri-apps/plugin-dialog'
import { platform } from '@tauri-apps/plugin-os'
import { exit } from '@tauri-apps/plugin-process'
import { buildMenu } from './menu'
import { resetMainWindow } from './window'
@@ -84,6 +85,8 @@ export async function initTray(): Promise<void> {
}
export async function initLoadingTray() {
if (platform() === 'linux') return
const globeIconPath = await resolveResource('icons/favicon/frame_00_delay-0.1s.png')
const quitItem = await MenuItem.new({