diff --git a/gpt4all-chat/CHANGELOG.md b/gpt4all-chat/CHANGELOG.md index 88fa3541..0aa040bb 100644 --- a/gpt4all-chat/CHANGELOG.md +++ b/gpt4all-chat/CHANGELOG.md @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - Bring back "Auto" option for Embeddings Device as "Application default," which went missing in v3.1.0 ([#2873](https://github.com/nomic-ai/gpt4all/pull/2873)) - Correct a few strings in the Italian translation (by [@Harvester62](https://github.com/Harvester62) in [#2872](https://github.com/nomic-ai/gpt4all/pull/2872)) - Correct typos in Traditional Chinese translation (by [@supersonictw](https://github.com/supersonictw) in [#2852](https://github.com/nomic-ai/gpt4all/pull/2852)) +- Set the window icon on Linux ([#2880](https://github.com/nomic-ai/gpt4all/pull/2880)) ## [3.2.1] - 2024-08-13 diff --git a/gpt4all-chat/main.cpp b/gpt4all-chat/main.cpp index 4546a95b..49f1ea3a 100644 --- a/gpt4all-chat/main.cpp +++ b/gpt4all-chat/main.cpp @@ -21,6 +21,11 @@ #include #include +#ifdef Q_OS_LINUX +# include +#endif + + int main(int argc, char *argv[]) { QCoreApplication::setOrganizationName("nomic.ai"); @@ -32,6 +37,9 @@ int main(int argc, char *argv[]) Logger::globalInstance(); QGuiApplication app(argc, argv); +#ifdef Q_OS_LINUX + app.setWindowIcon(QIcon(":/gpt4all/icons/gpt4all.svg")); +#endif // set search path before constructing the MySettings instance, which relies on this QString llmodelSearchPaths = QCoreApplication::applicationDirPath();