Lack of an application similar to gnome-startup-applications
in Ubuntu WSL affects the use of ibus
#483
Labels
enhancement
New feature or request
Description
gnome-startup-applications
in Ubuntu WSL affects the use ofibus
.ibus-daemon
if they need to use IMEs such as ibus under WSLg. Assuming there is a freshly installed Ubuntu WSL 22.04 instance, to useibus
inmicrosoft-edge
, the steps look like the following.microsoft-edge
running under WSLg.ibus
requires anibus-daemon
process to be started in the background. Executeibus-daemon -dxr
to ensure that a globally uniqueibus-daemon
process is started and runs in the background. But the problem is that before opening any application under WSLg, you need to ensure thatibus-daemon -dxr
has been executed once in the Ubuntu WSL Shell.wsl --shutdown
in PowerShell 7, then open a new Ubuntu WSL Shell and executeibus-setup
once. At this time,ibus-setup
will prompt you thatibus-daemon
is not started at all.ibus
, it is often necessary to perform two steps. Take gnome-text-editor as an example.gnome-startup-applications
to executeibus-daemon -dxr
before starting the desktop. And Ubuntu 22.04 Desktop does not need to do this at all, because under the Gnome desktop,ibus
is out of the box. Refer to https://askubuntu.com/questions/48321/how-do-i-start-applications-automatically-on-login .gnome-startup-applications
is useful because there is no Gnome standard desktop environment at all. I think the current Ubuntu WSL lacks a mechanism to automatically execute a command likeibus-daemon -dxr
in the background when the WSL distribution is running. I can confirm that executingecho "ibus-daemon -drx > /dev/null 2>&1" >> /etc/profile.d/ibus.sh
to writeibus-daemon -drx
to/etc/profile.d/ibus.sh
has little to no effect for Ubuntu WSL.Need and use case
ibus-daemon
can always be automatically started when WSL is running.ibus-daemon
, which can directly register the relatedibus-daemon
command as a systemd service throughsystemctl start ibus@$DISPLAY.service
. Arch Linux also provides an AUR package namedibus-autostart
, which can automatically start the relatedibus-daemon
command in scenarios such as bootup/shutdown, user login/logout, device plug in/unplug, time events, filesystem events, shell login/logout, Xorg startup, desktop environment startup, and window manager startup. Refer to https://wiki.archlinux.org/title/Autostarting .Additional information
ibus
as IME viaim-config
#450 , Is it possible to set the IME via im-config instead of environment variables? WhitewaterFoundry/pengwin-setup#385 and Installing gnome-text-editor via WSL, can't bring up the input bar of ibus gnome-text-editor#9 .The text was updated successfully, but these errors were encountered: