Possible missing of environment variables for drun started process #2079
-
I am using rofi at archlinux, possible last update at 2025-01-04 19:45 UTC cause telegram-desktop ui font wired and cannot use IME(input method). It is easy to suspect missing of environment variable for IME, such as But for font selection problem I have no idea about it. Maybe the way of starting process used by rofi have changed, but I could not find that, so I make a new discussion here for help. And I wonder why systemd exec appear here. FYI, I have simplily compared environment of application started by xfce menu and rofi: --- tg-xfce.txt 2025-01-10 16:26:55.803124282 +0800
+++ tg-rofi.txt 2025-01-10 16:27:34.466698716 +0800
@@ -1,32 +1,21 @@
-CUDA_PATH=/opt/cuda
-DBUS_SESSION_BUS_ADDRESS=***
-DEBUGINFOD_URLS=https://debuginfod.archlinux.org
+DBUS_SESSION_BUS_ADDRESS=***
+DBUS_STARTER_ADDRESS=***
+DBUS_STARTER_BUS_TYPE=session
DESKTOP_SESSION=xfce
-DISPLAY=:0.0
-EDITOR=/usr/bin/vim
-GTK_IM_MODULE=fcitx
-GTK_MODULES=canberra-gtk-module:canberra-gtk-module
-HG=/usr/bin/hg
+DISPLAY=:0
HOME=/home/<myname>
-LANG=zh_CN.UTF-8
-LANGUAGE=zh_CN:en_US:C
-LC_COLLATE=C
-LC_TIME=C
+LANG=en_US.UTF-8
LOGNAME=<myname>
MAIL=***
-MOTD_SHOWN=***
-NVCC_CCBIN=/usr/bin/g++-13
-PANEL_GDK_CORE_DEVICE_EVENTS=***
-PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
-PWD=/home/<myname>
-QT_IM_MODULE=fcitx
-QT_LOGGING_RULES=*=false
-SESSION_MANAGER=***
+MANAGERPID=***
+MEMORY_PRESSURE_WATCH=***
+MEMORY_PRESSURE_WRITE=***
+PATH=/usr/local/bin:/usr/bin
SHELL=/bin/bash
-SHLVL=***
-SSH_AGENT_PID=***
SSH_AUTH_SOCK=***
+SYSTEMD_EXEC_PID=***
USER=<myname>
+XAUTHLOCALHOSTNAME=
XAUTHORITY=***
XDG_CACHE_HOME=/home/<myname>/.cache
XDG_CONFIG_DIRS=/etc/xdg
@@ -42,5 +31,3 @@
XDG_SESSION_ID=***
XDG_SESSION_PATH=***
XDG_SESSION_TYPE=x11
-XDG_VTNR=***
-XMODIFIERS=@im=fcitx |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It now launches desktop files that indicate this via DBusActivation, this might change how things are launched and with what environment. |
Beta Was this translation helpful? Give feedback.
It now launches desktop files that indicate this via DBusActivation, this might change how things are launched and with what environment.
This seems to be more 'correct' and fixes some issues of launching desktop files without 'Exec' field.
In the next release an option to disable this exists.