Tag: Wayland

  • Running Android Studio Flatpak in Wayland

    Wayland has been tested in Android Studio for quite some time. Despite officially not being stable yet it works very well and removed the mouse stuttering or lag I personally was experiencing on XWayland (X11).

    I created an issue and added a PR to the Android Studio Flatpak repository, however I had to close it as Wayland is not considered stable yet.

    Instead I added some instructions to the documentation on how to use Wayland instead of running Android Studio in XWayland (X11).

    By simply enabling the Wayland permission in the Flatpak advanced settings for Android Studio it will work on next launch. The same can also be achieved in the console:

    $ flatpak override --user --socket=wayland com.google.AndroidStudio

    Please note that the AVD Emulator will still continue to run on XWayland (X11) as it does not yet include Wayland Qt libraries so do not remove the default X11 permission just yet.

    Once launched you can go to Help > About and click the blue “Copy and Close” button. When pasted into the text editor you will see near the top either of these two lines:

    Toolkit: sun.awt.wl.WLToolkit (Wayland)

    Toolkit: sun.awt.X11.XToolkit (X11)

  • Fedora’s Thunderbird Flatpak shows generic Wayland “W” icon in KDE Plasma

    Just a little annoying issue that has buggered me for many months without any solution in the updates.

    When launching the latest Fedora version of Thunderbird Flatpak (128.6.0esr), it does not display its usual stylised blue swallow icon, but instead the generic yellow “W” icon of Wayland.

    This system runs Fedora Kinoite so the bug probable does not affect a RPM installation of Thunderbird. Additionally, there is also a Flatpak version of Thunderbird in Flathub which I have not tested whether this bug is present or not.

    This issue appears to be due to how the Thunderbird Flatpak is packaged. Specifically, the Fedora provided Flatpak is not setting the expected desktop file metadata when it launches under Wayland. As a result, KDE Plasma falls back to the generic “W” icon for the running window, even though the menu and pinned icon are correct.

    There is a specific commit to the underlying Flatpak container.yaml which may be responsible for this bug. The changing of the name string from “org.mozilla.thunderbird” to “net.thunderbird.Thunderbird“. This hint is also what is used to work around the bug:

    1. Start by opening Thunderbird
    2. Press Alt+F3
    3. Select More Actions > Configure Special Application Settings
    4. Add a new property called Desktop file name
    5. Select “Force” in the property drop-down
    6. Change the property value to “org.mozilla.Thunderbird
    7. Click “OK

    Now the taskbar icon should be back to the same as the one in the menu, the correct Thunderbird blue swallow icon, with no sight of the wrong yellow Wayland “W” icon.