Set desktop file name for QApplication

This must match the base name of the .desktop file (without the .desktop suffix).

The implicit default is 'wireshark', which worked until the file got renamed in 42a09ad02e

Setting this is important for several desktop enviromnent features to work, for example the window icon on Plasma Wayland
This commit is contained in:
Nicolas Fella 2022-01-12 01:41:48 +01:00
parent a21f1af336
commit 34c7a0edfd
1 changed files with 2 additions and 0 deletions

View File

@ -663,6 +663,8 @@ WiresharkApplication::WiresharkApplication(int &argc, char **argv) :
styleHints()->setShowShortcutsInContextMenus(true);
#endif
setDesktopFileName(QStringLiteral("org.wireshark.Wireshark"));
//
// XXX - this means we try to check for the existence of all files
// in the recent list every 2 seconds; that causes noticeable network