Default folder icon in Nautilus can't be changed
Affected version
- Nightly flatpak: Uses completely different icons.
- Other: Fedora 37 (Workstation Edition),
nautilus-43.0-2.fc37.x86_64
.
Steps to reproduce
- Replace the places icons (e.g.,
folder.png
,folder-documents.png
, etc.) in/usr/share/icons/Adwaita/512x512/places/
with custom icons. - Replace/add more icons for mimetypes in
/usr/share/icons/Adwaita/512x512/mimetypes/
(e.g.,text-x-cpp.png
, etc.). - Update icon cache:
sudo gtk-update-icon-cache /usr/share/icons/Adwaita -f
. - Reboot.
Current behavior
-
While the icons for Documents, Desktop, Downloads, etc. are replaced with the new ones (when viewing the
~
directory in Nautilus), the folders still use the default icon (folder.png
, even when it is replaced with a new one). -
Most files (e.g.,
.tex
,.html
, etc.) use the new icons but.cpp
files use the generic icon for text files. The properties for.cpp
files show "C++ source code" under the file name andfile --mime-type -b example.cpp
returnstext/x-c
. (Please note that bothtext-x-c.png
andtext-x-cpp.png
are present in/usr/share/icons/Adwaita/512x512/mimetypes/
.)
Expected behavior
Nautilus should use the new places and mimetype icons (including .cpp
), just like in Fedora 36 (GNOME 42).
Additional information
-
New
.cpp
files and folders use the default icons of Adwaita. (I can't even find the defaultfolder.png
(512x512) when searching in/
.) -
I upgraded to Fedora 37 from Fedora 36 GNOME 42 yesterday. I was using the custom icons without any issues in Fedora 36, but after Fedora 37 was installed, the
places
andmimetypes
folders got overwritten (with the old icons), so I recopied the custom icons. -
I also replaced
folder.png
in/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/43/c7f1fc39939059cdefd7cb69d8114e94457ef22cebfeca4567dc50b5cc7280dd/files/share/icons/Adwaita/512x512/places
. (All the other icons were already replaced with the custom ones. I only checked this folder after doing the steps 1 through 4 above and never in Fedora 36.) -
I use the thumbnails view with the second lowest icon size (which is probably the default). This uses 512x512 icons, so I didn't replace any lower resolutions icons.
-
Here are the icons.