Changeset View
Changeset View
Standalone View
Standalone View
greeter/main.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 67 | #if HAVE_PROC_TRACE_CTL | |||
---|---|---|---|---|---|
68 | int mode = PROC_TRACE_CTL_DISABLE; | 68 | int mode = PROC_TRACE_CTL_DISABLE; | ||
69 | procctl(P_PID, getpid(), PROC_TRACE_CTL, &mode); | 69 | procctl(P_PID, getpid(), PROC_TRACE_CTL, &mode); | ||
70 | #endif | 70 | #endif | ||
71 | 71 | | |||
72 | KLocalizedString::setApplicationDomain("kscreenlocker_greet"); | 72 | KLocalizedString::setApplicationDomain("kscreenlocker_greet"); | ||
73 | 73 | | |||
74 | // explicitly disable input methods as it makes it impossible to unlock, see BUG 306932 | 74 | // explicitly disable input methods as it makes it impossible to unlock, see BUG 306932 | ||
75 | // but explicitly set on screen keyboard such as maliit is allowed | 75 | // but explicitly set on screen keyboard such as maliit is allowed | ||
76 | if (qEnvironmentVariableIsSet("QT_IM_MODULE") && qgetenv("QT_IM_MODULE") != QByteArrayLiteral("maliit")) { | 76 | if (!qEnvironmentVariableIsSet("QT_IM_MODULE") || (qEnvironmentVariableIsSet("QT_IM_MODULE") && qgetenv("QT_IM_MODULE") != QByteArrayLiteral("maliit"))) { | ||
77 | qputenv("QT_IM_MODULE", QByteArrayLiteral("compose")); | 77 | qputenv("QT_IM_MODULE", QByteArrayLiteral("qtvirtualkeyboard")); | ||
78 | } | 78 | } | ||
79 | ScreenLocker::UnlockApp app(argc, argv); | 79 | ScreenLocker::UnlockApp app(argc, argv); | ||
80 | app.setQuitOnLastWindowClosed(false); | 80 | app.setQuitOnLastWindowClosed(false); | ||
81 | QCoreApplication::setApplicationName(QStringLiteral("kscreenlocker_greet")); | 81 | QCoreApplication::setApplicationName(QStringLiteral("kscreenlocker_greet")); | ||
82 | QCoreApplication::setApplicationVersion(QStringLiteral("0.1")); | 82 | QCoreApplication::setApplicationVersion(QStringLiteral("0.1")); | ||
83 | QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org")); | 83 | QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org")); | ||
84 | 84 | | |||
85 | // disable session management for the greeter | 85 | // disable session management for the greeter | ||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |