Skip to content

[bug] Built apps on Ubuntu uses mainBinaryName instead of productName #13657

@nhatquangaioz

Description

@nhatquangaioz

Describe the bug

The name displayed in the top-left corner and on the dock icon is not as desired for both AppImage and Debian package

1. Top left corner:

Image

2. Dock icon:

Image

Also, the installer windows show as my-product-name, is it correct?

Image

Reproduction

No response

Expected behavior

It should use the productName, which is "My Product Name"

For example, Visual Studio Code:

Image

Image

Full tauri info output

[✔] Environment
    - OS: Ubuntu 22.4.0 x86_64 (X64) (ubuntu on x11)
    ✔ webkit2gtk-4.1: 2.48.3
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.86.0 (05f9846f8 2025-03-31)
    ✔ cargo: 1.86.0 (adf9b6ad1 2025-02-28)
    ✔ rustup: 1.28.1 (f9edccde0 2025-03-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 20.19.1
    - yarn: 4.9.1
    - npm: 10.8.2

[-] Packages
    - tauri 🦀: 2.5.1
    - tauri-build 🦀: 2.2.0
    - wry 🦀: 0.51.2
    - tao 🦀: 0.33.0
    - @tauri-apps/api : 2.5.0
    - @tauri-apps/cli : 2.5.0

[-] Plugins
    - tauri-plugin-dialog 🦀: 2.2.2
    - @tauri-apps/plugin-dialog : 2.2.2
    - tauri-plugin-clipboard-manager 🦀: 2.2.3
    - @tauri-apps/plugin-clipboard-manager : 2.2.3
    - tauri-plugin-opener 🦀: 2.3.0
    - @tauri-apps/plugin-opener : 2.3.0
    - tauri-plugin-updater 🦀: 2.8.1
    - @tauri-apps/plugin-updater : 2.8.1
    - tauri-plugin-single-instance 🦀: 2.2.4
    - @tauri-apps/plugin-single-instance : not installed!
    - tauri-plugin-shell 🦀: 2.2.2
    - @tauri-apps/plugin-shell : 2.2.2
    - tauri-plugin-fs 🦀: 2.3.0
    - @tauri-apps/plugin-fs : 2.3.0

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

Stack trace


Additional context

System info

$ echo "OS: $(lsb_release -d | cut -f2)"
OS: Ubuntu 22.04.5 LTS

$ echo "DE: $XDG_CURRENT_DESKTOP"
DE: ubuntu:GNOME

$ xprop | grep WM_CLASS
WM_CLASS(STRING) = "my-main-binary-name", "My-main-binary-name"

tauri.linux.conf.json

{
  "productName": "My Product Name",
  "mainBinaryName": "my-main-binary-name"
}

My Product Name.desktop

[Desktop Entry]
Categories=Office;Finance;
Comment=My short description
Exec=my-main-binary-name
Icon=my-main-binary-name
Name=My Product Name
Terminal=false
Type=Application

control

Package: my-product-name
Version: 0.1.0
Architecture: amd64
Installed-Size: 79431
Maintainer: you
Priority: optional
Depends: libwebkit2gtk-4.1-0, libgtk-3-0
Description: My short description
 My long description.

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