Skip to content

Commit

Permalink
IBUS_DAEMON_COMMAND can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 4, 2024
1 parent 440a182 commit 12289c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xpra/server/mixins/child_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,10 @@ def guess_session_name(self, procs=None) -> None:
if not procs:
return
from xpra.scripts.server import IBUS_DAEMON_COMMAND # pylint: disable=import-outside-toplevel
ibus_daemon_cmd = shlex.split(IBUS_DAEMON_COMMAND)[0] or "ibus-daemon"
if IBUS_DAEMON_COMMAND:
ibus_daemon_cmd = shlex.split(IBUS_DAEMON_COMMAND)[0] or "ibus-daemon"
else:
ibus_daemon_cmd = ""
#use the commands to define the session name:
self.child_reaper.poll()
cmd_names = []
Expand All @@ -361,7 +364,7 @@ def guess_session_name(self, procs=None) -> None:
cmd = cmd[l:]
elif len(cmd)>1 and cmd[0] in ("vglrun", "nohup",):
cmd.pop(0)
if cmd[0]==ibus_daemon_cmd:
if ibus_daemon_cmd and cmd[0]==ibus_daemon_cmd:
continue
bcmd = os.path.basename(cmd[0])
if bcmd not in cmd_names:
Expand Down

0 comments on commit 12289c1

Please sign in to comment.