Skip to content

Application ID not set on Linux Wayland sessions #154521

@Merrit

Description

@Merrit

Steps to reproduce

From a Wayland session:

  1. flutter create --platforms=linux wayland_icons
  2. cd wayland_icons
  3. Create a .desktop file for the application at ~/.local/share/applications/com.example.wayland_icons.desktop with the following contents:
[Desktop Entry]
Version=1.0
Type=Application

Name=Wayland Icons Example
Comment=Demonstration of mapping icons to a Flutter app on Wayland
Categories=Development;

Icon=dialog-question
Exec=wayland_icons
Terminal=false
  1. flutter run -d linux

Expected results

Window should have the specified icon on the taskbar, task switcher (Alt+Tab / Overview effect / etc), and in the window decorations.

Actual results

Window has not adopted the correct icons, instead shows a generic Wayland logo

Screenshots or Video

Screenshots / Video demonstration

before1

before2

Flutter Doctor output

Doctor output
flutter doctor -v
[✓] Flutter (Channel stable, 3.24.1, on Fedora Linux 40 (KDE Plasma) 6.10.6-200.fc40.x86_64, locale en_US.UTF-8)
    • Flutter version 3.24.1 on channel stable at /home/merritt/Applications/tools/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5874a72aa4 (13 days ago), 2024-08-20 16:46:00 -0500
    • Engine revision c9b9d5780d
    • Dart version 3.5.1
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /home/merritt/Applications/tools/android-sdk/sdk/
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /home/merritt/Applications/tools/android-sdk/sdk
    • Java binary at: /home/merritt/Applications/tools/android-studio/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /usr/bin/google-chrome-stable

[✓] Linux toolchain - develop for Linux desktop
    • clang version 18.1.6 (Fedora 18.1.6-3.fc40)
    • cmake version 3.28.2
    • ninja version 1.12.1
    • pkg-config version 2.1.1

[✓] Android Studio (version 2024.1)
    • Android Studio at /home/merritt/Applications/tools/android-studio
    • Flutter plugin version 81.0.2
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.92.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.96.0

[✓] VS Code (version 1.93.0-insider)
    • VS Code at /usr/share/code-insiders
    • Flutter extension version 3.94.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Fedora Linux 40 (KDE Plasma) 6.10.6-200.fc40.x86_64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 128.0.6613.113

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Results consistent on GNOME & KDE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    found in release: 3.24Found to occur in 3.24found in release: 3.25Found to occur in 3.25has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specificallyr: fixedIssue is closed as already fixed in a newer versionteam-linuxOwned by the Linux platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions