-   Slackware (
-   -   ".config" and ".kde" folders are being created under root directory (Slack Current) (

piratesmack 03-11-2011 12:45 PM

".config" and ".kde" folders are being created under root directory (Slack Current)
Hi, I'm running a fully updated Slackware current and noticed that ".config" and ".kde" folders are being created under "/"

Problem described further on this bug report.

Anybody know a fix?

corp769 03-11-2011 01:05 PM

I just noticed this too, except I'm on my laptop, which is running Fedora 13. I (had) .kde and .dbus on / though, not .config.

Edit - To add - I use gnome, not kde....

Woodsman 03-11-2011 02:49 PM

This sounds like a carry over from KDE 3.5.10. In 3.5.10 (and Trinity too). Using the kde-config command as root will create a .kde directory in the system root directory.

Looks like kde4-config at one time had the same problem.

I use kde-config in my rc.local script to determine the version of kde I am using. That script, of course, runs as root. My fix is sloppy. I have this in my rc.local and rc.shutdown scripts:


# Workaround of a kde-config bug.
if [ -d /.kde ]; then
  rm -fr /.kde
if [ -d /.kde3 ]; then
  rm -fr /.kde3

piratesmack 03-11-2011 03:29 PM

Thanks, I'm already using a similar workaround.

It doesn't happen here when I use kde4-config as root, but e.g. when I go to "System settings>Login Screen>Convenience>Enable Auto-login", click "Apply" and enter my password.

chrisretusn 03-11-2011 09:57 PM

Don't see it here.

Woodsman 03-12-2011 09:43 PM

I'm testing Current and KDE. After much playing around with Systems Settings, finally I got around to configuring Dolphin. In the system root directory I saw the following:

.config (directory)
.kde (directory)
.directory (file)

Yes, I was playing around in a sandboxed virtual machine as root, which is the only way those directories and file could be created in the system root tree.

I don't know at this point exactly what caused that to happen. As reported in the bug report, I can confirm that using with the Date/Time applet will create the .config and .kde directories, but I don't know what caused the .directory file to be created. I suppose anybody using KDE4 who is bothered by this will need to expand my snippet posted above to include .config and .directory too. :scratch:

wildwizard 03-12-2011 11:57 PM

.directory files are from dolphin as far as I can work out.

With current and Eric's KDE I have noticed for some time the .config directory in / with a Trolltech.conf file inside it.

KDE is only run as a normal user but this /.config/Trolltech.conf is all owned by root, file is recreated if deleted and KDE is started again.

Trolltech.conf :-

usr\lib64\kde4\plugins\kauth\backend\, 0, x86_64 linux g++-4 full-config, 2011-03-04T10:35:20
usr\lib64\kde4\plugins\kauth\helper\, 0, x86_64 linux g++-4 full-config, 2011-03-04T10:35:23

trademark91 03-13-2011 12:01 AM

just checked. i have those directories here too.

Old_Fogie 03-13-2011 12:06 AM

I may be mistaken, but I think this happened for me once after I had used kdesu to run a gui app as root, and my "hids" wen't beserk.

edit: but I just ran it to test, and it's not doing it for me now tho. I'm not sure if/when this went away. I'm on --current, maybe that's why?

All times are GMT -5. The time now is 11:21 PM.