You are not logged in.

#1 2009-09-19 22:10:58

dammannj
Member
Registered: 2009-01-28
Posts: 44

export to parent process

Hi
I've run into a problem while trying to run SCIM ( http://wiki.archlinux.org/index.php/Scim ) *after* i have started X and my wm.
This just won't work.
I used to have those lines in my .xinitrc

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
scim -d

Now if i run those lines in a terminal in X it won't work, as those variables are not exported to the X environment.
Is there anyway to do that? Or does anyone know howto start SCIM after wm?

Thanks in advance

Offline

#2 2009-09-19 22:39:12

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: export to parent process

You just need to start the applications from a shell where you have set the environment variables. You could also use gdb to set the variables in the currently running WM (or whatever program you use to launch them, like xbindkeys)

gdb_set_IM_vars.txt

call putenv("XMODIFIERS=@im=SCIM")
call putenv("GTK_IM_MODULE=scim")
call putenv("QT_IM_MODULE=scim")
detach
quit

gdb xbindkeys $(pgrep xbindkeys) --command=gdb_set_IM_vars.txt

Offline

#3 2009-09-19 23:12:40

dammannj
Member
Registered: 2009-01-28
Posts: 44

Re: export to parent process

Thanks for your advice!

At the moment I'm not using xbindkeys, I launch applications through awesome wm, but I think I'll be able to work out the rest to my satisfaction smile

Offline

Board footer

Powered by FluxBB