Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lxqt-session/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ session-eggwm.conf
*/
int main(int argc, char **argv)
{
qputenv("QT_NO_XDG_DESKTOP_PORTAL", QByteArrayLiteral("1"));
SessionApplication app(argc, argv);

QCommandLineParser parser;
Expand Down
4 changes: 4 additions & 0 deletions lxqt-session/src/sessionapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ bool SessionApplication::startup()
QMessageBox::warning(nullptr, tr("DBus Environment"),
tr("The DBus Activation Environment wasn't updated. Some apps might not work properly"));
}
qunsetenv("QT_NO_XDG_DESKTOP_PORTAL");

// loadFontSettings(settings);

Expand Down Expand Up @@ -348,6 +349,9 @@ bool SessionApplication::updateDBusEnvironment()
{
qCDebug(SESSION) << "Updating DBus activation environment:";
QProcess p;
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
env.remove(QStringLiteral("QT_NO_XDG_DESKTOP_PORTAL"));
p.setProcessEnvironment(env);
p.setProgram(QStringLiteral("dbus-update-activation-environment"));
p.setArguments(QStringList(QStringLiteral("--all")));
p.start();
Expand Down