When trying to launch Minecraft, you may notice that the key-input is not working properly, leading to a character that cannot move but only interact with blocks around him.
This issue is related to ibus, which is used as a character input client for Chinese, Japanese and Korean among others.
In order to solve that, you need to kill ibus during the time Minecraft is launched.
I think you already downloaded the game client minecraft.jar from dedicated website. Then save it in a folder called $FOLDER. Here $FOLDER=$HOME/bin/java.
Then use this script to launch minecraft.
#!/bin/bash
#Minecraft launcher
#This is here to solve issues with key input in linux systems
#Kill the ibus daemon
killall ibus-daemon
#Launch minecraft
java -Xmx1024M -Xms512M -cp $HOME/bin/java/minecraft.jar net.minecraft.LauncherFrame &
MINECRAFT_PID=$!
sleep 1
#Then wait for minecraft to finish before relaunching ibus.
ibus-daemon -d
wait $MINECRAFT_PID
You can still use character input as normal in other windows or terminals.
What is also possible is to create an application launcher on a panel launching this script, and then you can directly launch minecraft without going through a terminal.
this is a bad solution. use
sudo java -jar minecraft.jar
There, keyboard problems with ibus solved!
Launching a software like this as root is really dangerous for your system. The only reason why your solution works is that root is not using any ibus daemon when its session begins. By the way, you should absolutely avoid to launch a jar under root name, you have huge security risks for your system.
Very usefull tip! I did not used the script once I think don’t need this thing ibus in day-to-day works, so I just disabled it. Thank you very much!
Oh, and using root can be a dangerous thing.