summaryrefslogtreecommitdiff
path: root/src/plugins/android/androiddevice.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2022-08-24 11:31:04 +0200
committerEike Ziller <eike.ziller@qt.io>2022-08-29 09:12:37 +0000
commit55c627efef5940c4d5c8eb4628afe5102b6b59f7 (patch)
tree18235e2bc7ab5ec1b4bf5acf5ca1c335439eeafe /src/plugins/android/androiddevice.cpp
parent57745407defd03d78dd155224423940f05ee0407 (diff)
downloadqt-creator-55c627efef5940c4d5c8eb4628afe5102b6b59f7.tar.gz
Android: Use qtcEnvironmentVariable* instead of qEnvironmentVariable*
And instead of qgetenv. Takes Qt Creator's setting at "Environment > System > Environment" into account, which makes it easier on some platforms to set them (e.g. macOS), can be configured differently in different settings paths, and potentially can be changed at runtime (depending on usage). Change-Id: I159fb6928954240af742708efbd6776104c4631b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/android/androiddevice.cpp')
-rw-r--r--src/plugins/android/androiddevice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/android/androiddevice.cpp b/src/plugins/android/androiddevice.cpp
index 4881abb5ba..4a96b1ccc2 100644
--- a/src/plugins/android/androiddevice.cpp
+++ b/src/plugins/android/androiddevice.cpp
@@ -651,11 +651,11 @@ void AndroidDeviceManager::setupDevicesWatcher()
// Setup AVD filesystem watcher to listen for changes when an avd is created/deleted,
// or started/stopped
- QString avdEnvVar = qEnvironmentVariable("ANDROID_AVD_HOME");
+ QString avdEnvVar = qtcEnvironmentVariable("ANDROID_AVD_HOME");
if (avdEnvVar.isEmpty()) {
- avdEnvVar = qEnvironmentVariable("ANDROID_SDK_HOME");
+ avdEnvVar = qtcEnvironmentVariable("ANDROID_SDK_HOME");
if (avdEnvVar.isEmpty())
- avdEnvVar = qEnvironmentVariable("HOME");
+ avdEnvVar = qtcEnvironmentVariable("HOME");
avdEnvVar.append("/.android/avd");
}
const FilePath avdPath = FilePath::fromUserInput(avdEnvVar);