improve linux compatibility
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user