Bug 361583

Summary: krusaderrc tabs section corrupt if krusaderrc is a symbolic link
Product: [Applications] krusader Reporter: Gennady Uraltsev <gennady.uraltsev>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: davide, krusader-bugs-null
Priority: NOR    
Version First Reported In: 2.4.0-beta3 "Single Step"   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
URL: https://bugzilla.opensuse.org/show_bug.cgi?id=974785
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Gennady Uraltsev 2016-04-10 09:52:45 UTC
I have Krusader set up to remember position and tabs. Its config file is in ~/.kde4/config/krusaderrc . If one leaves it like that everything works fine.

However if actually ~/.kde4/config/krusaderrc is a symbolic link to another file everything works kind of fine except one thing: If you have several tabs open then on exit krusader successfully saves the information relative to them (current path, history, etc.). However if you then close the tabs krusader, when writing the info about the tabs in krusaderrc corrupts the entries.

/home/guraltsev/.kde4/share/config/krusaderrc points to /home/guraltsev/.home/.kde4/share/config/krusaderrc 

(I use this setup because in .home I keep the config files I choose to sync between pc's while the other ones are system local).


Reproducible: Always

Steps to Reproduce:
1. Make sure that $HOME/.kde4/shar/config/krusaderrc is a symbolic link to some other file
2. Make sure "Save last position, size and panel settings is enabled.
3. Open several tabs, go to some path, exit
4. The file $HOME/.kde4/shar/config/krusaderrc  ( more precisely the file pointed to)  is in a consistent state and Krusader restores the tabs correctly when opening
5. Open Krusader and close some of the tabs; close Krusader.
6. Reopen Krusader: the tabs that were closed were not removed and get restored but at a generic "/" path and with no history or anything else. 
7. See that $HOME/.kde4/shar/config/krusaderrc has corrupt sections relative to the extra tabs.

Actual Results:  
Closed Tabs do not get removed from $HOME/.kde4/shar/config/krusaderrc  but their entries get corrupted. They reappear next time you start Krusader.

Expected Results:  
Closed Tabs get removed from $HOME/.kde4/shar/config/krusaderrc  and do not appear next time you start Krusader.
Comment 1 Davide Gianforte 2020-06-04 09:10:43 UTC
Cannot reproduce on a newer version. Also, the default config dir now is $HOME/.config. Can you confirm the bug is still there?
Comment 2 Bug Janitor Service 2020-06-19 04:33:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2020-07-04 04:33:07 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!