The QGuiApplication::setDesktopFileName() call was changed in [1] but
the desktop file and other files that reference it were not.
As shown by Looking Glass [2] on X11 updating these files is still
not enough for GNOME to associate the process with the desktop file,
a StartupWMClass entry is added to the desktop file to fix this.
[1]
129d5882a7 ("Migrate domain name from freecadweb to freecad (#9352)", 2023-04-24)
[2]
https://blogs.gnome.org/mclasen/2016/11/15/help-my-app-icon-is-missing/
This ensure invoking it to open different files only start the
program once, and load new files into the already running instance.
Patch by Håvard Flaget Aasen <haavard_aasen@yahoo.no> and
Tobias Frost <tobi@debian.org>.
Related to https://bugs.debian.org/1029846 and
c7a21ecbee .
Been part of the Debian edition of FreeCAD since 2021.
This fixes the following appstream warning and make program show up in the appstream
data set:
asv-desktop-app-launchable-missing
This `desktop-application` component is missing a `desktop-id`
launchable tag. This means that this application can not be launched
and has no association with its desktop-entry file. It also means no
icon data or category information from the desktop-entry file will
be available, which will result in this application being ignored
entirely.
Part of Debian FreeCAD edition since 2023.
This fixes thumbnailing for XDG desktops. The new script doesn't depend on GNOME libs and works either with python3 or python2.
Also, a thumbnailer config file is added to the installation in CMakeList.txt
Refer to `https://reproducible-builds.org/docs/source-date-epoch/`:
"SOURCE_DATE_EPOCH is a standardised environment variable that
distributions can set centrally and have build tools consume this in
order to produce reproducible output."