Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 2086  / 2 Years ago, fri, august 12, 2022, 1:35:03

I've seen this question:


How to set visible columns default for the 'Files' file manager?


and would like to ask how to do it now in Ubuntu 21.10 (Files 40.2) because the Preferences dialog no longer has the tabs that previous versions had; i.e. now that the set of columns to use as default is no longer shown as a tab in Preferences, how can we set the default?


More From » nautilus

 Answers
3

The option to set the default view unfortunately is not anymore exposed in the user interface starting with Files 40. It can however be set directly in the dconf database via the GSettings configuration tool on a terminal.



  • To get the currently configured default list view columns, run


    gsettings get org.gnome.nautilus.list-view default-visible-columns


  • The set of all available column names can be retrieved from another setting:


    gsettings get org.gnome.nautilus.list-view default-column-order


  • Knowing available column names, you can then define your custom default list view columns. To set them to ['name', 'size', 'date_modified'] for example, run:


    gsettings set org.gnome.nautilus.list-view default-visible-columns "['name', 'size', 'date_modified']"



Custom settings are remembered per folder using the gvfs-metadata system. You therefore eventually need to manually adjust any folder that you have set differently from the defaults. However, there is a way to reset gvfs-metadata:


nautilus -q
systemctl --user stop gvfs-metadata.service
rm ~/.local/share/gvfs-metadata/home*

This stops nautilus, the gvfs-metadata service, and then selected metadata that gets updated when you change the column view is deleted.


When you restart nautilus, the service will also be restarted. Now, any of the folders on your file system should adopt the default settings you defined before.


[#1036] Friday, August 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mentpengu

Total Points: 148
Total Questions: 114
Total Answers: 119

Location: Anguilla
Member since Sun, Aug 7, 2022
2 Years ago
mentpengu questions
Sun, Apr 17, 22, 18:09, 2 Years ago
Tue, Jul 26, 22, 14:52, 2 Years ago
Wed, Jun 30, 21, 02:28, 3 Years ago
;