SUMMARY Hi, since Dolphin stores view properties in extended file attributes (great idea, what could possible go wrong), it resets the view for me after a reboot. I've an erase your darlings config and my $HOME is a tmpfs. Extended attributes won't survive a reboot. I've always used Dolphin in "useGlobalViewProps" mode and auto-created one file to set my view mode in ".local/share/dolphin/view_properties/global/.directory". No clutter to be found. This worked fine until a new feature creeped up. The global mode doesn't seem to exist anymore because Dolphin now stores a view mode for each of "search", "trash", "recentlyused", "timeline" and "global". So "global" is not global anymore. It now sits next to all those features I don't use (with exception of "trash", sometimes). Can I please have the "Use common display style for all folders" option back? STEPS TO REPRODUCE 1. In Dolphin options under "View" set "Display style" to "Use common display style for all folders" 2. Navigate to "Home" set view mode to "Icons view" 3. Navigate to "Trash" set view mode to "Details" 4. Navigate back to "Home" OBSERVED RESULT View mode in "Home" is set to "Icons view". EXPECTED RESULT View mode should be "Details" everywhere because that was the last mode selected. Commits should be tested for breaking neighboring functionality. Devs shouldn't only test their local setup. New features breaking old behavior should have an option to opt-out (bette yet, opt-in!!!1!). ADDITIONAL INFORMATION As a side effect: Creating a Backup of your Home now forces you to backup xattrs too if you want your view properties to be backed up as well. Have fun with that. Glad I don't use the view mode switching. Btw. thanks for the new button for the feature I don't use where there, since ages, should be a navigate to parent folder button (like the open/save dialog has by default).
Forgot to mention the commit which broke the things: https://github.com/KDE/dolphin/commit/fdf854bd81d9e42df2d8672d49a0b7fcdb7443a5
FWIW, unnecessary snark like "great idea, what could possible go wrong" and others are not constructive and welcome, and make it less likely for your report to be treated seriously
Sorry for that. I guess using KDE on rolling release Distros for more than 10 years made me get quite snarky. I'll try to keep it to myself in the next bug report.
As a workaround one can create the ".directory" file in ".local/share/dolphin/view_properties/global" as back in the days and write-protect everything under (and including) ".local/share/dolphin/view_properties/". With only "global" present, dolphin behaves like I expected it to and is using the ".directory" information from the file for everything else (including "search", "trash" and so on). The option "common display style for all folders" still needs to be enabled. rmdir "$HOME/.local/share/dolphin/view_properties/"{search,trash,recentlyused,timeline} setfattr --remove="user.kde.fm.viewproperties#1" "$HOME/.local/share/dolphin/view_properties/global" printf '[Dolphin]\nViewMode=1\n' > "$HOME/.local/share/dolphin/view_properties/global/.directory" chmod u-w -R "$HOME/.local/share/dolphin/view_properties" As I understand the ".directory" files will stay as a fallback for filesystems without xattrs support. So the workaround should continue working like this for the foreseeable future. Thank Microsoft for it's crappy exFAT file system everyone is using on their thumb drives now.
Having $HOME, a tmpfs, is not a common configuration, recommended one that we want to put energy into supporting for a few users. They are some workarounds possible still. More the case of: https://xkcd.com/1172/
I know my bug reports often have to many confusing details and it people confuse the issue at hand being specific to my setup. Please just ignore the tmpfs and do the steps to reproduce. You will notice that the "Use common display style for all folders" option is broken. Thanks.
I assume you didn't actually want to mark "Dolphin common display style for all folders is broken" as being intentional. So here is a TL;DR for your convenience. The view mode isn't global anymore as it is saved for each of "search", "trash", "recentlyused", "timeline" and "global" (meaning every other folder). It's new and I think it's a bug. Whatever it is, there is no common display style anymore. It happens to you too. With or without $HOME being a tmpfs. Why didn't you try it in the first place instead of looking up web comincs, I wonder?
(In reply to Méven from comment #5) > Having $HOME, a tmpfs, is not a common configuration, recommended one that > we want to put energy into supporting for a few users. > > They are some workarounds possible still. > > More the case of: > https://xkcd.com/1172/ Hi again! I am trying again to bring your attention to the detail that nowhere in the "STEPS TO REPRODUCE" is something mentioned about setting up your $HOME as a tmpfs. Also the workaround I posted isn't working very well as somewhere down the line Dolphin goes into a francy trying to write the write protected file without fail counters or timeouts and is flooding /tmp with thousands of temporary files in the process. The bug report is meant to be about a option not working as it states it would and it previously did. The option is having only one global view properties setting. Either rename the option to specify it does not affect some special folders like trash or fix it so that it shows behavior like it used to. At least acknowledge that even if you did NOT state "common display style for all folders should not include folders like trash" you actually meant to say that so it is intentional in your eyes. Thank you.
Currently I do mkdir -p "$HOME/.local/share/dolphin/view_properties/global" setfattr -n 'user.kde.fm.viewproperties#1' -v '[Dolphin]\012ViewMode=1\012' .local/share/dolphin/view_properties/global to NOT upset the well tested code in KDE/KIO/Dolphin and find another 40000 temporary files from Dolphin in /tmp after 10 minutes of use. This is NOT a workaround for this Bug as it does NOT address the root problem at all. It just makes the new (intentional?) behavior less annoying for setups like mine. Leaving it here for other immutability fans.
Using setfattr doesn't work as expected. Dolphin started to randomly switch to icons view (again). This time when I opened a USB flash drive. Yeah, random switches to icons view. The primary reason why I started to complain here. And no, "Use icons view mode for locations which mostly contain media files" is NOT set. It happend before this was even a thing. It started with the introduction of the view-mode-button and breaking of the "common display style for all folders" functionality. But it's cumbersome to reproduce without reboots and I feel my input here is not welcome. "Don't just complain, write bug reports" they said. I guess I'll have to stop clinging to the past and accept the current developers favorite setting "icon view" as my new default or just patch out the offending code myself. Guess I'll patch Dolphin now.