Continuumatrice: isolate Linux executable and desktop identity (main.cpp)

This commit is contained in:
Christian Daniel Jensen 2026-11-02 02:32:03 -07:00
parent 81cb33571e
commit 93f4549d43

View file

@ -333,7 +333,7 @@ int main(int argc, char *argv[])
#elif defined(Q_OS_WIN) #elif defined(Q_OS_WIN)
translationPath = qApp->applicationDirPath() + "/translations"; translationPath = qApp->applicationDirPath() + "/translations";
#else // linux #else // linux
translationPath = qApp->applicationDirPath() + "/../share/cockatrice/translations"; translationPath = qApp->applicationDirPath() + "/../share/continuumatrice/translations";
#endif #endif
// Command-line parser // Command-line parser
@ -492,7 +492,7 @@ int main(int argc, char *argv[])
// extension. Wayland reads the window icon from it, and xdg-desktop-portal looks up // extension. Wayland reads the window icon from it, and xdg-desktop-portal looks up
// org.freedesktop.host.portal.Registry by this app ID, so it has to match the file name // org.freedesktop.host.portal.Registry by this app ID, so it has to match the file name
// exactly, down to the case. // exactly, down to the case.
QGuiApplication::setDesktopFileName("cockatrice"); QGuiApplication::setDesktopFileName("continuumatrice");
SettingsCache::instance().network().setClientID(generateClientID()); SettingsCache::instance().network().setClientID(generateClientID());