keyman
keyman copied to clipboard
feat(linux): Allow to install/uninstall keyboards if DBus is not started
Currently, when trying to install a keyboard for a different user the installation might fail with failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
.
To reproduce:
su --login otheruser
km-package-install -p sil_ipa
A workaround is to run export $(dbus-launch)
first which sets the environment variables DBUS_SESSION_BUS_ADDRESS
and DBUS_SESSION_BUS_PID
.
It should be possible to detect in km-package-install
/km-package-uninstall
if those variables are not set and run dbus-launch
.
Sentry issue: KEYMAN-LINUX-54
Sentry issue: KEYMAN-LINUX-57
Sentry issue: KEYMAN-LINUX-5F
Should test KEYMAN-LINUX-5F (and KEYMAN-LINUX-57) as well after this is fixed - possibly same reason.
Implemented by #10863.