mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Get XDG activation token also from DESKTOP_STARTUP_ID
This commit is contained in:
parent
109f6614f0
commit
94b4809cdf
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue