aboutsummaryrefslogtreecommitdiffstats
path: root/misc/qlcplus/files/patch-engine_src_qlcfile.cpp
blob: ff4a1d6f693e8691ad7dd88cabb8d92c8c06960a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- engine/src/qlcfile.cpp.orig	2023-06-30 07:50:19 UTC
+++ engine/src/qlcfile.cpp
@@ -209,7 +209,7 @@ QDir QLCFile::userDirectory(QString path, QString fall
     Q_UNUSED(fallBackPath)
     QDir dir;
 
-#if defined(Q_WS_X11) || defined(Q_OS_LINUX)
+#if defined(Q_WS_X11) || defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
     // If the current user is root, return the system fixture dir.
     // Otherwise return a path under user's home dir.
     if (geteuid() == 0 && QLCFile::hasWindowManager())