SlackwareThis 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.
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.
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
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.
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.
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.
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
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"
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...
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.
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.
. . . 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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.