-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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] System tray icon cause app to crash on Ubuntu linux #6117
Comments
this is happening to one of my projects too. but not on mac. |
@getneil, mac works fine, I have this error on linux. Strangely, I found that default installation of tauri with fresh system tray setup works just fine on linux, no build errors. I copied Cargo.lock and Cargo.toml to my project, along with tauri.conf.json and icons, after that my project still throw same error on build. I don't understand why this is happening. |
Can you try regenerating your icons with the If that doesn't help, or if you tried that already, i'd appreciate if you could share your icons so we can try to reproduce it on our end. |
@FabianLars thank you for a tip about using Anyone who has an icons error with tauri, just create your png image file with transparency with big size like 512x512 pixels and convert it to tauri icons with tauri cli: tauri cli will generate all icons you need for your app in
|
…1738) * generating more tauri desktop app icons to fix tauri-apps/tauri#6117 error * reverting changes to .tsconfig
Describe the bug
I could not find any working combination of icon size / color in config that could work with system tray on linux systems (Ubuntu)
"tauri": {
"systemTray": {
"iconPath": "icons/32x32.png",
"iconAsTemplate": true
}
I tried 32x32, 64x64, etc. Nothing can be used with tauri 1.2.4.
I bet it was working before with tauri 1.1, it has problem with grayscale image but specifying png image with colors worked
fine, after upgrade to tauri 1.2.4 I could not make it work at all.
I see 2 type of errors using different size icons
thread 'main' panicked at 'data.len() must fit the width, height, and row_stride', /home/kurdin/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-pixbuf-0.15.11/src/pixbuf.rs:52:13
thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: Parameter(ParameterError { inner: ImageBufferSize { expected: 16384, actual: 4096 } })', /home/kurdin/.cargo/registry/src/github.com-1ecc6299db9ec823/tao-0.15.8/src/platform_impl/linux/icon.rs:59:40Window and macos work fine
Platform and versions
Environment
› OS: Ubuntu 22.04 X64
› Node.js: 16.19.0
› npm: 8.19.3
› pnpm: Not installed!
› yarn: Not installed!
› rustup: 1.25.1
› rustc: 1.66.1
› cargo: 1.66.1
› Rust toolchain: stable-x86_64-unknown-linux-gnu
Packages
› @tauri-apps/cli [NPM]: 1.2.3
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.4,
› tauri-build [RUST]: 1.2.1,
› tao [RUST]: 0.15.8,
› wry [RUST]: 0.23.4,
App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:5173/
› framework: React
› bundler: Webpack
App directory structure
├─ dist
├─ node_modules
├─ assets
├─ public
├─ src-tauri
└─ src
Stack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: