Skip to content

Commit

Permalink
Fix XDG Portal response time
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Jun 9, 2023
1 parent 14d8ebe commit c4afa91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion desktop-portal/interfaces/settingsinterface.cpp
Expand Up @@ -47,7 +47,9 @@ QDBusVariant SettingsInterface::Read(QString ns, QString key) {
return QDBusVariant(1u);
} else if (baseColor == "light") {
return QDBusVariant(2u);
} else {
return QDBusVariant(0u);
}
}
return {};
return QDBusVariant(QVariant());
}
3 changes: 3 additions & 0 deletions desktop-portal/main.cpp
Expand Up @@ -25,6 +25,7 @@
#include "interfaces/notificationinterface.h"
#include "interfaces/screenshotinterface.h"
#include "interfaces/settingsinterface.h"
#include <tsettings.h>

#include <QDBusConnection>

Expand All @@ -37,6 +38,8 @@ int main(int argc, char* argv[]) {

QDBusConnection::sessionBus().registerService("org.freedesktop.impl.portal.desktop.thedesk");

tSettings::registerDefaults("theSuite", "theDesk.platform", "/usr/share/defaults/thedesk-platform.conf");

QObject* rootDbusObject = new QObject();
new FileChooserInterface(rootDbusObject);
new SettingsInterface(rootDbusObject);
Expand Down

0 comments on commit c4afa91

Please sign in to comment.