Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-10-15 13:03:41

deleted7
Member
Registered: 2017-11-04
Posts: 6

No trash icon on desktop with Gnome-brave icon set

Hello,

Since Debian buster, I noticed that the empty trash icon vanishes from desktop with gnome-colors icon set.

Could Xfce be the cause ?

Offline

#2 2019-10-15 16:22:36

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,006

Re: No trash icon on desktop with Gnome-brave icon set

No, it's not Xfce's fault. But it is a weird situation though.

Basically, gnome-colors is missing the icon to display. If you shrink the size of desktop icons to 32, the icon will show up because that icon exists. The default xfdesktop icon size is 48 and gnome-colors doesn't have any 48 icons defined (as opposed to other icon themes that do). Why it is able to display the trash-full icon is a bit of a mystery to me.

gio info Trash://

...will get you the info on which icon is being used - user-trash.

The best way to fix this is to have it fixed in the icon theme.

--------------

As a workaround, the following will work:

  1. Create a custom icon theme:

    mkdir -p ~/.icons/MyIconTheme
  2. Create the following index.theme file inside of the ~/.icons/MyIconTheme folder:

    [Icon Theme]
    Name=myCustomTheme
    Comment=My Custom GNOME Colors Theme
    Example=folder
    Inherits=gnome-brave
    
    # Directory list
    Directories=48x48/places
    
    [48x48/places]
    Context=Places
    Size=48
    Type=Fixed

    ...you'll need to change the "Inherits=gnome-brave" line to specify the theme variant you want to use. So for example, if you want to use the "gnome-noble" icon theme, the line should read: "Inherits=gnome-noble"

  3. Create the necessary folders in your custom icon theme:

    mkdir -p ~/.icons/MyIconTheme/48x48/places
  4. Now copy over this missing trash icon:

    cp /usr/share/icons/gnome/48x48/places/user-trash.png ~/.icons/MyIconTheme/48x48/places
  5. And update the icon cache:

    gtk-update-icon-cache ~/.icons/MyIconTheme
  6. From the Appearance > Icons tab, select your Custom Icon theme.

This will create a new custom icon theme that grabs the user-trash icon from the gnome theme and uses it while inheriting all the other icons from your icon theme of choice.

Edit: made the index.theme file smaller to only hold what is necessary for this to work

Last edited by ToZ (2019-10-15 16:24:53)


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

#3 2019-10-15 20:18:56

deleted7
Member
Registered: 2017-11-04
Posts: 6

Re: No trash icon on desktop with Gnome-brave icon set

Thanks for your explanations and your trick.

Offline

Board footer

Powered by FluxBB