Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-07-31 11:21:34

mastro
Member
From: Germany
Registered: 2020-11-22
Posts: 19
Website

XFCE 4.16 on Debian 11: Problem with load of icon-theme

Hello everyone,

I have installed Debian 11 with XFCE 4.16 and custom icon-theme.
My icon-theme is a full copy auf Adwaita with some changed/added lcons.

All works fine but the icon-theme will be ignored 50% of tryed logins.

See Screenshots with Amazon-Symbol:

If xfdesktop starts faster than xfconf the Amazon-symbol will be a default symbol.
Faild Icon Load

If I restart xfdesktop in this case, all will be fine!
Also all will be fine in 50% of logins.
Faild Icon Load

If I replace /usr/share/icons/Adwaita with my icon-theme,
then will be the Icons alltimes correct loaded.

I think, on my Test-Maschine (Virtualbox on Ryzen 5 2400 with NVMe) starts xfdesktop
sometimes faster than xfconf load the current config. In this case, xfconf answers to
xfdesktop that "Adwaita" is the current icon-theme.

Can anyone check my investigation?
Has anyone a tip to test?

Marcus

Offline

#2 2021-07-31 11:42:56

lastonestanding
Member
Registered: 2018-11-12
Posts: 21

Re: XFCE 4.16 on Debian 11: Problem with load of icon-theme

As workaround you could create the file $HOME/.config/gtk-3.0/settings.ini and add the following two lines:

[Settings]
gtk-icon-theme-name = NameOfYourIconTheme

Offline

#3 2021-07-31 11:53:06

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

Re: XFCE 4.16 on Debian 11: Problem with load of icon-theme

It does sound like some sort of race condition. Can you share the contents of your ~/.xsession-errors log file when the issue happens?

Some questions:

  1. Where is your custom icon theme located? If in your home directory, is the home directory on the same drive or located somewhere else?

  2. Does the correct icon theme get applied elsewhere (menu, thunar)? In other words, does the problem only happen in xfdesktop?

  3. Does this happen on a fresh reboot - as opposed to a log out and back in again?

You might also try deleting the contents of ~/.cache/sessions before you log into an Xfce session - in case something is cached.


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

#4 2021-07-31 14:53:50

mastro
Member
From: Germany
Registered: 2020-11-22
Posts: 19
Website

Re: XFCE 4.16 on Debian 11: Problem with load of icon-theme

lastonestanding wrote:

As workaround you could create the file $HOME/.config/gtk-3.0/settings.ini and add the following two lines:

[Settings]
gtk-icon-theme-name = NameOfYourIconTheme

Verifyed!

If I use this setting, in 10 of 10 attempts works fine!
If I rename "settings.ini" to "setting.ini_off" error ist back in 50%.

Now I make my Tests for ToZ...

Offline

#5 2021-07-31 15:35:52

mastro
Member
From: Germany
Registered: 2020-11-22
Posts: 19
Website

Re: XFCE 4.16 on Debian 11: Problem with load of icon-theme

ToZ wrote:

It does sound like some sort of race condition. Can you share the contents of your ~/.xsession-errors log file when the issue happens?

Some questions:

  1. Where is your custom icon theme located? If in your home directory, is the home directory on the same drive or located somewhere else?

  2. Does the correct icon theme get applied elsewhere (menu, thunar)? In other words, does the problem only happen in xfdesktop?

  3. Does this happen on a fresh reboot - as opposed to a log out and back in again?

You might also try deleting the contents of ~/.cache/sessions before you log into an Xfce session - in case something is cached.

First few more information:
- My Test-Environment is in Virtualbox. Only 1 VBox-Harddisk, which is stored on my NVMe.
- My Icon-Theme is in /usr/share/icons/XLinux, the same path as Adwaita.
- If the error occurs:
  - xfce4-session-logout doesn't show also a changed icon from me
  - whiskermenue shows at same time the correct Amazon-Icon
- XFCE-Default-applicationmenu never shows icons, but in settings of applicationmenu are icons enabled

So I have make some tests...
1. It takes no effect if I reboot or only logout/login. 50% error

2. I have insert "rm -r /home/*/.cache/sessions/*" in /etc/Xsession.d/97startup.
- Session-Cache will be deleted at start of lightdm. (verified)
- In 80% of attempt icons will be correct loaded.
- If I do a relogin (without reboot) I got 50% the failure.

Here my logfile xsession-error if the failure occurs:

