Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-20-2006, 04:02 PM
|
#1
|
Member
Registered: Feb 2004
Posts: 56
Rep:
|
font error with KDE
Whenever I shutdown kde I see the error on the screen
xset: bad path element (#162), possible causes are
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
Though the KDE functions OK
Can anyone please tell me how can I get rid of this error
|
|
|
08-20-2006, 06:14 PM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
You could try running fc-cache
|
|
|
08-20-2006, 07:04 PM
|
#3
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
Quote:
Can anyone please tell me how can I get rid of this error
|
This error message is a pet peeve of mine. Not that I make a difference in this world, but after, what?, four years of using KDE this error message continues to haunt people and the KDE developers do not add some error proofing to eliminate the root cause.
The message means exactly what is reported: there is a missing fonts.dir. With KDE this message happens with four KDE font locations. You can discover those locations by reviewing the $KDE/bin/startkde script.
IIRC the locations are $KDE/share/fonts, $KDE/share/fonts/override, ~/.fonts, and ~/.fonts/override.
In Slackware, $KDE = /opt/kde.
The problem is caused by an empty font directory that the startkde script validates. I got so tired of these messages that I inserted echo messages in the script so that if I see these messages---common when updating KDE---I can toggle the echo messages and then pin-point exactly which of the four directories is the culprit.
I have a copy of my modified startkde script at my web site: startkde-3.4.3. Some of the mods I made to the script will make no sense unless you browse A More "Intelligent" startx Script.
Bear in mind that this script is customized for my box, for KDE 3.4.3, and you know the legalese. When you review the script, look for references to sys_fdir, sys_odir and usr_fdir, usr_odir. Enable those related echo messages, and then when you run or shutdown KDE, look at the xsession errors log in your home directory. You then will know which KDE-based font directory needs attention.
I hope this helps.
|
|
|
08-22-2006, 04:42 PM
|
#4
|
Member
Registered: Feb 2004
Posts: 56
Original Poster
Rep:
|
Thanks for the response. Can you please tell me what is the name of the error log file as I cannot see any xsession error log file in my home directory and once I have found which fonts.dir is missing what do I do to resolve the issue.
|
|
|
08-22-2006, 05:00 PM
|
#5
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
Quote:
Can you please tell me what is the name of the error log file as I cannot see any xsession error log file in my home directory . . .
|
The usual name for the log file is ~/.xsession-errors or something very similar. Notice the dot naming convention, which means the file is hidden from normal viewing unless you have your file manager (Konqueror) and ls command alias configured to show hidden files.
Quote:
once I have found which fonts.dir is missing what do I do to resolve the issue
|
Check the following directories:
1. $KDE/share/fonts
2. $KDE/share/fonts/override
3. ~/.fonts
4. ~/.fonts/override
One of those directories is empty. With root privileges:
1. Open a Konsole session
2. cd to that empty directory
3. run mkfontdir
4. run mkfontscale
5. run fc-cache -fv
|
|
|
08-23-2006, 03:54 PM
|
#6
|
Member
Registered: Feb 2004
Posts: 56
Original Poster
Rep:
|
When I do an ls -a I get the below files and directories. I haven't got any .fonts directory. When I create the two directories manually and try to run mkfonddir it says "command not found"
./ .config/ .mcop/ .xine/
../ .fonts.conf .mcoprc 5248868.stm
.DCOPserver_jam3_:0@ .fullcircle/ .mozilla/ Desktop/
.DCOPserver_jam3__0 .gxine/ .qt/ TechMon/
.ICEauthority .kde/ .screenrc TechMon+AmaroK/
.Xauthority .kderc .serverauth.2949 TechMon+XMMS/
.bash_history .lesshst .superkaramba/ com/
.bash_profile .local/ .viminfo
.bashrc .macromedia/ .vimrc
|
|
|
08-23-2006, 11:12 PM
|
#7
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
You do not need a .fonts directory in your home directory. What about the contents of /opt/kde/share/fonts and /opt/kde/share/fonts/override?
|
|
|
08-24-2006, 02:39 PM
|
#8
|
Member
Registered: Feb 2004
Posts: 56
Original Poster
Rep:
|
Contents of directory /opt/kde/share/fonts/override are
drwxr-xr-x 2 root root 4096 2006-08-20 22:36 ./
drwxr-xr-x 3 root root 4096 2006-08-20 22:36 ../
-rw-r--r-- 1 root root 2 2006-08-20 22:36 fonts.dir
and contents of /opt/kde/share/fonts are
drwxr-xr-x 3 root root 4096 2006-08-20 22:36 ./
drwxr-xr-x 20 root root 4096 2006-08-20 22:36 ../
drwxr-xr-x 2 root root 4096 2006-08-20 22:36 override/
But I cannot run the commands mentioned
I get the below errors
bash: mkfontdir: command not found
bash: mkfontscale: command not found
bash: fc-cache: command not found
|
|
|
08-24-2006, 04:08 PM
|
#9
|
LQ Newbie
Registered: Aug 2006
Distribution: Star...DarkStar
Posts: 2
Rep:
|
Quote:
Originally Posted by jam222
When I do an ls -a I get the below files and directories. I haven't got any .fonts directory. When I create the two directories manually and try to run mkfonddir it says "command not found" ...
|
I hope following may be helpful to You:
The field “command not found” can be avoided by running commands (as root): "mkfontdir", "mkfontscale" and "fc-cache" by using this: /usr/X11R6/bin/(+command). Thus, mkfontdir = /usr/X11R6/bin/mkfontdir etc...
|
|
|
08-25-2006, 03:35 AM
|
#10
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
Quote:
bash: mkfontdir: command not found
bash: mkfontscale: command not found
bash: fc-cache: command not found
|
Try the following:
cd /opt/kde/share/fonts
su -c mkfontdir
su -c mkfontscale
cd ./override
su -c mkfontdir
su -c mkfontscale
su -c fc-cache-fv
As ThorX mentioned, you often can get around the "command not found" message simply by using the full path of the command, but to run these commands you need root privileges too. You also can obtain root privileges by typing su root and the root password, and you have to remember to exit as root back to normal user as soon as you finish your task.
|
|
|
08-26-2006, 04:38 PM
|
#11
|
Member
Registered: Feb 2004
Posts: 56
Original Poster
Rep:
|
I have tried it. Commands did work this time but still getting the same font errors.
|
|
|
08-26-2006, 08:26 PM
|
#12
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
Quote:
Commands did work this time but still getting the same font errors.
|
After you run the mkfontdir, mkfontscale and fc-cache commands, you should see in the affected directories the following files:
fonts.dir
fonts.scale
fonts.cache-1
Do you see those files?
|
|
|
08-27-2006, 11:07 AM
|
#13
|
Member
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819
Rep:
|
Hello!
I had the same errors reported, until I deleted the /opt/kde/share/fonts/override directory. I do not have ~./fonts and ~.fonts/override directories. If I create them, then I obtain 3 error messages - one for ~./fonts, one for ~/.fonts.override and one for /opt/kde/share/fonts/override. I issued mkfontscale, mkfontdir and fc-cache -fv for all of them, but the error message stopped to appear after I deleted all directories that actually contain no font files, i.e. ~./fonts, ~/.fonts.override and /opt/kde/share/fonts/override.
So just delete the /opt/kde/share/fonts/override directory, and the error message should cease to appear.
|
|
|
08-28-2006, 12:24 AM
|
#14
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
Quote:
. . . but the error message stopped to appear after I deleted all directories that actually contain no font files . . .
|
In parallel with that, look at your /var/log/Xorg.0.log with a text editor/viewer. If you see any messages about missing fonts, then edit your /etc/X11/xorg.conf file to comment out those fonts. Restart X.
|
|
|
08-28-2006, 04:21 PM
|
#15
|
Member
Registered: Feb 2004
Posts: 56
Original Poster
Rep:
|
Deleting the fonts directories has worked. I don't get the errors any more. Thanks all who have contributed in this thread for giving me useful pointers.
|
|
|
All times are GMT -5. The time now is 08:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|