You are not logged in.
Hello,
A strange "emblem" appeared on some of my files recently. I put it between quotes as I'm not sure if it's an emblem : it's a small icon that appears right of the files' main icons in my file manager (thunar, I guess ?). As you can see, my knowledge of xfce internals is close to zero.
How can I know from which file the "emblem" comes from ? In the file properties, Emblems tab, no emblem is selected. I couldn't find a command to list the icons/emblems of a file.
Last edited by trapangle (2020-04-01 16:34:00)
Offline
Hi trapangle and welcome.
What does this emblem look like? Is it an X or an arrow pointing to the right?
Offline
It looks like a...rainbow little pony (yes, really strange, I agree) :
Offline
Wowzers!
I have no idea. Did you install this or something similar: https://www.xfce-look.org/p/1002365/
Offline
Nope, I did not. All I did with these files recently is move them to another folder on my hard disk, access them through a symlink and synchronise them with my Google Drive (using overgrive).
Isn't there a command or action to find out which file is used for the emblem ? The name and path of the file could help me understand what's happening.
Could it be a 2-days-too-early-easter-egg ?
Last edited by trapangle (2020-03-30 21:09:51)
Offline
LOL.
I asked about the arrow as that would indicate a symlink. I'm wondering if that's your symlink indicator.
What does this show:
ls -la /path/to/folder-with-funky-images
Offline
In this folder, there is a file which doesn't have the emblem :
But I see no difference in the ls.
[alain@earth ~]$ ls -la /home/alain/Scripts/maths/
total 56
drwxr-xr-x 3 alain users 4096 26 mar 22:54 .
drwxr-xr-x 10 alain users 4096 17 mar 2018 ..
drwxr-xr-x 2 alain users 4096 18 mar 2018 automatescellulaires
-rw-r--r-- 1 alain users 1296 26 mar 22:54 cross.py
-rw-r--r-- 1 alain users 1257 7 jan 2016 first.py
-rwxr-xr-x 1 alain users 236 20 nov 2009 possible
-rwxr-xr-x 1 alain users 246 20 nov 2009 possible~
-rw-r--r-- 1 alain users 3425 19 mar 17:01 trisectionCroix.py
This is the symlink :
[alain@earth ~]$ ls -l /home/alain/Scripts
lrwxrwxrwx 1 alain users 15 30 mar 16:13 /home/alain/Scripts -> GDrive/Scripts/
Last edited by trapangle (2020-03-31 07:11:15)
Offline
I think this might be interesting :
[alain@earth ~]$ gio list --attributes=metadata::emblems /home/alain/Scripts/maths
trisectionCroix.py 3425 (regular) metadata::emblems=[synchronizing]
possible 236 (regular) metadata::emblems=[default]
first.py 1257 (regular) metadata::emblems=[default]
cross.py 1296 (regular) metadata::emblems=[default]
automatescellulaires 4096 (directory) metadata::emblems=[synchronizing]
I'm digging in this direction...
Offline
What version of Thunar is that?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
It's thunar 1.8.14.
I'm on ArchLinux, if it matters.
Offline
Try manually deleting the emblem data:
gio set FILE metadata::emblems "[]"
...where FILE is the filename of the affected file. Refresh (F5) thunar afterwards.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I tried it on one file, it works, thanks! I have thousands of files with the same emblem, but I guess I can treat them all using a for loop.
Before doing that, I'd like to understand why this icon is associated with my "default" emblem, I'm still looking for a command to find the path of the icon of an emblem.
Offline
At first I thought maybe a previous icon theme had an emblem that a newer icon theme had, and when you switched away from it, something got messed up. But I just tested this and if the emblem doesn't exist in the current icon theme, thunar ignores it.
Did you ever use another file manager like nautilus or nemo? I believe they both make extensive use of file metadata.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I remember switching themes, but I never had another file manager.
Offline
Look inside the emblems folder of your icon theme to see if the pony image exists in there
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I'm not sure where to look for them...my theme is Adwaita-dark, so I looked in /usr/share/themes/Adwaita-dark, there is no emblems folder there. There is a gtk-2.0/asset folder which contains png files, but no pony.
While looking at that, I found a folder /usr/share/themes/ZOMG-PONIES!/ but the png isn't there either. It only contains a css in an xfce-notify-4.0 subfolder.
Offline
... Before doing that, I'd like to understand why this icon is associated with my "default" emblem, I'm still looking for a command to find the path of the icon of an emblem.
Greetings!
Afaik, XFCE caches its icons from /usr/share/icons/[icontheme], and your home folder's .icons/[icontheme]. Depending on how your icontheme is designed, its "emblems" subfolder may be located right under your icontheme's main folder (ie alongside "apps", "locations" etc.) or within a particular icon dimension's subfolder, ie 8x8, 16x16, etc (in gnome's icontheme).
Your chosen icontheme has the capability to "inherit" (read: merge) missing icons from other icontheme(s). This is achieved via an icontheme's "index.theme" configuration file. To determine if that is the case, you'd have look for the following "Inherits" line
[Icon Theme]
Name=Oranchelo
Comment=oranchelo-icons is a set of flat icons some with long shadow, designed by adolfo silerio (zayronxio). originally based on superflat-remix, however, each day are more icons.
...
Inherits=gnome,breeze,breeze-dark,hicolor
In this example from my test system, i have checked that I do not have the "breeze,breeze-dark" iconthemes installed. Therefore, any emblems would be obtained from either my "Oranchelo" icontheme, or from gnome's or hicolor's collection. Looking at "overGrive"s examples, it appears that this goggle-drive client sets the checkmark emblem for synced files. That would mean that your little pony emblem (as irritating as it may be to you) indicates "synced" status of the file.
I hope this helps you in locating your emblem's source, and then tweak it to your liking. Cheers, m4a
Linux Mint 21.3 -- xfce 4.18 ... Apple iMAC -- Lenovo, Dell, HP Desktops and Laptops -- Family & Community Support
Offline
Thanks mint4all, but no success.
There is no .icons in my home folder, and the only inherits I found are targetting my theme :
[alain@earth desktop]$ find /usr/share -name "index.theme" -exec grep -iH Inherits {} \;
/usr/share/icons/default/index.theme:Inherits=Adwaita
/usr/share/icons/HighContrast/index.theme:Inherits=Adwaita
/usr/share/gimp/2.0/icons/Legacy/index.theme:Inherits=Color
Edit : and it's not in /usr/share/icons/Adwaita either.
Last edited by trapangle (2020-03-31 17:51:49)
Offline
Sorry to hear that ... A real headscratcher, imho. I'd say that somehow your icontheme's default "emblem-default.png" / "emblem-default.svg" got hijacked. One possible explanation could be that your file's "mime-type to icon mapping" gets preempted. A search on that assumption turned out a possible scenario, @ https://unix.stackexchange.com/question … fce-thunar ... Worth exploring.
One more question: are those unwanted emblems "static"? By that I mean do they persist across reboots and even without any connection to your google drive, or via openGrive? I'm asking because I had quite a hard time getting thunar to work with google drive (without a paid-for client app, like your openGrive) and eventually gave up on it as it turned out to be too unstable and did not persist across suspend/resume cycles...
Linux Mint 21.3 -- xfce 4.18 ... Apple iMAC -- Lenovo, Dell, HP Desktops and Laptops -- Family & Community Support
Offline
Here is something else you can try. Run the program "gtk3-icon-browser" and in the search field enter "default". Does the pony icon show? If yes, its in your icon search path somewhere. Using locate you could:
locate "/default.png" "/default.svg"
...to see if you can find it in the filesystem.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
There is some improvement !
It wasn't visible in gtk3-icon-browser but locate gave me the culprit anyway, it was /usr/share/pixmaps/default.png. This file belongs to the package gendesk, which itself is a make dependency of geogebra.
I renamed it to pony.png and created a new default.png, the emblem on the files changed to the new png. I deleted the package gendesk (after checking no other package required it), which deleted the new file default.png and all emblems disappeared.
Now, I restored the new default.png (emblems are back), because I'm still looking for the link between the default emblem and this file /usr/share/pixmaps/default.png. I'm grepping my system for "pixmaps" and hope it will show me the link.
Edit : indeed it is static, it persists after a reboot, even before overGrive is started (therefor I hope the "grep pixmaps" might work).
Edit2 : /usr/share/perl5/vendor_perl/File/BaseDir.pm is a match, this file seems to give access to the pixmaps folder. It belongs to package perl-file-basedir, which is required by perl-file-mimeinfo...I'll dig in the link mint4all gave about mime types.
Edit3 : Python also seems to use the pixmaps folder, and overGrive is a Python application.
Last edited by trapangle (2020-04-01 10:59:32)
Offline
In an overGrive compiled file, I found a line gio set -t stringv "z" metadata::emblems zT, showing that overGrive uses emblems. I don't know which icon they intended to use, as default.png probably doesn't exist without gendesk, but I now know enough to stop looking for the details.
Thanks, MrEen, ToZ and mint4all for your help!
Offline
Thanks for the update and resolution. This has to be one of the strangest issues we've seen here - rainbow ponies.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Try manually deleting the emblem data:
gio set FILE metadata::emblems "[]"
...where FILE is the filename of the affected file. Refresh (F5) thunar afterwards.
I'm looking for the oposite: How to set a folder emblem from the command line.
I've tried
gio set -t stringv "/path/to/folder" metadata::emblems "[default]"
and
gio set -t stringv "/path/to/folder" metadata::emblems "default"
withou success...
Offline
gio set -t stringv "/path/to/folder" metadata::emblems "default"
...works for me. You need to refresh (F5) thunar for it to show up.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.013 seconds, 8 queries executed - Memory usage: 644.03 KiB (Peak: 676.88 KiB) ]