Bug 498671 - 'View > Show Previews' setting is no longer persistent
Summary: 'View > Show Previews' setting is no longer persistent
Status: RESOLVED NOT A BUG
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-14 21:53 UTC by sortof.optimistic
Modified: 2025-01-23 22:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sortof.optimistic 2025-01-14 21:53:23 UTC
SUMMARY
After updating dolphin to version 24.12.0, the 'Show Previews' setting in the 'View' menu reverts back to un-selected for a given folder as soon as you either navigate away from that folder, or close and re-open dolphin. After a bit of digging I found bug #322922 which mentions the command 'getfattr -d <dir>' as a means of viewing the extended attributes directly. Using this I then performed some tests on a newly-created folder and noticed the following behavior:

##default x-attributes for the newly-created folder:
user@main:~/test_folder> getfattr -d .
user@main:~/test_folder>


##folder x-attributes after selecting only 'Show Previews':
user@main:~/test_folder> getfattr -d .
user@main:~/test_folder>


##folder x-attributes after selecting only 'Show Hidden Files':
user@main:~/test_folder> getfattr -d .
# file: .
user.kde.fm.viewproperties#1="[Dolphin]\012PreviewsShown=false\012Timestamp=2025,1,14,16,1,21.623\012Version=4\012\012[Settings]\012HiddenFilesShown=true\012"

user@main:~/test_folder>


##folder x-attributes after un-selecting 'Show Hidden Files':
user@main:~/test_folder> getfattr -d .
# file: .
user.kde.fm.viewproperties#1="[Dolphin]\012PreviewsShown=false\012Timestamp=2025,1,14,16,2,14.359\012Version=4\012"

user@main:~/test_folder>


##folder x-attributes after first selecting 'Show Hidden Files', and then selecting 'Show Previews' also:
user@main:~/test_folder> getfattr -d .
# file: .
user.kde.fm.viewproperties#1="[Dolphin]\012Timestamp=2025,1,14,16,6,33.375\012Version=4\012\012[Settings]\012HiddenFilesShown=true\012"

user@main:~/test_folder>


##folder x-attributes after un-selecting 'Show Hidden Files', but leaving 'Show Previews' selected:
user@main:~/test_folder> getfattr -d .
user@main:~/test_folder>


It should be noted that the 'Show Previews' setting persists /only/ if the 'Show Hidden Files' setting is selected first, however, if 'Show Hidden Files' is then un-selected (leaving only 'Show Previews' selected), the extended attributes for the folder are completely erased.

STEPS TO REPRODUCE
1. create a new folder, then navigate into the folder
2. select only 'Show Previews' within the 'View' menu
3. navigate to a different folder or restart dolphin, then navigate back to the new folder
4. open the 'View' menu and inspect the 'Show Previews' setting

OBSERVED RESULT
The 'Show Previews' setting reverts back to un-selected as soon as you navigate away from the selected folder, or close and re-open dolphin.

EXPECTED RESULT
The 'Show Previews' setting should persist once selected, without needing other settings to be selected first (this was its behavior prior to version 24.12.0).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20250103
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Comment 1 John Kizer 2025-01-20 06:46:21 UTC
Hi - thanks for your bug report! I can't seem to reproduce this issue on my Fedora KDE 41 device - the visual effect doesn't occur, and the sequence of events that leads to empty extended attributes in your report doesn't lead to empty ones on mine.

Just to double-check - what type of file system is the test_folder on?

As a general note here, this symptom reminded me of https://bugs.kde.org/show_bug.cgi?id=497767 , although the issues are occurring in different places (Dolphin here, Open/Save dialog there)
Comment 2 sortof.optimistic 2025-01-23 22:20:17 UTC
Long story short -- I did some further testing and figured out that my dolphinrc file (~/.config/dolphinrc) was causing the problem. As soon as I deleted it and restarted dolphin, the 'Show Previews' setting began working as expected. I also deleted ~/.local/share/dolphin/view_properties just in case.

Apologies for the false alarm.