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:
parent
621ed8ff28
commit
076deb7cdd
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -187,6 +187,7 @@ private:
|
|||
QString m_languageFile;
|
||||
|
||||
void createJumpList();
|
||||
void initPulseSupport();
|
||||
|
||||
#if defined(Q_OS_WIN) && !defined(Q_OS_OS2)
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue
Block a user