Bash unable to set environment_variable about fcitx5

question

environment_variable in ~/.bash_profile not work?

background

According to Fcitx5, I install fcitx5-im fcitx5-chinese-addons and their depends.

Next step is set environment_variable, according to Environment_variables, I should edit ~/.bash_profile

#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

# fcitx5
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx

So reboot and environment_variables will take affect, however, they do not. For example, I can type Chinese in Firefox,VS Codium. But I can not type Chinese in Kwrite,Dolphin,Pamac,WPS. Copy and paste Chinese character work in Kwrite,Dolphin,Pamac,WPS.

So I doubt that it is environment_variables and it is indeed

steps to doubt environment_variables

$ export | grep QT_IM_MODULE
$ cat ~/.bash_profile 
#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

# fcitx5
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus

$ source ~/.bash_profile 
$ export | grep QT_IM_MODULE
$ # nothing output!!!

$ export QT_IM_MODULE=fcitx
$ export | grep QT_IM_MODULE
declare -x QT_IM_MODULE="fcitx"
$ et  # WPS Excel, now I can input Chinese

system info

$ inxi --admin --verbosity=7 --filter --width
System:
Kernel: 5.15.65-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
root=UUID=5d6e2a51-4876-44ba-9f6e-acc3e0bf2767 rw quiet
udev.log_priority=3
Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.5 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 82DM v: Lenovo XiaoXinPro-13ARE 2020
Chassis: type: 10 v: Lenovo XiaoXinPro-13ARE
2020
Mobo: LENOVO model: LNVNB161216 v: SDK0L77769WIN
UEFI: LENOVO v: F0CN36WW date: 05/16/2022
Battery:
ID-1: BAT0 charge: 49.0 Wh (100.0%)
volts: 12.9 min: 11.5 model: SMP L19M3PD3 type: Li-poly
status: full cycles: 247
Memory:
RAM: total: 14.99 GiB used: 3.67 GiB (24.5%)
RAM Report: permissions: Unable to run dmidecode. Root privileges
required.
CPU:
Info: model: AMD Ryzen 5 4600U with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 2 gen: 3 level: v3 built: 2020-22 process: TSMC n7 (7nm)
family: 0x17 (23) model-id: 0x60 (96) stepping: 1 microcode: 0x8600106
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 8 MiB
desc: 2x4 MiB
Speed (MHz): avg: 1507 high: 2292 min/max: 1400/2100 boost: disabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1397 2: 1397
3: 2292 4: 1587 5: 1565 6: 1397 7: 1397 8: 1474 9: 1397 10: 1397 11: 1398
12: 1392 bogomips: 50320
Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid
f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs
irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe
msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae
pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
pfthreshold pge pni popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a
rdtscp rep_good sep sha_ni skinit smap smca smep ssbd sse sse2 sse4_1
sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce topoext tsc
tsc_scale umip v_spec_ctrl v_vmsave_vmload vgif vmcb_clean vme vmmcall
wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
protection
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
always-on, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5.1
code: Vega-2 process: TSMC n7 (7nm) built: 2018-21 pcie: gen: 4
speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1,DP-2
bus-ID: 03:00.0 chip-ID: 1002:1636 class-ID: 0300
Device-2: Chicony Integrated Camera type: USB driver: uvcvideo
bus-ID: 3-2:2 chip-ID: 04f2:b67c class-ID: 0e02
Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa gpu: amdgpu
display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1600 s-dpi: 96 s-size: 677x423mm (26.65x16.65")
s-diag: 798mm (31.43")
Monitor-1: eDP-1 mapped: eDP model-id: CSO 0x076d built: 2019
res: 2560x1600 hz: 60 dpi: 227 gamma: 1.2 size: 286x179mm (11.26x7.05")
diag: 337mm (13.3") ratio: 16:10 modes: max: 2560x1600 min: 640x480
OpenGL: renderer: AMD RENOIR (LLVM 14.0.6 DRM 3.42 5.15.65-1-MANJARO) v: 4.6
Mesa 22.1.7 direct render: Yes
Audio:
Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 03:00.1 chip-ID: 1002:1637 class-ID: 0403
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: N/A
alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x pcie: gen: 4
speed: 16 GT/s lanes: 16 bus-ID: 03:00.5 chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 03:00.6
chip-ID: 1022:15e3 class-ID: 0403
Sound Server-1: ALSA v: k5.15.65-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.21 running: no
Sound Server-3: PulseAudio v: 16.1 running: yes
Sound Server-4: PipeWire v: 0.3.57 running: yes
Network:
Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
vendor: Lenovo driver: rtw_8822ce v: N/A modules: rtw88_8822ce pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 01:00.0 chip-ID: 10ec:c822
class-ID: 0280
IF: wlp1s0 state: up mac:
IP v4: type: dynamic noprefixroute scope: global
broadcast:
IP v6: type: noprefixroute scope: link
WAN IP:
Bluetooth:
Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
bus-ID: 1-4:2 chip-ID: 0bda:c123 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Logical:
Message: No logical block device data found.
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 476.94 GiB used: 208.09 GiB (43.6%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: PC SN730
SDBPNTY-512G-1101 size: 476.94 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD
rev: 11130001 temp: 36.9 C scheme: GPT
Message: No optical or floppy data found.
Partition:
ID-1: / raw-size: 40 GiB size: 39.08 GiB (97.69%) used: 13.42 GiB (34.4%)
fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 label: root
uuid: 5d6e2a51-4876-44ba-9f6e-acc3e0bf2767
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) used: 103.5 MiB
(40.4%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: SYSTEM_DRV
uuid: 92C4-DD2F
ID-3: /home raw-size: 80 GiB size: 78.19 GiB (97.74%) used: 815 MiB (1.0%)
fs: ext4 dev: /dev/nvme0n1p4 maj-min: 259:4 label: N/A
uuid: a3a2ba69-8213-4723-ba8d-b4b8470dd7eb
ID-4: /run/media/kearney/a raw-size: 235.67 GiB size: 231.41 GiB (98.19%)
used: 193.77 GiB (83.7%) fs: ext4 dev: /dev/nvme0n1p3 maj-min: 259:3
label: a uuid: 3409b138-e5fc-412d-b1d5-bfb236f93257
Swap:
Alert: No swap data was found.
Unmounted:
ID-1: /dev/nvme0n1p5 maj-min: 259:5 size: 55 GiB fs: ntfs label: C
uuid: 0AB232A4B2329463
ID-2: /dev/nvme0n1p6 maj-min: 259:6 size: 65.98 GiB fs: ntfs label: D
uuid: 127AE7467AE72567
USB:
Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 1-4:2 info: Realtek Bluetooth Radio type: Bluetooth
driver: btusb interfaces: 2 rev: 1.0 speed: 12 Mb/s power: 500mA
chip-ID: 0bda:c123 class-ID: e001
Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 3-2:2 info: Chicony Integrated Camera type: Video
driver: uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA
chip-ID: 04f2:b67c class-ID: 0e02
Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
System Temperatures: cpu: 49.2 C mobo: N/A gpu: amdgpu temp: 43.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 302 Uptime: 2h 48m wakeups: 1 Init: systemd v: 251
default: graphical tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6
Packages: pm: pacman pkgs: 1235 libs: 318 tools: pamac pm: flatpak pkgs: 0
Shell: Bash v: 5.1.16 running-in: codium inxi: 3.3.21

</details>

my fault.
that is it

#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc
# fcitx5
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export SDL_IM_MODULE=fcitx
export GLFW_IM_MODULE=ibus

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.