Commit d8fade12 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Pass desktop entry name to power management inhibition

This makes the battery applet show "Elisa is inhibiting..." instead of
"elisa is inhibiting..."
parent 1fd3f827
Pipeline #60403 passed with stage
in 8 minutes and 36 seconds
......@@ -28,7 +28,7 @@
#include <QString>
#include <QCoreApplication>
#include <QGuiApplication>
#include <QLoggingCategory>
......@@ -172,7 +172,7 @@ void PowerManagementInterface::inhibitSleepPlasmaWorkspace()
QStringLiteral("org.freedesktop.PowerManagement.Inhibit"),
QStringLiteral("Inhibit"));
inhibitCall.setArguments({{QCoreApplication::applicationName()}, {i18nc("explanation for sleep inhibit during play of music", "Playing Music")}});
inhibitCall.setArguments({{QGuiApplication::desktopFileName()}, {i18nc("explanation for sleep inhibit during play of music", "Playing Music")}});
auto asyncReply = sessionBus.asyncCall(inhibitCall);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment