When launching dolphin from menu>system> dolphin, it opens with a default url for a home directory that does not exist, instead of the current user. Reproducible: Always
Thanks for the report. What is the 'default URL', which you can probably see in the location bar? What happens if you open Dolphin from Konsole or with the Alt+F2 dialog? What is the 'Home folder' configured in the Dolphin settings?
wait for information requested in comment #1. Maybe attaching screenshots would describe the problem better.
The bug seems to be because I switched users and imported a bunch of settings to the new user, as far as I can tell. If so, then dolphin should instead use ~/ instead of setting that to /home/user/ so the same config can be used between different users? Like how bash's default is ~/
That is a configuration thing that you can change already. I'm guessing you simply copied your dolphin configuration from another user. In dolphin go to Settings -> Configure Dolphin -> Startup There you see a field called "Location:". Change that to your liking. Closing this as invalid since it is :)
The problem here is that Dolphin expands the tilde. Trying to set "~/" as a startup location will save "file://home/<name>" to the configuration, making it impossible to prepare a config file for multiple users.
(In reply to comment #5) > The problem here is that Dolphin expands the tilde. Trying to set "~/" as a > startup location will save "file://home/<name>" to the configuration, making > it impossible to prepare a config file for multiple users. Actually, no. I just tried that and dolphin indeed expands it. However, you can set the tilde in the actual config file .kde4/share/config/dolphinrc (HomeUrl=~) which will be the users home folder. That will work, even for multiple users, but the tilde sign will be replaced by the actual users home folder when the user enters the dolphin settings. I don't think that is an issue since the config file is then specific for that user anyway. So yeah, rolling it out to multiple users should be fine i guess.
Sorry for not joining the discussion earlier. I think that this *is* a bug. From dolphin_generalsettings.kcfg: <entry name="HomeUrl" type="String"> <label>Home URL</label> <default code="true">QDir::homePath()</default> </entry> When starting with a clean dolphinrc (no HomeUrl entry), QDir::homePath() is evaluated, which should be fine for every user. However, if the settings dialog is opened and closed without making any changes and then Dolphin is closed, an entry HomeUrl=file:///home/users_home_folder is generated. This looks like a bug to me - if the default setting is unchanged, no entry should be generated in dolphinrc. I consider this a rather minor problem compared with many other bugs we have in the database, but if there is a good way to fix this in KConfig (or if we are using KConfig incorrectly), we should not close this.
Right oke, going to look into this now and fix it. Having the code open already :)
https://git.reviewboard.kde.org/r/107142/
Git commit f84c4267edb0a8dde796d744f3338633cc81e572 by Frank Reininghaus. Committed on 31/10/2012 at 22:43. Pushed by freininghaus into branch 'KDE/4.9'. Only store the HomeUrl in dolphinrc if it is not the user's home folder This fixes the problem that copying the dolphinrc from another user results in Dolphin starting up in a folder that might wither not be accessible or not exist at all. FIXED-IN: 4.9.3 M +2 -1 dolphin/src/settings/dolphin_generalsettings.kcfg http://commits.kde.org/kde-baseapps/f84c4267edb0a8dde796d744f3338633cc81e572