Merge pull request #532 from luco5826/master

Fix environment GTK_IM_MODULE check
presentation
Luca Errani 7 years ago committed by GitHub
commit 9627d46bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/control/XournalMain.cpp

@ -262,9 +262,10 @@ int XournalMain::run(int argc, char* argv[])
{
return exportPdf(*optFilename, pdfFilename);
}
// Checks for input method compatibility
if(strcmp(g_getenv("GTK_IM_MODULE"), "xim") == 0)
if(g_getenv("GTK_IM_MODULE") != NULL && strcmp(g_getenv("GTK_IM_MODULE"), "xim") == 0)
{
g_setenv("GTK_IM_MODULE", "ibus", true);
g_warning("Unsupported input method: xim, changed to: ibus");

Loading…
Cancel
Save