ibus: name the address file as libibus does under Wayland
libibus looks for the file under WAYLAND_DISPLAY when a session has one, DISPLAY only otherwise; strans always used DISPLAY, so in a Wayland session it wrote <machine-id>-unix-0 while every IBus client looked for <machine-id>-unix-wayland-0 and found nothing. The machine id now comes from D-Bus's copy first, as libibus reads it, and a host with neither file gets libibus's own "machine-id" rather than a daemon that dies.
This commit is contained in:
@@ -147,7 +147,8 @@ caller's standard error. A service supervisor should instead run
|
||||
`XDG_RUNTIME_DIR` and `DISPLAY`: the GTK module finds the daemon at
|
||||
`$XDG_RUNTIME_DIR/strans.sock` (else `/tmp/strans.UID`), and IBus clients
|
||||
through the address file libibus expects under `~/.config/ibus/bus/`,
|
||||
which strans writes as `ibus-daemon` would.
|
||||
which strans writes as `ibus-daemon` would, named after `WAYLAND_DISPLAY`
|
||||
when there is one and `DISPLAY` otherwise.
|
||||
|
||||
The build does not copy or install the daemon or its data. `./strans DIR`
|
||||
opens `hira.map`, `kata.map`, `telex.map`, `kanji.dict`, `emoji.dict`, and
|
||||
|
||||
Reference in New Issue
Block a user