fix Quick Unlock QMap<QString,QString> D-Bus marshalling error

Register QMap<QString,QString> as a D-Bus metatype so Polkit
CheckAuthorization can marshal the details argument. Without this,
Quick Unlock fails with "Unregistered type QMap<QString,QString>
passed in arguments".
This commit is contained in:
Loose Cannon 2026-02-25 11:15:07 -05:00
parent 8e561a93a5
commit da85170801

View file

@ -48,6 +48,7 @@ Polkit::Polkit()
{ {
PolkitSubject::registerMetaType(); PolkitSubject::registerMetaType();
PolkitAuthorizationResults::registerMetaType(); PolkitAuthorizationResults::registerMetaType();
qDBusRegisterMetaType<QMap<QString, QString>>();
/* Note we explicitly use our own dbus path here, as the ::systemBus() method could be overridden /* Note we explicitly use our own dbus path here, as the ::systemBus() method could be overridden
through an environment variable to return an alternative bus path. This bus could have an application through an environment variable to return an alternative bus path. This bus could have an application