You are not logged in.

#1 2021-09-16 23:59:50

lansu
Member
Registered: 2021-09-16
Posts: 5

.xprofile not being sourced. Trying to use nabi to type Korean.

Hi,

I installed nabi in order to type in Korean.  I created ~/.xprofile (included below) with the 6 lines the wiki instructed me to add, as well as the lines to map the right Alt key.  I added the following code in ~/.xinitrc and /etc/X11/xinit/xinitrc (both included below) as instructed by the wiki:

[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile

After starting, nabi wasn't working.  I am not sure what I did wrong.  Any help would be greatly appreciated.

Here is /etc/X11/xinit/xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
~

Here is ~/.xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile

exec cinnamon-session
# xfwm4 &
# xclock -geometry 50x50-1+1 &
# xterm -geometry 80x50+494+51 &
# xterm -geometry 80x20+494-0 &
# exec xterm -geometry 80x66+0+0 -name login

Here is ~/.xprofile

export XIM=nabi
export XIM_ARGS=
export XIM_PROGRAM="nabi"
export XMODIFIERS="@im=nabi"
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
xmodmap -e 'remove mod1 = Alt_R'
xmodmap -e 'keycode 108 = Hangul'
xmodmap -e 'remove control = Control_R'
xmodmap -e 'keycode 105 = Hangul_Hanja'

Offline

#2 2021-09-17 05:51:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,261

Re: .xprofile not being sourced. Trying to use nabi to type Korean.

How do you start your session?
If the answer isn't either of "startx, xinit or xdm" your xinitrc is likely irrelevant (certainly most DMs don't use it by default).

If your xinitrc is actuallly used, check whether "nabi wasn't working" indeed means "xprofile isn't used"

echo $XIM

Online

#3 2021-09-17 06:33:04

lansu
Member
Registered: 2021-09-16
Posts: 5

Re: .xprofile not being sourced. Trying to use nabi to type Korean.

Hey, thanks for the reply.  I do use "startx" to start my session.

Here is the text from xterm.

[lance@archlinux ~]$ echo $XIM
nabi
[lance@archlinux ~]$ 

Sorry I falsely equated.  I now realize they could be completely different statements.

Last edited by lansu (2021-09-17 06:36:58)

Offline

#4 2021-09-17 07:02:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,261

Re: .xprofile not being sourced. Trying to use nabi to type Korean.

https://wiki.archlinux.org/title/Locali … ut_methods

pacman -Qilkk nabi-git
ps aux | grep nabi

Online

#5 2021-09-17 08:17:09

lansu
Member
Registered: 2021-09-16
Posts: 5

Re: .xprofile not being sourced. Trying to use nabi to type Korean.

[lance@archlinux ~]$ pacman -Qilkk nabi-git
Name            : nabi-git
Version         : 20191004.788.58a538d-1
Description     : Nabi - The Easy Hangul XIM
Architecture    : x86_64
URL             : http://code.google.com/p/nabi/
Licenses        : GNU GPL v2
Groups          : None
Provides        : nabi
Depends On      : gtk2  libhangul>=0.1.0
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : nabi
Replaces        : None
Installed Size  : 1049.47 KiB
Packager        : Unknown Packager
Build Date      : Thu Sep 16 12:09:08 2021
Install Date    : Thu Sep 16 12:09:26 2021
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

nabi-git /usr/
nabi-git /usr/bin/
nabi-git /usr/bin/nabi
nabi-git /usr/share/
nabi-git /usr/share/locale/
nabi-git /usr/share/locale/de/
nabi-git /usr/share/locale/de/LC_MESSAGES/
nabi-git /usr/share/locale/de/LC_MESSAGES/nabi.mo
nabi-git /usr/share/locale/ko/
nabi-git /usr/share/locale/ko/LC_MESSAGES/
nabi-git /usr/share/locale/ko/LC_MESSAGES/nabi.mo
nabi-git /usr/share/nabi/
nabi-git /usr/share/nabi/keyboard_layouts
nabi-git /usr/share/nabi/nabi-about.png
nabi-git /usr/share/nabi/nabi.png
nabi-git /usr/share/nabi/nabi.svg
nabi-git /usr/share/nabi/symbol.txt
nabi-git /usr/share/nabi/themes/
nabi-git /usr/share/nabi/themes/Jini/
nabi-git /usr/share/nabi/themes/Jini/README
nabi-git /usr/share/nabi/themes/Jini/english.png
nabi-git /usr/share/nabi/themes/Jini/english.svg
nabi-git /usr/share/nabi/themes/Jini/hangul.png
nabi-git /usr/share/nabi/themes/Jini/hangul.svg
nabi-git /usr/share/nabi/themes/Jini/none.png
nabi-git /usr/share/nabi/themes/Jini/none.svg
nabi-git /usr/share/nabi/themes/KingSejong/
nabi-git /usr/share/nabi/themes/KingSejong/README
nabi-git /usr/share/nabi/themes/KingSejong/english.png
nabi-git /usr/share/nabi/themes/KingSejong/hangul.png
nabi-git /usr/share/nabi/themes/KingSejong/none.png
nabi-git /usr/share/nabi/themes/KingSejong2/
nabi-git /usr/share/nabi/themes/KingSejong2/README
nabi-git /usr/share/nabi/themes/KingSejong2/english.png
nabi-git /usr/share/nabi/themes/KingSejong2/hangul.png
nabi-git /usr/share/nabi/themes/KingSejong2/none.png
nabi-git /usr/share/nabi/themes/Onion/
nabi-git /usr/share/nabi/themes/Onion/README
nabi-git /usr/share/nabi/themes/Onion/english.png
nabi-git /usr/share/nabi/themes/Onion/hangul.png
nabi-git /usr/share/nabi/themes/Onion/none.png
nabi-git /usr/share/nabi/themes/SimplyRed/
nabi-git /usr/share/nabi/themes/SimplyRed/english.png
nabi-git /usr/share/nabi/themes/SimplyRed/hangul.png
nabi-git /usr/share/nabi/themes/SimplyRed/none.png
nabi-git /usr/share/nabi/themes/Tux/
nabi-git /usr/share/nabi/themes/Tux/README
nabi-git /usr/share/nabi/themes/Tux/english.png
nabi-git /usr/share/nabi/themes/Tux/hangul.png
nabi-git /usr/share/nabi/themes/Tux/none.png
nabi-git /usr/share/nabi/themes/keyboard/
nabi-git /usr/share/nabi/themes/keyboard/README
nabi-git /usr/share/nabi/themes/keyboard/english.png
nabi-git /usr/share/nabi/themes/keyboard/hangul.png
nabi-git /usr/share/nabi/themes/keyboard/none.png
nabi-git /usr/share/nabi/themes/malys/
nabi-git /usr/share/nabi/themes/malys/README
nabi-git /usr/share/nabi/themes/malys/english.png
nabi-git /usr/share/nabi/themes/malys/hangul.png
nabi-git /usr/share/nabi/themes/malys/none.png
nabi-git /usr/share/nabi/themes/ubuntu-mono-dark/
nabi-git /usr/share/nabi/themes/ubuntu-mono-dark/README
nabi-git /usr/share/nabi/themes/ubuntu-mono-dark/english.png
nabi-git /usr/share/nabi/themes/ubuntu-mono-dark/hangul.png
nabi-git /usr/share/nabi/themes/ubuntu-mono-dark/none.png
nabi-git /usr/share/nabi/themes/ubuntu-mono-light/
nabi-git /usr/share/nabi/themes/ubuntu-mono-light/README
nabi-git /usr/share/nabi/themes/ubuntu-mono-light/english.png
nabi-git /usr/share/nabi/themes/ubuntu-mono-light/hangul.png
nabi-git /usr/share/nabi/themes/ubuntu-mono-light/none.png
nabi-git: 70 total files, 0 altered files
[lance@archlinux ~]$ ps aux | grep nabi
lance       8902  0.0  0.0   3256  1688 pts/0    S+   22:14   0:00 grep nabi

Does this mean I have two conflicting packages installed?

Last edited by lansu (2021-09-17 08:18:59)

Offline

#6 2021-09-17 12:23:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,261

Re: .xprofile not being sourced. Trying to use nabi to type Korean.

No, but there's no "nabi" process running, while the wiki suggests there would.
Try starting it explicitly (I've no direct experience w/ this and don't know whether it's supposed to be autostarted by xim or whatever - or whether it's actually important for the module)

Online

#7 2021-09-19 06:02:54

lansu
Member
Registered: 2021-09-16
Posts: 5

Re: .xprofile not being sourced. Trying to use nabi to type Korean.

Hi, sorry for the late reply.

Is this what you meant?

[lance@archlinux ~]$ nabi
[lance@archlinux ~]$ ps aux | grep nabi
lance      21842  0.0  0.0   3256  1592 pts/1    S+   20:01   0:00 grep nabi
[lance@archlinux ~]$ 

Offline

#8 2021-09-19 06:33:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,261

Re: .xprofile not being sourced. Trying to use nabi to type Korean.

https://wiki.archlinux.org/title/Locali … orean#Nabi says

Once you restart the X session, nabi will autostart by default.

There's probably more explanation in https://code.google.com/archive/p/nabi/ or https://github.com/libhangul/nabi but it's all Korean.
What's a bit suspicious is that nabi seems inactive for a couple of years now. And there's https://github.com/libhangul/nabi/issues/3 (in case you're testing this w/ some  Qt5 client)

Online

#9 2021-09-19 07:29:50

lansu
Member
Registered: 2021-09-16
Posts: 5

Re: .xprofile not being sourced. Trying to use nabi to type Korean.

Ok, thanks.  I have restarted the computer a few times since then.

Offline

Board footer

Powered by FluxBB