diff options
Diffstat (limited to 'lib/configuration/configuration.cpp')
-rw-r--r-- | lib/configuration/configuration.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp index 9931ec5..a61247b 100644 --- a/lib/configuration/configuration.cpp +++ b/lib/configuration/configuration.cpp @@ -18,8 +18,8 @@ namespace po = boost::program_options; inline std::string defaultUserConfigLocation() { -#ifdef config_path - return config_path; +#ifdef ConfigPath + return ConfigPath; #else // try to locate an existing config QString path = QStandardPaths::locate(QStandardPaths::ConfigLocation, "smolbote/smolbote.cfg"); @@ -96,7 +96,7 @@ Configuration::Configuration(QObject *parent) ("subwindow.shortcuts.fullscreen", po::value<std::string>()->default_value("F11")) // Filter settings - ("filter.path", po::value<std::string>()->default_value(filter_path)) + ("filter.path", po::value<std::string>()->default_value(FilterPath)) ("filter.adblock", po::value<std::string>()) ("filter.header", po::value<std::vector<std::string>>()) // ("filter.cookies.block.all", po::value<bool>()->default_value(false)) @@ -104,22 +104,22 @@ Configuration::Configuration(QObject *parent) // ("filter.cookies.path", po::value<std::string>()->default_value("~/.config/smolbote/cookies.d")) // Plugin settings - ("plugins.path", po::value<std::string>()->default_value(plugins_path)) + ("plugins.path", po::value<std::string>()->default_value(PluginsPath)) // Profile settings // default profile name the browser should use; "" is off-the-record ("profile.default", po::value<std::string>()->default_value("")) - ("profile.path", po::value<std::string>()->default_value(profiles_path)) + ("profile.path", po::value<std::string>()->default_value(ProfilesPath)) ("profile.search", po::value<std::string>()->default_value("https://duckduckgo.com/?q=%1&ia=web")) ("profile.homepage", po::value<std::string>()->default_value("about:blank")) ("profile.newtab", po::value<std::string>()->default_value("about:blank")) // Bookmark settings - ("bookmarks.path", po::value<std::string>()->default_value(bookmarks_path)) + ("bookmarks.path", po::value<std::string>()->default_value(BookmarksPath)) ("bookmarks.shortcut", po::value<std::string>()->default_value("Ctrl+B")) // Downloads settings - ("downloads.path", po::value<std::string>()->default_value(downloads_path)) + ("downloads.path", po::value<std::string>()->default_value(DownloadsPath)) ("downloads.shortcut", po::value<std::string>()->default_value("Ctrl+D")) ; } |