Keyboard failure in Intellij Idea in Ubuntu environment

http://blog.csdn.net/dslztx/article/details/46700165

 

 

Description of the problem:
In the Ubuntu environment, the keyboard in Intellij Idea fails, that is, there is no response when any key is pressed.
Normal operation is possible with the mouse.


Solution:
In Ubuntu environment, IBUS software is installed by default, this problem is caused by IBUS.
Then the solution is to not use IBUS in the idea. We can use the "XMODIFIERS" environment variable
to define the variable as follows:
To use XIM (X input method) server, users should set XMODIFIERS 
environment variable. 
For example, to use "ibus", users should set like 'XMODIFIERS="@im=ibus"'. 


If you don't need to use the Chinese input method, you can now set "XMODIFIERS=idea.sh", and then add the above line setting statement to the "Run the IDE." statement in the idea.sh script.

If you need to use the Chinese input method, you can now set "XMODIFIERS="@im=fcitx"", and then add the above line setting statement to the "Run the IDE." statement in the idea.sh script.



The set content of idea.sh is as follows:

 

 

[plain]  view plain  copy
 
  1. XMODIFIERS=idea.sh #add this line  
  2. export XMODIFIERS  #add this line too  
  3.   
  4.   
  5. # ---------------------------------------------------------------------  
  6. # Run the IDE.  
  7. # ---------------------------------------------------------------------  
  8. while true ; do  
  9.   eval "$JDK/bin/java" $ALL_JVM_ARGS -Djb.restart.code=88 $MAIN_CLASS_NAME "$@"  
  10.   test $? -ne 88 && break  
  11. done  

 

 

 

 

 

http://blog.csdn.net/a__yes/article/details/51249077

Recently upgraded from Ubuntu14.04 to Ubuntu16.04, I can't switch the Sogou input method under IDEA, and I can't input Chinese. I can check it. The Internet says that Ibus can be used, but I used to use Sogou. Later, I found a solution.

Solution

Add in front of the idea.sh file in IDEA's bin directory

export XMODIFIERS = @im = fcitx

export QT_IM_MODULE=fcitx

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327099616&siteId=291194637