Set the application name, version, and domain (#1680)

This helps window and desktop managers figure out what to do with Chatterino
This commit is contained in:
apa420 2020-05-10 10:54:55 +02:00 committed by GitHub
parent 001dce5da1
commit 1a4a468ab1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,10 @@ int main(int argc, char **argv)
{
QApplication a(argc, argv);
QCoreApplication::setApplicationName("chatterino");
QCoreApplication::setApplicationVersion(CHATTERINO_VERSION);
QCoreApplication::setOrganizationDomain("https://www.chatterino.com");
// convert char** to QStringList
auto args = QStringList();
std::transform(argv + 1, argv + argc, std::back_inserter(args),