Xsession: X session started for mastro at Sa 31. Jul 16:54:55 CEST 2021
WARNING: tempfile is deprecated; consider using mktemp instead.
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting XAUTHORITY=/home/mastro/.Xauthority
localuser:mastro being added to access control list
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting USER=mastro
dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11
dbus-update-activation-environment: setting HOME=/home/mastro
dbus-update-activation-environment: setting DESKTOP_SESSION=xlinux
dbus-update-activation-environment: setting XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting LOGNAME=mastro
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
dbus-update-activation-environment: setting XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting LANG=de_DE.UTF-8
dbus-update-activation-environment: setting XDG_SESSION_DESKTOP=xlinux
dbus-update-activation-environment: setting XAUTHORITY=/home/mastro/.Xauthority
dbus-update-activation-environment: setting XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/mastro
dbus-update-activation-environment: setting SHELL=/bin/bash
dbus-update-activation-environment: setting GDMSESSION=xlinux
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting PWD=/home/mastro
/usr/bin/startxfce4: X server already running on display :0
/usr/bin/iceauth:  creating new authority file /run/user/1000/ICEauthority
xfce4-session-Message: 16:54:55.606: SSH authentication agent is already running
gpg-agent: Ein gpg-agent läuft bereits - ein weiterer wird nicht gestartet
(xfce4-panel:819): garcon-CRITICAL **: 16:54:55.898: garcon_gtk_menu_get_desktop_actions_menu: assertion 'actions != NULL' failed
(xfce4-panel:819): garcon-CRITICAL **: 16:54:55.935: garcon_gtk_menu_get_desktop_actions_menu: assertion 'actions != NULL' failed
(xfce4-panel:819): garcon-CRITICAL **: 16:54:55.968: garcon_gtk_menu_get_desktop_actions_menu: assertion 'actions != NULL' failed
(xfwm4:817): xfwm4-WARNING **: 16:54:56.051: Unsupported GL renderer (llvmpipe (LLVM 11.0.1, 256 bits)).
Setting up watches.
Watches established.
1000
** (xfce4-power-manager:868): WARNING **: 16:54:56.290: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.PowerManagement': no such name
** (xfce4-power-manager:868): WARNING **: 16:54:56.290: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name
(xfce4-power-manager:868): GLib-GObject-WARNING **: 16:54:56.372: ../../../gobject/gsignal.c:2614: signal 'Changed' is invalid for instance '0x55edfc42d520' of type 'GDBusProxy'
** (wrapper-2.0:964): WARNING **: 16:54:56.415: No outputs have backlight property
(xfce4-power-manager:868): xfce4-power-manager-WARNING **: 16:54:56.475: could not map keysym 1008ffa8 to keycode
** (xfce4-power-manager:868): WARNING **: 16:54:56.487: No outputs have backlight property
(xfce4-power-manager:868): xfce4-power-manager-WARNING **: 16:54:56.499: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.UPower.KbdBacklight” on object at path /org/freedesktop/UPower/KbdBacklight
(wrapper-2.0:846): Gtk-WARNING **: 16:54:56.514: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)
(wrapper-2.0:974): Gtk-WARNING **: 16:54:56.574: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)
(wrapper-2.0:968): Gtk-WARNING **: 16:54:56.606: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner PulseaudioButton)
(wrapper-2.0:964): Gtk-WARNING **: 16:54:56.609: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner PowerManagerButton)

Offline

#6 2021-07-31 16:45:06

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

Re: XFCE 4.16 on Debian 11: Problem with load of icon-theme

Nothing really relevant in the log file.

If lastonestanding's suggestion works, is that a viable workaround?


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

#7 2021-07-31 17:03:40

mastro
Member
From: Germany
Registered: 2020-11-22
Posts: 19
Website

Re: XFCE 4.16 on Debian 11: Problem with load of icon-theme

I have a dirty solution....

I have definded XDG_DATA_DIR as "/usr/share/xlinux:/usr/share".
In "/usr/share/xlinux" I store the Default-Settings for our customers.
As sample the applications/*.desktop files for our individual software.

I have created the dircetory "icons" and defined the link "Adwaita",
/usr/share/xlinux/icons/Adwaita -> /usr/share/icons/XLinux

This solution works fine, but the error in the Code still exists.

The "~/gtk-3.0/setting.ini"-solution is possible would the setting.ini-File global for all users....
But copy the setting.ini to /usr/share/themes/Adwaita/gtk-3.0/ doesn't effects.
(We use Default-Adwaita-Theme for Desktop)

Offline

#8 2021-07-31 19:57:52

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

Re: XFCE 4.16 on Debian 11: Problem with load of icon-theme

mastro wrote:

The "~/gtk-3.0/setting.ini"-solution is possible would the setting.ini-File global for all users....
But copy the setting.ini to /usr/share/themes/Adwaita/gtk-3.0/ doesn't effects.
(We use Default-Adwaita-Theme for Desktop)

Try putting it in /etc/gtk-3.0 - it should impact all users, though I've never tested this.


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

#9 2021-08-01 00:08:22

mastro
Member
From: Germany
Registered: 2020-11-22
Posts: 19
Website

Re: XFCE 4.16 on Debian 11: Problem with load of icon-theme

ToZ wrote:

Try putting it in /etc/gtk-3.0 - it should impact all users, though I've never tested this.

Ho ToZ,

I have tested 15 times, always Icons correct loaded.

But I think the Link-Solution is better to deploy by deb-Package.
A deb-package with /etc/gtk-3.0/settings.ini can conflict with other packages....

Thanks for your help!

Do you mean that some developer will be fix this issue in future version?

Marcus

Offline

Board footer

Powered by FluxBB