]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/main.cpp
Add the GPLv3+ licensing information.
[PrivacyBrowserPC.git] / src / main.cpp
index f0ffdecafd53cd5b89cd23b63fe7c587051eed55..4f84887198df02807cf1ec7465b54c53a61b8a5d 100644 (file)
 
 // Application headers.
 #include "mainwindow.h"
-#include "privacybrowserpcdebug.h"  // TODO.  Rename.
 
 // KDE Frameworks headers.
 #include <KAboutData>
 #include <KCrash>
 #include <KDBusService>
-#include <KLocalizedString>  // TODO.  This may not be needed.
 
 // Qt headers.
-#include <QApplication>  // TODO.  Probably not needed.  Appears to be included in a sub header.
 #include <QCommandLineParser>
-#include <QIcon>  // TODO.  Probably not needed.  Appears to be included in a sub header.
-#include <QLoggingCategory>  // Probably not needed at all.
+#include <QFile>
 
 int main(int argc, char *argv[])
 {
@@ -50,12 +46,12 @@ int main(int argc, char *argv[])
     // Add the author information.
     aboutData.addAuthor(i18n("Soren Stoutner"),i18n("Principal developer"), QStringLiteral("soren@stoutner.com"), QStringLiteral("https://www.stoutner.com/"));
 
-    // Populate additional about data info.  TODO, OrLaterVersions does not work.  The solution is probably to use a custom license file.
-    aboutData.setBugAddress("https://redmine.stoutner.com/projects/privacy-browser/issues");  // TODO.  Update the URL.
+    // Populate additional about data info.
+    aboutData.setBugAddress("https://redmine.stoutner.com/projects/privacy-browser-pc/issues");
     aboutData.setCopyrightStatement(i18n("Copyright © 2022 Soren Stoutner <soren@stoutner.com>"));
     aboutData.setDesktopFileName(QStringLiteral("com.stoutner.privacybrowser"));
     aboutData.setHomepage(QStringLiteral("https://www.stoutner.com/privacy-browser-pc/"));
-    aboutData.setLicense(KAboutLicense::GPL_V3, KAboutLicense::OrLaterVersions);
+    aboutData.setLicenseTextFile(":/licenses/GPLv3+.txt");
     aboutData.setOrganizationDomain("stoutner.com");
     aboutData.setShortDescription(i18n("A web browser that respects your privacy."));
 
@@ -77,7 +73,7 @@ int main(int argc, char *argv[])
     // Make it so.
     aboutData.processCommandLine(&commandLineParser);
 
-    // TODO.
+    // Register with D-Bus, allowing multiple instances and allowing the program to run if for some reason the registration fails.
     KDBusService appDBusService(KDBusService::Multiple | KDBusService::NoExitOnFailure);
 
     // Create the main window.