欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

解决Ubuntu键盘输入延迟问题的双重保险方法

最编程 2024-01-24 19:33:39
...

方案一:桌面app,双击重启ibus

  1. 在桌面创建一个文件fix_ibus.desktop, 然后编辑如下配置
[Desktop Entry]
Name = restart_ibus
Exec = /home/ice/shells/fixibus.sh
Icon = /home/ice/Pictures/Pictures/logos/fix_ibus.jpg
Type = Application
  1. 脚本fixibus.sh内容如下
#!/bin/bash
ibus-daemon -r -d -x
  1. 设置允许双击运行,右键fix_ibus.desktop的桌面图表,选择allow launching就可以双击运行了

方案二:cron 定时每5分钟执行一次重启脚本

  1. 在/etc/cron.d 目录下创建一个文件restart_ibus,并编辑如下内容
SHELL=/bin/sh

*/5 * * * * ice /home/ice/shells/fixibus.sh