summaryrefslogtreecommitdiffstats
path: root/src/qtchooser/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qtchooser/main.cpp')
-rw-r--r--src/qtchooser/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qtchooser/main.cpp b/src/qtchooser/main.cpp
index ed1ee8f..e2a1c11 100644
--- a/src/qtchooser/main.cpp
+++ b/src/qtchooser/main.cpp
@@ -282,7 +282,7 @@ vector<string> ToolWrapper::searchPaths() const
paths.insert(paths.end(), xdgPaths.begin(), xdgPaths.end());
#if defined(QTCHOOSER_GLOBAL_DIR)
- if (qgetenv("XDG_CONFIG_DIRS").empty()) {
+ if (qgetenv("QTCHOOSER_NO_GLOBAL_DIR").empty()) {
vector<string> globalPaths = stringSplit(QTCHOOSER_GLOBAL_DIR);
paths.insert(paths.end(), globalPaths.begin(), globalPaths.end());
}