nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 32 lines 1.5 kB view raw
1diff --git a/QtScrcpy/main.cpp b/QtScrcpy/main.cpp 2index a24ba60..51e3d76 100644 3--- a/QtScrcpy/main.cpp 4+++ b/QtScrcpy/main.cpp 5@@ -27,27 +27,16 @@ 6 { 7 // set env 8 #ifdef Q_OS_WIN32 9- qputenv("QTSCRCPY_ADB_PATH", "../../../QtScrcpy/QtScrcpyCore/src/third_party/adb/win/adb.exe"); 10- qputenv("QTSCRCPY_SERVER_PATH", "../../../QtScrcpy/QtScrcpyCore/src/third_party/scrcpy-server"); 11 qputenv("QTSCRCPY_KEYMAP_PATH", "../../../keymap"); 12 qputenv("QTSCRCPY_CONFIG_PATH", "../../../config"); 13 #endif 14 15 #ifdef Q_OS_OSX 16- qputenv("QTSCRCPY_ADB_PATH", "../../../../../../QtScrcpy/QtScrcpyCore/src/third_party/adb/mac/adb"); 17- qputenv("QTSCRCPY_SERVER_PATH", "../../../../../../QtScrcpy/QtScrcpyCore/src/third_party/scrcpy-server"); 18 qputenv("QTSCRCPY_KEYMAP_PATH", "../../../../../../keymap"); 19 qputenv("QTSCRCPY_CONFIG_PATH", "../../../../../../config"); 20 #endif 21 22 #ifdef Q_OS_LINUX 23- // Only set environment variables if they are not already set (e.g., by AppImage AppRun) 24- if (qgetenv("QTSCRCPY_ADB_PATH").isEmpty()) { 25- qputenv("QTSCRCPY_ADB_PATH", "../../../QtScrcpy/QtScrcpyCore/src/third_party/adb/linux/adb"); 26- } 27- if (qgetenv("QTSCRCPY_SERVER_PATH").isEmpty()) { 28- qputenv("QTSCRCPY_SERVER_PATH", "../../../QtScrcpy/QtScrcpyCore/src/third_party/scrcpy-server"); 29- } 30 if (qgetenv("QTSCRCPY_KEYMAP_PATH").isEmpty()) { 31 qputenv("QTSCRCPY_KEYMAP_PATH", "../../../keymap"); 32 }