mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-07 01:15:33 +00:00
1. Fcitx does not need restart to load newly installed keyman keyboard 2. Restart fcitx may cause issue on kwin/weston Wayland where input method have to be spawned by compositor process.
14 lines
260 B
Python
14 lines
260 B
Python
import subprocess
|
|
|
|
import dbus
|
|
|
|
|
|
def is_fcitx_running():
|
|
try:
|
|
for service in dbus.SessionBus().list_names():
|
|
if service == 'org.fcitx.Fcitx5':
|
|
return True
|
|
return False
|
|
except Exception:
|
|
return False
|
|
|