On 05-Apr-99 Dr Sulaiman Mahbob wrote:
> I've recently downloaded the xfstt package an installed it as described
> in the documentation .. it worked fine for root & other users .. ( i
> tested using Gimp )
> the way i usually start it is by typing :-
> xfstt &
> startx
> then in an xterm window , i do a xset fp+ unix/:7100
> and then i'd be able to have my true type fonts to be used ...
> i tried to get a shorter way to use it ..
> so , i created a ~/.Xclients
> in it there was the original /etc/X11/xinit/Xclients which i edited to
> leave only 3 lines
>#!/bin/bash
> xfstt &
> the command to start WindowMaker
> ( i'm not sure if this is the right way to create a xclients file , any
> suggestions )
> 
> then , i edited XF86Config , and added the line FontPath "unix/:7100"
> when i started xfstt , and then ran startx for root , it worked alright
> ..
> but not for normal users ... it gets the unable to connect to server  ,
> and something like can't set fixed font , i'm not too sure ..

That happened because ".Xclients" is in the root directory. When X is started,
it searches for the ".Xclients" file in the home directory of the user who
started it.

When you start X as root, the ".Xclients" file is present, and the font server
is started. But when you start X as a user, the ".Xclient" file is not present
in the user's home directory, as such the font server is not started and X will
have some trouble finding fonts.

Since the "XF86Config" file can't be overridden (unless you're root), the
command for starting "xfstt" should be stored in a configuration file that
can't be overridden either. Try putting the "xfstt" command in the "startx"
script.

Cort
[EMAIL PROTECTED]

Reply via email to