summaryrefslogtreecommitdiff
path: root/print/sioyek/files/patch-pdf__viewer_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'print/sioyek/files/patch-pdf__viewer_main.cpp')
-rw-r--r--print/sioyek/files/patch-pdf__viewer_main.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/print/sioyek/files/patch-pdf__viewer_main.cpp b/print/sioyek/files/patch-pdf__viewer_main.cpp
index 2fb5adc397e4..d4797eeae414 100644
--- a/print/sioyek/files/patch-pdf__viewer_main.cpp
+++ b/print/sioyek/files/patch-pdf__viewer_main.cpp
@@ -1,22 +1,22 @@
---- pdf_viewer/main.cpp.orig 2023-03-04 14:34:21 UTC
+--- pdf_viewer/main.cpp.orig 2025-05-13 14:36:40 UTC
+++ pdf_viewer/main.cpp
-@@ -296,7 +296,7 @@ void configure_paths(){
- user_config_paths.push_back(mac_standard_config_path.slash(L"prefs_user.config"));
+@@ -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"));
-@@ -306,8 +306,8 @@ void configure_paths(){
+ 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());
- Path 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();
+ 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");
+ default_config_path = standard_config_path.slash(L"prefs.config");