Nautilus not showing emblems on non-empty .ini files specifically
I'm on Arch Linux with Nautilus 3.36.2
I have a Nautilus Python extension that puts emblems on files according to their git status.
However I'm noticing no icons appear on .ini
files. This doesn't appear to be an issue with my extension, so I'm thinking it's a bug either in Nautilus or nautilus-python
.
Here is a minimal Python extension to demonstrate the issue:
# ~/.local/share/nautilus-python/extensions/bug.py
import gi
from gi.repository import GObject
gi.require_version('Nautilus', '3.0')
from gi.repository import Nautilus
class InfoProvider(GObject.GObject, Nautilus.InfoProvider):
def update_file_info(self, file):
file.add_emblem('emblem-generic')
Then if you do for example:
mkdir /tmp/nautilus-bug && cd /tmp/nautilus-bug
echo hello > non-empty.ini
cp non-empty.ini non-empty.txt
touch empty.ini
touch empty.txt
killall nuatilus
nautilus .
You will see that there are emblems on the non-empty .txt
file, and the empty .ini
and .txt
files, but no emblem on the non-empty .ini
file: