cht電腦資訊gcin
adm Find login register

best place to put environment variables for X11

yuriy
1 best place to put environment variables for X11
Promote 0 Bookmark 02009-05-13quote  

Which is the best place?

edited: 1
caleb
2
Promote 0 Bookmark 02009-05-13quote  

.xinitrc (start X from console)

or

.xsession (start X with display manager, such gdm, kdm, xdm)

Those two files works for all X11 implements.

 

However, some distributions may suggest you to use something like .gnomerc / .kderc or similar files.

caleb
3
Promote 0 Bookmark 02009-05-13quote  

Some distributions supports .xsessionrc now (alone side with .xsession).

Thanks to Solomon.

I have not use these stuffs for over 4 years. (I run "~$ X &" directly from console)

yuriy
4
Promote 0 Bookmark 02009-05-13quote  

I put these 2 settings in .xinitrc

Pidgin works fine . I can activate  pinyin.gtab and symbols.gtab (ctrl + alt + 4)

gedit is okey too. but when I use skype I cannot switch to pinyin mode or activate symbols.gtab

Only If I will open gedit (empty file) I can activate symbols.gtab and after I can use virtual keyboard with skype.

Any ideas?Please see .Xsessions.errors file

Thanks

edited: 1
caleb
5
Promote 0 Bookmark 02009-05-13quote  

Your system starts the input method server "/etc/X11/xinit/xinput.d/default".

But gcin restarted (or starts the first time) later:

XGetSelectionOwner: old version of gcin or gcin is not running ??

... try to start a new gcin server /usr/bin/gcin

Maybe your /etc/X11/xinit/xinput.d/default is not gcin?

edited: 2
yuriy
6
Promote 0 Bookmark 02009-05-13quote  

Let see this file ....

What I should change there?

cht電腦資訊gcin
adm Find login register
views:14808