diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index 6d39a2c48..93b5a5d9b 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -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());