GeoClue2: Fix DesktopId property


The DesktopId property has to indicate the desktop file name, i.e.
QGuiApplication::desktopFileName().

The QCoreApplication::applicationName() is used for things such as
settings. The application name is not used to initialize or derive the
desktop file name.

This fixes the geoclue daemon having wrong metadata about its clients.

[ChangeLog][Important Behavior Changes][GeoClue2] The plugin now
uses QGuiApplication::desktopFileName() if the desktopId plugin
parameter is not specified, and only falls back to
QCoreApplication::applicationName() if desktopFileName() is not
defined. The fall back path is scheduled to be dropped in the next
major release of Qt.

Pick-to: 6.10
Change-Id: I6b1ba57ab73ae7adda3b18874283ff93f78810db
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commitf2db3f7359073036fcb1de8d4f9f7bd08e159284
parent891529d264d1adea904045ea9470d35109fec7d9
authorVlad Zahorodnii <vlad.zahorodnii@kde.org>
committerVlad Zahorodnii <vlad.zahorodnii@kde.org>
commit timeFri, 18 Jul 2025 16:08:35 +0300