blob: d4797eeae414f2df92f1c76ebbf3a8e9d4cb597e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- pdf_viewer/main.cpp.orig 2025-05-13 14:36:40 UTC
+++ pdf_viewer/main.cpp
@@ -223,7 +223,7 @@ void configure_paths() {
user_config_paths.push_back(mac_standard_config_path.slash(L"prefs_user.config"));
#endif
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
QStringList all_config_paths = QStandardPaths::standardLocations(QStandardPaths::AppConfigLocation);
for (int i = all_config_paths.size() - 1; i >= 0; i--) {
user_config_paths.push_back(Path(all_config_paths.at(i).toStdWString()).slash(L"prefs_user.config"));
@@ -233,8 +233,8 @@ void configure_paths() {
#ifdef LINUX_STANDARD_PATHS
Path home_path(QDir::homePath().toStdWString());
standard_data_path = home_path.slash(L".local").slash(L"share").slash(L"sioyek");
- Path standard_config_path = Path(L"/etc/sioyek");
- Path read_only_data_path = Path(L"/usr/share/sioyek");
+ Path standard_config_path = Path(L"%%ETCDIR%%");
+ Path read_only_data_path = Path(L"%%DATADIR%%");
standard_data_path.create_directories();
default_config_path = standard_config_path.slash(L"prefs.config");
|