X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Findicatornotificationbackend.cpp;h=41fce5cbdb50fe54b0466194965dd0d2fe84316b;hp=fabe20ce9877ea7c567e46dd7ebb03fad98ada7e;hb=62e2475acedbc3650c30d41938f9fe9c5a88ace4;hpb=15b4bac4e5461564f94fc007a110c08b5a4b693e diff --git a/src/qtui/indicatornotificationbackend.cpp b/src/qtui/indicatornotificationbackend.cpp index fabe20ce..41fce5cb 100644 --- a/src/qtui/indicatornotificationbackend.cpp +++ b/src/qtui/indicatornotificationbackend.cpp @@ -47,7 +47,10 @@ IndicatorNotificationBackend::IndicatorNotificationBackend(QObject *parent) _server = QIndicate::Server::defaultInstance(); _server->setType("message.irc"); - _server->setDesktopFile(XSTR(DESKTOP_FILE)); + QString desktopFile = QString("%1/%2.desktop") + .arg(XSTR(XDG_APPS_INSTALL_DIR)) + .arg(QCoreApplication::applicationFilePath().section('/', -1)); + _server->setDesktopFile(desktopFile); connect(_server, SIGNAL(serverDisplay()), QtUi::mainWindow(), SLOT(forceActivated())); if (_enabled) {