2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

Get XDG activation token also from DESKTOP_STARTUP_ID

This commit is contained in:
Ilya Fedin
2022-11-25 16:53:34 +04:00
committed by John Preston
parent 109f6614f0
commit 94b4809cdf

View File

@@ -711,6 +711,11 @@ void start() {
LOG(("Launcher filename: %1").arg(QGuiApplication::desktopFileName()));
if (!qEnvironmentVariableIsSet("XDG_ACTIVATION_TOKEN")
&& qEnvironmentVariableIsSet("DESKTOP_STARTUP_ID")) {
qputenv("XDG_ACTIVATION_TOKEN", qgetenv("DESKTOP_STARTUP_ID"));
}
qputenv("PULSE_PROP_application.name", AppName.utf8());
qputenv("PULSE_PROP_application.icon_name", base::IconName().toLatin1());