tauri-apps / tauri-apps/plugins-workspace

[plugin-shell] open FS path does not work on AppImage

Open
#2,315 3 comments 0 reactions 0 assignees View on GitHub
platform: linux plugin: opener plugin: shell type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

Hi,
In JS side I'm using the plugin-shell API to open a directory with the system File Explorer:

```
import { open } from '@tauri-apps/plugin-shell';

[...]

const handleLogs = async () => {
try {
const logDir = await invoke('log_dir');
if (logDir) {
await open(logDir);
}
} catch (e) {
console.error(e);
}
};
```

It works as expected on Windows and Linux when running the app from the raw binary: whatever the file explorer in use, it opens at the given directory path. All good.
But when running the app from the AppImage, the file explorer does not open (nothing happens) and there is no error log.
In the app permissions I have this `shell:default` and `shell:allow-open`.

System Info
```
[✔] Environment
- OS: Arch Linux Unknown x86_64 (X64) (xmonad on X11)
✔ webkit2gtk-4.1: 2.46.5
✔ rsvg2: 2.59.2
✔ rustc: 1.84.0 (9fc6b4312 2025-01-07)
✔ cargo: 1.84.0 (66221abde 2024-11-19)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 20.13.1
- npm: 10.9.1
- bun: 1.1.43

[-] Packages
- tauri 🦀: 2.2.0
- tauri-build 🦀: 2.0.4
- wry 🦀: 0.48.0
- tao 🦀: 0.31.1
- tauri-cli 🦀: 2.0.4
- @tauri-apps/api : 2.2.0
- @tauri-apps/cli : 2.2.2 (outdated, latest: 2.2.4)

[-] Plugins
- tauri-plugin-fs 🦀: 2.2.0
- @tauri-apps/plugin-fs : not installed!
- tauri-plugin-dialog 🦀: 2.2.0
- @tauri-apps/plugin-dialog : 2.2.0
- tauri-plugin-window-state 🦀: 2.2.0
- @tauri-apps/plugin-window-state : 2.2.0
- tauri-plugin-single-instance 🦀: 2.2.0
- @tauri-apps/plugin-single-instance : not installed!
- tauri-plugin-updater 🦀: 2.2.0
- @tauri-apps/plugin-updater : 2.3.1
- tauri-plugin-process 🦀: 2.2.0
- @tauri-apps/plugin-process : 2.2.0
- tauri-plugin-shell 🦀: 2.2.0
- @tauri-apps/plugin-shell : 2.2.0
- tauri-plugin-os 🦀: 2.2.0
- @tauri-apps/plugin-os : 2.2.0
- tauri-plugin-notification 🦀: 2.2.0
- @tauri-apps/plugin-notification : 2.2.0

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.