LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   ".config" and ".kde" folders are being created under root directory (Slack Current) (http://www.linuxquestions.org/questions/slackware-14/config-and-kde-folders-are-being-created-under-root-directory-slack-current-867967/)

piratesmack 03-11-2011 11:45 AM

".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 12: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 01: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:

Code:

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


piratesmack 03-11-2011 02: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 08:57 PM

Don't see it here.

Woodsman 03-12-2011 08: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 10: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 :-
Code:

[Qt%20Plugin%20Cache%204.7.false]
usr\lib64\kde4\plugins\kauth\backend\kauth_backend_plugin.so=40700, 0, x86_64 linux g++-4 full-config, 2011-03-04T10:35:20
usr\lib64\kde4\plugins\kauth\helper\kauth_helper_plugin.so=40700, 0, x86_64 linux g++-4 full-config, 2011-03-04T10:35:23


trademark91 03-12-2011 11:01 PM

just checked. i have those directories here too.

Old_Fogie 03-12-2011 11:06 PM

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:27 AM.