View Single Post
  #7   (View Single Post)  
Old 26th December 2022
sacerdos_daemonis's Avatar
sacerdos_daemonis sacerdos_daemonis is offline
Real Name: Will forever be a secret.
Spam Deminer
 
Join Date: Sep 2014
Posts: 283
Default

Quote:
Originally Posted by J65nko View Post
I never used this software but I wondered about the .xprofile:


I only encountered .profile files but never .xprofile ones
Thanks for catching that. I was not sure if .xprofile is Linux-specific and is the equivalent of OpenBSD's .profile.



I have not had an abundance of time recently to play around with this issue, so things have moved slowly. I have experimented with fctix, UIM and Ibus. They all have the same behaviour. Without hacking they open but will not change input method. If I add modifiers to .xinitrc or .profile they will either remain unchanged or, especially fcitx, not launch at all.

When I get around to it, the next step will be to experiment with changing locale to UTF-8.

There is also the real possibility that I am not putting the modifiers in the correct place.
With .profile I just added modifiers to the end of the file.
Code:
# $OpenBSD: dot.profile,v 1.8 2022/08/10 07:40:37 tb Exp $
#
# sh/ksh initialization

PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
export PATH HOME TERM
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
/usr/local/bin/fcitx5 &
With .xinitrc I assume the modifiers would go in the section "start some nice programmes", but I am probably mistaken.
Code:
# start some nice programs
exec i3
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
/usr/local/bin/fcitx5 &
if [ "$SSH_AGENT_PID" ]; then
    ssh-add -D < /dev/null
    eval `ssh-agent -s -k`
fi
Probably in the wrong place. My hacking skills are woeful.
Reply With Quote