Changeset View
Changeset View
Standalone View
Standalone View
kaccess/main.cpp
Show All 35 Lines | 31 | { | |||
---|---|---|---|---|---|
36 | K4AboutData about(I18N_NOOP("kaccess"), 0, ki18n("KDE Accessibility Tool"), | 36 | K4AboutData about(I18N_NOOP("kaccess"), 0, ki18n("KDE Accessibility Tool"), | ||
37 | 0, KLocalizedString(), K4AboutData::License_GPL, | 37 | 0, KLocalizedString(), K4AboutData::License_GPL, | ||
38 | ki18n("(c) 2000, Matthias Hoelzer-Kluepfel")); | 38 | ki18n("(c) 2000, Matthias Hoelzer-Kluepfel")); | ||
39 | 39 | | |||
40 | about.addAuthor(ki18n("Matthias Hoelzer-Kluepfel"), ki18n("Author") , "hoelzer@kde.org"); | 40 | about.addAuthor(ki18n("Matthias Hoelzer-Kluepfel"), ki18n("Author") , "hoelzer@kde.org"); | ||
41 | 41 | | |||
42 | KCmdLineArgs::init(argc, argv, &about); | 42 | KCmdLineArgs::init(argc, argv, &about); | ||
43 | 43 | | |||
44 | //this application is currently only relevant on X, force to run under X | ||||
45 | //note if someone does port this we still need to run kaccess under X for xwayland apps | ||||
46 | setenv("QT_QPA_PLATFORM", "xcb", true); | ||||
47 | | ||||
44 | if (!KAccessApp::start()) | 48 | if (!KAccessApp::start()) | ||
45 | return 0; | 49 | return 0; | ||
46 | 50 | | |||
47 | // verify the Xlib has matching XKB extension | 51 | // verify the Xlib has matching XKB extension | ||
48 | int major = XkbMajorVersion; | 52 | int major = XkbMajorVersion; | ||
49 | int minor = XkbMinorVersion; | 53 | int minor = XkbMinorVersion; | ||
50 | if (!XkbLibraryVersion(&major, &minor)) { | 54 | if (!XkbLibraryVersion(&major, &minor)) { | ||
51 | kError() << "Xlib XKB extension does not match" << endl; | 55 | kError() << "Xlib XKB extension does not match" << endl; | ||
Show All 29 Lines |