aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration/configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/configuration/configuration.cpp')
-rw-r--r--lib/configuration/configuration.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp
index 48acecf..cf58d82 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 ConfigPath
- return ConfigPath;
+#ifdef Path_Config
+ return Path_Config;
#else
// try to locate an existing config
QString path = QStandardPaths::locate(QStandardPaths::ConfigLocation, "smolbote/smolbote.cfg");
@@ -55,7 +55,7 @@ Configuration::Configuration(QObject *parent)
("browser.locale", po::value<std::string>(), "Set Qt localization.")
("browser.translation", po::value<std::string>(), "Set application localization.")
- ("browser.crash.path", po::value<std::string>()->default_value(CrashdumpPath))
+ ("browser.crash.path", po::value<std::string>()->default_value(Path_Crashdump))
("browser.crash.handler", po::value<std::string>())
// main window ui
@@ -100,7 +100,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(FilterPath))
+ ("filter.path", po::value<std::string>()->default_value(Path_Filter))
("filter.adblock", po::value<std::string>())
("filter.header", po::value<std::vector<std::string>>())
// ("filter.cookies.block.all", po::value<bool>()->default_value(false))
@@ -108,22 +108,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(PluginsPath))
+ ("plugins.path", po::value<std::string>()->default_value(Path_Plugins))
// 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(ProfilesPath))
+ ("profile.path", po::value<std::string>()->default_value(Path_Profiles))
("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(BookmarksPath))
+ ("bookmarks.path", po::value<std::string>()->default_value(Path_Bookmarks))
("bookmarks.shortcut", po::value<std::string>()->default_value("Ctrl+B"))
// Downloads settings
- ("downloads.path", po::value<std::string>()->default_value(DownloadsPath))
+ ("downloads.path", po::value<std::string>()->default_value(Path_Downloads))
("downloads.shortcut", po::value<std::string>()->default_value("Ctrl+D"))
;
}