X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=4f84887198df02807cf1ec7465b54c53a61b8a5d;hp=f0ffdecafd53cd5b89cd23b63fe7c587051eed55;hb=3ff4e08896c8cb0821d7bead07732e2064af844c;hpb=e2b2661f166481791209ed42dac8657ab2c92429 diff --git a/src/main.cpp b/src/main.cpp index f0ffdec..4f84887 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,19 +19,15 @@ // Application headers. #include "mainwindow.h" -#include "privacybrowserpcdebug.h" // TODO. Rename. // KDE Frameworks headers. #include #include #include -#include // TODO. This may not be needed. // Qt headers. -#include // TODO. Probably not needed. Appears to be included in a sub header. #include -#include // TODO. Probably not needed. Appears to be included in a sub header. -#include // Probably not needed at all. +#include 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 ")); 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.