Opened 11 years ago

Closed 10 years ago

#24403 closed defect (wontfix)

kdelibs3: kde-config creates ~/.kde directory

Reported by: mkae (Marko Käning) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: kde-config Cc: pixilla (Bradley Giesbrecht), takanori@…
Port: kdelibs3

Description

kde-config for some reason CREATES the directory .kde in the user's home directory. (I thought that the tool should only return paths, but not create directories on its own...)

See also:

https://bugs.launchpad.net/ubuntu/+source/kdelibs/+bug/268167

This MUST lead to trouble when installing ports with "sudo port" as a non-privileged user, since then .kde would be created with admin ownership in the user's home dir, which will lead subsequently to trouble...

This actually affects many kde ports!

Change History (9)

comment:1 Changed 11 years ago by pixilla (Bradley Giesbrecht)

Cc: brad@… added

Cc Me!

comment:2 Changed 11 years ago by takanori@…

Cc: takanori@… added

It cannot be true. Your ~/.kde must have been created by another port, I guess.

port:kdelibs3 cannot create ~/.kde because the environment variable $HOME is set to ${workpath} during the build process.

comment:3 Changed 11 years ago by mkae (Marko Käning)

Try it!

1) Delete or move away .kde

2) Run kde-config

3) A new .kde will appear in the current user's homedir

Try again with "sudo kde-config" and you'll see what is meant.

comment:4 Changed 11 years ago by takanori@…

Sorry, I misunderstood your post a bit. :P

Anyway, I think it is difficult to fix this problem with a single shot. Patching kde-config may lead another problem. (or, is there any smart way?)

When you found a port that creates ~/.kde during its build process, please let us know about it. All we can do is fix them one by one.

comment:5 Changed 11 years ago by mkae (Marko Käning)

Well, I have found kmymoney and kmm_banking so far, since that are the only kde applications I am using so far. But I think this concerns tons of kde apps.

comment:6 Changed 11 years ago by mkae (Marko Käning)

Here is the corresponding thread at KDE's bug tracker:

https://bugs.kde.org/show_bug.cgi?id=233892

comment:7 Changed 11 years ago by mkae (Marko Käning)

BTW, it's not only kde-config which produces the .kde folder, as it turned out. There must be called during configure and build other KDE tools as well which have the same effect...

comment:8 Changed 11 years ago by mkae (Marko Käning)

comment:9 Changed 10 years ago by mkae (Marko Käning)

Resolution: wontfix
Status: newclosed

Has been eventually fixed in version 4.6. (See above link to KDE's bug tracker.)

I guess there won't be any work done for the ancient 3.5... :(

Herewith marked as resolved, but wontfix.

Note: See TracTickets for help on using tickets.