offer an opt out of automatic xdg-desktop-portal use
this allows users to skip over the portal invocation if it is undesirable (e.g. during early stages of session setup on KDE's Plasma) Change-Id: I43e3c3a59b9bb71c77012f8f0ec7ad7ba904a050 Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
parent
311e508154
commit
a7bd656cf4
@ -347,6 +347,9 @@ private:
|
|||||||
QGenericUnixServices::QGenericUnixServices()
|
QGenericUnixServices::QGenericUnixServices()
|
||||||
{
|
{
|
||||||
#if QT_CONFIG(dbus)
|
#if QT_CONFIG(dbus)
|
||||||
|
if (qEnvironmentVariableIntValue("QT_NO_XDG_DESKTOP_PORTAL") > 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
QDBusMessage message = QDBusMessage::createMethodCall(
|
QDBusMessage message = QDBusMessage::createMethodCall(
|
||||||
"org.freedesktop.portal.Desktop"_L1, "/org/freedesktop/portal/desktop"_L1,
|
"org.freedesktop.portal.Desktop"_L1, "/org/freedesktop/portal/desktop"_L1,
|
||||||
"org.freedesktop.DBus.Properties"_L1, "Get"_L1);
|
"org.freedesktop.DBus.Properties"_L1, "Get"_L1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user