move env to systemd environment
This commit is contained in:
parent
3731cde5d7
commit
f01b500204
3
environment.d/im.conf
Normal file
3
environment.d/im.conf
Normal file
@ -0,0 +1,3 @@
|
||||
XMODIFIERS=@im=fcitx
|
||||
GTK_IM_MODULE=fcitx
|
||||
QT_IM_MODULE=fcitx
|
@ -1,12 +1,15 @@
|
||||
[Unit]
|
||||
Description=fcitx input daemon
|
||||
StartLimitIntervalSec=0
|
||||
PartOf=graphical-session.target
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
ExecStartPre=/bin/sleep 1
|
||||
ExecStart=/usr/bin/fcitx5 -D -r --keep
|
||||
Environment=GTK_IM_MODULE=fcitx XMODIFIERS="@im=fcitx" QT_IM_MODULE=fcitx
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
|
Loading…
x
Reference in New Issue
Block a user