Ticket #24403 (closed defect: wontfix)
kdelibs3: kde-config creates ~/.kde directory
| Reported by: | MK-MacPorts@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | kde-config | Cc: | brad@…, 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
comment:2 Changed 3 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 3 years ago by MK-MacPorts@…
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 3 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 3 years ago by MK-MacPorts@…
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 3 years ago by MK-MacPorts@…
Here is the corresponding thread at KDE's bug tracker:
comment:7 Changed 3 years ago by MK-MacPorts@…
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 3 years ago by MK-MacPorts@…
It has been confirmed now: https://bugs.kde.org/show_bug.cgi?id=233892


Cc Me!