mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-10 17:47:42 +00:00
Merge pull request #7192 from keymanapp/chore/linux/postinst
chore(linux): Fix ibus-keyman.postinst script
This commit is contained in:
commit
369ef3d152
1 changed files with 2 additions and 2 deletions
|
|
@ -37,8 +37,8 @@ case "$1" in
|
|||
fi
|
||||
|
||||
# Verify that it's running now
|
||||
if [ ! -z $SUDO_USER ]; then
|
||||
! ibusdaemon=`ps --user $SUDO_USER -o s= -o cmd | grep --regexp="^[^ZT] ibus-daemon .*--xim.*"`
|
||||
if [ ! -z $SUDO_USER ] && id $SUDO_USER > /dev/null 2>/dev/null; then
|
||||
! ibusdaemon=$(ps --user $SUDO_USER -o s= -o cmd | grep --regexp="^[^ZT] ibus-daemon .*--xim.*")
|
||||
if [ "x$ibusdaemon" = "x" ]; then
|
||||
# otherwise try to start it for the user installing the package
|
||||
if [ "x$is_gnome_shell" = "x1" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue