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:
@@ -205,6 +205,10 @@ main(int argc, char *argv[])
|
|||||||
app.setWindowIcon(QIcon(":/settings/win/icons/86Box-gray.ico"));
|
app.setWindowIcon(QIcon(":/settings/win/icons/86Box-gray.ico"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (!defined(Q_OS_WINDOWS) && !defined(__APPLE__))
|
||||||
|
app.setDesktopFileName("net.86box.86Box");
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!pc_init_modules()) {
|
if (!pc_init_modules()) {
|
||||||
ui_msgbox_header(MBX_FATAL, (void *) IDS_2121, (void *) IDS_2056);
|
ui_msgbox_header(MBX_FATAL, (void *) IDS_2121, (void *) IDS_2056);
|
||||||
return 6;
|
return 6;
|
||||||
|
|||||||
Reference in New Issue
Block a user