aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4133b9f..1cbafeb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -67,7 +67,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
}
try {
- setenv("QT_IM_MODULE", "qtvirtualkeyboard", 1);
+ qputenv("QT_IM_MODULE", "qtvirtualkeyboard");
// this is needed for both WebEngine and Wayland Multi-screen rendering
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
#if !defined(QT_NO_SESSIONMANAGER)