Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-03-30 15:08:26

trapangle
Member
Registered: 2020-03-30
Posts: 12

[Solved] A strange emblem appeared

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

#2 2020-03-30 17:14:10

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: [Solved] A strange emblem appeared

Hi trapangle and welcome.

What does this emblem look like? Is it an X or an arrow pointing to the right?

Offline

#3 2020-03-30 18:24:36

trapangle
Member
Registered: 2020-03-30
Posts: 12

Re: [Solved] A strange emblem appeared

It looks like a...rainbow little pony (yes, really strange, I agree) :
rainbow little pony

Offline

#4 2020-03-30 20:27:44

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: [Solved] A strange emblem appeared

Wowzers!

I have no idea. Did you install this or something similar: https://www.xfce-look.org/p/1002365/

Offline

#5 2020-03-30 21:07:51

trapangle
Member
Registered: 2020-03-30
Posts: 12

Re: [Solved] A strange emblem appeared

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

#6 2020-03-30 21:51:16

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: [Solved] A strange emblem appeared

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

#7 2020-03-31 07:08:53

trapangle
Member
Registered: 2020-03-30
Posts: 12

Re: [Solved] A strange emblem appeared

In this folder, there is a file which doesn't have the emblem :
p5QnvVR.png

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

#8 2020-03-31 10:10:30

trapangle
Member
Registered: 2020-03-30
Posts: 12

Re: [Solved] A strange emblem appeared

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

#9 2020-03-31 12:05:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] A strange emblem appeared

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

#10 2020-03-31 12:33:32

trapangle
Member
Registered: 2020-03-30
Posts: 12

Re: [Solved] A strange emblem appeared

It's thunar 1.8.14.
I'm on ArchLinux, if it matters.

Offline

#11 2020-03-31 12:40:56

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] A strange emblem appeared

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

#12 2020-03-31 13:01:45

trapangle
Member
Registered: 2020-03-30
Posts: 12

Re: [Solved] A strange emblem appeared

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

#13 2020-03-31 13:39:14

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] A strange emblem appeared

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

#14 2020-03-31 13:45:42

trapangle
Member
Registered: 2020-03-30
Posts: 12

Re: [Solved] A strange emblem appeared

I remember switching themes, but I never had another file manager.

Offline

#15 2020-03-31 15:47:26

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] A strange emblem appeared

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

#16 2020-03-31 16:36:10

trapangle
Member
Registered: 2020-03-30
Posts: 12

Re: [Solved] A strange emblem appeared

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

#17 2020-03-31 16:59:21

mint4all
Member
From: off the map
Registered: 2018-08-21
Posts: 263

Re: [Solved] A strange emblem appeared

trapangle wrote:

... 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.2 -- xfce 4.18 ... Apple iMAC -- Dell & HP Desktops and Laptops -- Family & Community Support

Offline

#18 2020-03-31 17:31:54

trapangle
Member
Registered: 2020-03-30
Posts: 12

Re: [Solved] A strange emblem appeared

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

#19 2020-03-31 23:01:01

mint4all
Member
From: off the map
Registered: 2018-08-21
Posts: 263

Re: [Solved] A strange emblem appeared

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.2 -- xfce 4.18 ... Apple iMAC -- Dell & HP Desktops and Laptops -- Family & Community Support

Offline

#20 2020-04-01 02:17:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] A strange emblem appeared

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

#21 2020-04-01 07:23:28

trapangle
Member
Registered: 2020-03-30
Posts: 12

Re: [Solved] A strange emblem appeared

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

#22 2020-04-01 16:42:01

trapangle
Member
Registered: 2020-03-30
Posts: 12

Re: [Solved] A strange emblem appeared

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

#23 2020-04-01 18:05:46

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] A strange emblem appeared

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

#24 2020-09-15 02:52:03

GabrielCoutinho
Member
From: Portugal
Registered: 2019-12-15
Posts: 18

Re: [Solved] A strange emblem appeared

ToZ wrote:

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

#25 2020-09-15 10:26:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] A strange emblem appeared

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

Board footer

Powered by FluxBB