KUser does quite a lot of stuff under the hood and also calls getpwuid which might block with network login.
Details
Details
- Reviewers
emmanuelp dfaure - Group Reviewers
Dolphin - Commits
- R318:12c4272912bb: [PlacesItemModel] Use QDir::homePath() instead of KUser().homeDir()
File system bookmark still shows up, $HOME variable on that machine was properly setup which QFileSystemEngine_unix::homePath() uses.
Diff Detail
Diff Detail
- Repository
- R318 Dolphin
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Would be worth doing a search for all uses of KUser::homeDir() then -- and possibly deprecated it, except if it makes sense for e.g. a user-management KCM?
Comment Actions
I did a search for KUser() and found another occurrence in Yakuake - will lxr then. Another interesting find was KFileWidget which uses KUser to get the user's name for the what's this text(!) on the "Up" button so it can tell you "when you press this, e.g. /home/$name will be /home"