Skip to content

Commit

Permalink
Set desktop file names in GUI executables
Browse files Browse the repository at this point in the history
This gives us window icons on Wayland.

Related to longturn#2019, longturn#984.
  • Loading branch information
lmoureaux committed Dec 25, 2023
1 parent e1ac6d7 commit 56b63f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/client_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ int client_main(int argc, char *argv[])
#endif
QApplication app(argc, argv);
QCoreApplication::setApplicationVersion(freeciv21_version());
app.setDesktopFileName(QStringLiteral("net.longturn.freeciv21"));

i_am_client(); // Tell to libfreeciv that we are client

Expand Down
1 change: 1 addition & 0 deletions tools/fcmp/mpgui_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
QCoreApplication::setApplicationVersion(freeciv21_version());
app.setDesktopFileName(QStringLiteral("net.longturn.freeciv21.modpack"));

// Delegate option parsing to the common function.
fcmp_parse_cmdline(app);
Expand Down
1 change: 1 addition & 0 deletions tools/ruledit/ruledit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
QCoreApplication::setApplicationVersion(freeciv21_version());
app.setDesktopFileName(QStringLiteral("net.longturn.freeciv21.ruledit"));

log_init();

Expand Down

0 comments on commit 56b63f2

Please sign in to comment.