Ultimaker / Cura

3D printer / slicing GUI built on top of the Uranium framework
GNU Lesser General Public License v3.0
6.19k stars 2.08k forks source link

Incorrect window/application class on Linux #18328

Open anarsoul opened 9 months ago

anarsoul commented 9 months ago

Cura Version

5.6.0

Operating System

Archlinux

Printer

Elegoo Neptune 4 Plus

Reproduction steps

Cura declares incorrect Window/Application class - it contains com/.https://ultimaker.UltiMaker-Cura, as a result DE (e.g. Plasma or Gnome) cannot match window to .desktop or appdata file

In KDE Plasma right click on window header, More Actions -> Configure Special Application Settings and observe that Window (Application) class is weird:

image

Actual results

Window (Application) class is incorrect

Expected results

It should be com.ultimaker.cura as in appdata file, .desktop file should be updated accordingly.

Add your .zip and screenshots here ⬇️

N/A

HellAholic commented 9 months ago

Hey @anarsoul , I'll discuss with the team and will update you. internal reference CURA-11637

jellespijker commented 9 months ago

Are you using the AppImage provided by us, or did you install Cura via a system package manager.

I can't reproduce this (see screenshot) using our AppImage (5.7.0-alpha.1) on Manjaro KDE

image

anarsoul commented 9 months ago

I can't reproduce this (see screenshot) using our AppImage (5.7.0-alpha.1) on Manjaro KDE

I was using 5.6.0 appimage, but I tried 5.7.0-alpha.1 and I'm seeing the same issue. Are you running it from Wayland or X11 session?

Edit: I double checked, and the issue is reproducible only on Wayland session

darkblaze69 commented 8 months ago

The same for me on Arch linux on GNOME, native Wayland session. From AUR https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=cura-bin which is based on AppImage.

In GNOME Wayland session in looking glass windows list it is listed as untracked and without an icon because appid is mismatched:

Screenshot from 2024-02-27 00-20-17

The app id should be fixed. If I manually specify in desktop file StartupWMClass=com/.https://ultimaker.UltiMaker-Cura the icon is shown and window is tracked in looking glass:

image