+ // Create the app data location directory if it doesn't currently exist. This directory is used to store the databases in the subsequent commands.
+ // The first directory in the list should be the private, writable location, which on Linux should be `/home/user/.local/share/privacybrowser`.
+ QDir().mkdir(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation).first());
+
+ // Add the databases.
+ BookmarksDatabase::addDatabase();
+ CookiesDatabase::addDatabase();
+ DomainsDatabase::addDatabase();
+
+ // Populate the global filter list helper.
+ globalFilterListHelperPointer = new FilterListHelper;
+
+ // Check if other browsers are installed and store the result in the global variables
+ globalChromiumInstalled = (system("chromium --version > /dev/null 2> /dev/null") == 0);
+ globalFirefoxInstalled = (system("firefox -v > /dev/null 2> /dev/null") == 0);