qt: Set the .desktop file name on *nix

May fix generic icon instead of 86Box's icon showing up on Wayland
This commit is contained in:
Alexander Babikov
2023-12-20 20:15:31 +05:00
parent aabbad31d8
commit fdae410884

View File

@@ -205,6 +205,10 @@ main(int argc, char *argv[])
app.setWindowIcon(QIcon(":/settings/win/icons/86Box-gray.ico"));
#endif
#if (!defined(Q_OS_WINDOWS) && !defined(__APPLE__))
app.setDesktopFileName("net.86box.86Box");
#endif
if (!pc_init_modules()) {
ui_msgbox_header(MBX_FATAL, (void *) IDS_2121, (void *) IDS_2056);
return 6;