[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#741228: kdelibs-bin: kauth helpers creates .config in /



In article <E1WMvan-0002hA-LP__11119.6382590153$1394440406$gmane$org@goedel.fjf.gnu.de> you wrote:
> Package: kdelibs-bin
> Version: 4:4.8.4-4
> Severity: normal
> Tags: upstream patch

> When logging into KDM, a directory /.config is created.

> Just like #675857, this goes against the Linux FHS and accepted
> usage, those run files (these are not config files, obviously!)
> should rather be created in /run, or otherwise in
> /var/{lib,run,lock} etc.

> The problem is discussed in
> https://bugs.kde.org/show_bug.cgi?id=249217 with a patch at
> https://reviewboard.kde.org/r/110655/diff/3/#0.8

> The patch is for KDE 4.11, but applies to the current version as
> well.

> However, it doesn't really solve the problem, just moves the
> offending directory from / to /root where it also doesn't belong
> because root-as-a-user is not involved. (Maybe that's somehow
> different in 4.11, or it's still buggy there.) In fact, the user
> doing the login is known at the time, so the file should be created
> in their home directory -- or not at all (since it doesn't contain
> any valuable information anyway, as seen by the fact that's it gets
> happily recreated at every login when it's removed).

The patch only sets the HOME environment variable if not set, maybe we could
simply set the HOME variable in the kdm init script to /var/lib/kdm.

Could you prepare and test such a patch?

Thanks,
-- 
"Always code as if the person who ends up maintaining your code is a violent
psychopath who knows where you live."
-- John Woods
Saludos /\/\ /\ >< `/

Attachment: signature.asc
Description: Digital signature


Reply to: