Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Tray Icon is not shown on Raspberry Pi OS #12527

Open
WilfredC64 opened this issue Jan 26, 2025 · 0 comments
Open

[bug] Tray Icon is not shown on Raspberry Pi OS #12527

WilfredC64 opened this issue Jan 26, 2025 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@WilfredC64
Copy link

Describe the bug

Running a Tauri application with tray-icon feature will not show the tray-icon on Raspberry Pi OS.

The tray icon worked fine in Tauri V1 but after migrating to V2, the icon is not shown anymore. However, the context menu still works so you can click on the empty space where normally the icon should be shown.

I've also build the same application (Tauri V2) for Windows, macOS and Linux (Ubuntu) and there the tray icon is shown correctly. It is only not working on Raspberry Pi OS anymore, while it did work fine with Tauri V1.

Reproduction

Create a Tauri application with tray-icon feature. Use the TrayIconBuilder in Rust and set the icon to the default window icon as it is done in the Tauri documentation in the Rust example (https://v2.tauri.app/learn/system-tray/#change-the-tray-icon). Run the application on Raspberry Pi OS and notice that there is no icon visible in the system tray.

If you hover over the system tray where the icon should be presented and when you have set the tooltip, then you will notice that the tooltip is still shown. Also if you have a context menu defined, then you can still right-click the mouse and the context menu pops up. All functionality works except the icon itself is not visible.

Expected behavior

Having a Tauri Application with a tray icon correctly defined should show the icon in the system tray. With Tauri V2 it doesn't display the icon on Raspberry Pi OS, while it works fine on all other platforms, even Linux (Ubuntu).

Full tauri info output

[✔] Environment
    - OS: Debian 12.0.0 aarch64 (X64) (LXDE-pi-labwc on wayland)
    ✔ webkit2gtk-4.1: 2.46.5
    ✔ rsvg2: 2.54.7
    ✔ rustc: 1.83.0 (90b35a623 2024-11-26)
    ✔ cargo: 1.83.0 (5ffbef321 2024-10-29)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-unknown-linux-gnu (default)
    - node: 18.19.0
    - npm: 9.2.0

[-] Packages
    - tauri 🦀: 2.2.5
    - tauri-build 🦀: 2.0.5
    - wry 🦀: 0.48.1
    - tao 🦀: 0.31.1
    - @tauri-apps/api : 2.2.0
    - @tauri-apps/cli : 2.2.7

[-] Plugins
    - tauri-plugin-fs 🦀: 2.2.0
    - @tauri-apps/plugin-fs : not installed!
    - tauri-plugin-single-instance 🦀: 2.2.1
    - @tauri-apps/plugin-single-instance : not installed!
    - tauri-plugin-dialog 🦀: 2.2.0
    - @tauri-apps/plugin-dialog : 2.2.0
    - tauri-plugin-autostart 🦀: 2.2.0
    - @tauri-apps/plugin-autostart : not installed!

[-] App
    - build-type: bundle
    - CSP: default-src 'self'; connect-src ipc: http://ipc.localhost
    - frontendDist: ../dist
    - devUrl: http://localhost:5173/
    - framework: Vue.js
    - bundler: Vite

Stack trace


Additional context

No response

@WilfredC64 WilfredC64 added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

1 participant