1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Set PulseAudio property overrides to QupZilla app name and icon

Closes #2262
This commit is contained in:
David Rosca 2017-03-18 17:19:57 +01:00
parent 621ed8ff28
commit 076deb7cdd
2 changed files with 9 additions and 0 deletions

View File

@ -688,6 +688,7 @@ void MainApplication::postLaunch()
connect(this, SIGNAL(aboutToQuit()), this, SLOT(saveSettings()));
createJumpList();
initPulseSupport();
QTimer::singleShot(5000, this, &MainApplication::runDeferredPostLaunchActions);
}
@ -1171,6 +1172,13 @@ void MainApplication::createJumpList()
#endif
}
void MainApplication::initPulseSupport()
{
qputenv("PULSE_PROP_OVERRIDE_application.name", "QupZilla");
qputenv("PULSE_PROP_OVERRIDE_application.icon_name", "qupzilla");
qputenv("PULSE_PROP_OVERRIDE_media.icon_name", "qupzilla");
}
#if defined(Q_OS_WIN) && !defined(Q_OS_OS2)
RegisterQAppAssociation* MainApplication::associationManager()
{

View File

@ -187,6 +187,7 @@ private:
QString m_languageFile;
void createJumpList();
void initPulseSupport();
#if defined(Q_OS_WIN) && !defined(Q_OS_OS2)
public: