cht電腦資訊gcin
adm Find login register

best place to put environment variables for X11

yuriy

joined: 2009-05-09
posted: 14
promoted:
bookmarked: 0
Denver,CO,USA
1subject: best place to put environment variables for X11Promote 0 Bookmark 02009-05-13quote  

Which is the best place?

edited: 1
caleb
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
2subject: 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
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
3subject: 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

joined: 2009-05-09
posted: 14
promoted:
bookmarked: 0
Denver,CO,USA
4subject: 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
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
5subject: 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

joined: 2009-05-09
posted: 14
promoted:
bookmarked: 0
Denver,CO,USA
6subject: Promote 0 Bookmark 02009-05-13quote  

Let see this file ....

What I should change there?

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