Skip to content

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

Open
@doums

Description

@doums

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<string | undefined>('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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions