Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-02-15 19:54:21

espas
Member
Registered: 2021-09-29
Posts: 31

[SOLVED] Application Autostart and Status Tray issue

Xfce's Status Tray separates icons between Status Notifiers and Systray Icons (which I hate btw, because you cannot organize the icons the way you want) and this is causing an issue for me because when I open apps like Telegram, KeePassXC, Flameshot or Birdtray manually they are considered Status Notifiers by the plugin, but when I login and they are autostarted then they are considered Systray Icons sometimes and they do not behave as they should because the background when I right click on them is not the same as my theme's and for KeePassXC even the icon doesn't follow my system theme when it is autostarted as a Systray Icon.

Is there a way to force them to be autostarted as Status Notifiers like they are when I open them manually?

Edit:
I figured out that if I make a script to open these apps and make Xfce autostart this script instead of autostarting the apps themselves it fixes the problem. So it solved the issue, but I'm still wondering if there is a better and more elegant solution for this problem.

Last edited by espas (2022-02-15 20:01:28)

Offline

#2 2022-02-15 21:15:41

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

Re: [SOLVED] Application Autostart and Status Tray issue

Hmmm. Sounds like some sort of race condition.

Which version of Xfce are you running? And which distro?
Also, if you have an ~/.xsession-errors file, can you post its content right after you login with the incorrect icons displayed?


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 2022-02-17 19:44:29

espas
Member
Registered: 2021-09-29
Posts: 31

Re: [SOLVED] Application Autostart and Status Tray issue

ToZ wrote:

Hmmm. Sounds like some sort of race condition.

Which version of Xfce are you running? And which distro?
Also, if you have an ~/.xsession-errors file, can you post its content right after you login with the incorrect icons displayed?

I'm running Xfce 4.16 on Arch Linux.


I logged out then logged in again and this is the content in ~/.xsession-errors:

gpg-agent: a gpg-agent is already running - not starting a new one
Warning:          Could not resolve keysym XF86EmojiPicker
Warning:          Could not resolve keysym XF86EmojiPicker

(xfsettingsd:1856129): xfconf-WARNING **: 16:37:37.247: Failed to set property "displays::/ActiveProfile": Operation was cancelled

** (xfce4-clipman:1856865): WARNING **: 16:37:37.925: Unable to register GApplication: An object is already exported for the interface org.gtk.Application at /org/xfce/clipman

(xfce4-clipman:1856865): GLib-GIO-CRITICAL **: 16:37:37.925: g_application_get_is_remote: assertion 'application->priv->is_registered' failed

(xfce4-clipman:1856865): GLib-WARNING **: 16:37:37.925: g_set_application_name() called multiple times

** (xfce4-screensaver:1856921): WARNING **: 16:37:38.036: screensaver already running in this session

** (xfce4-power-manager:1856893): WARNING **: 16:37:38.128: 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:1856893): WARNING **: 16:37:38.129: 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:1856893): GLib-GObject-WARNING **: 16:37:38.156: ../glib/gobject/gsignal.c:2614: signal 'Changed' is invalid for instance '0x55c133d46af0' of type 'GDBusProxy'

(xfce4-power-manager:1856893): xfce4-power-manager-WARNING **: 16:37:38.173: could not map keysym 1008ffa8 to keycode


(xfce4-power-manager:1856893): xfce4-power-manager-WARNING **: 16:37:38.198: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/UPower/KbdBacklight”
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
YubiKey: Failed to establish PCSC context.
YubiKey: PCSC interface is disabled or not initialized.
error: : cannot open
error: : cannot open
error: : cannot open
WARNING: 2022-02-17 16:37:39,023: create_menu() 'Variety Slideshow is not installed. This is an optional extension adding pan-and-zoom slideshows to Variety: see https://github.com/peterlevi/variety-slideshow for details'
xdg-settings: default-url-scheme-handler not implemented for xfce
xdg-settings: default-url-scheme-handler not implemented for xfce

(wrapper-2.0:1856971): Gtk-WARNING **: 16:37:39.405: Attempting to add a widget with type GtkToggleButton to a container of type XfcePanelPlugin, but the widget is already inside a container of type XfcePanelPlugin, please remove the widget from its existing container first.

(wrapper-2.0:1856912): libsystray-CRITICAL **: 16:37:39.551: sn_item_invalidate: assertion 'item->properties_proxy != NULL' failed

(wrapper-2.0:1856928): Gtk-WARNING **: 16:37:39.569: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node button, owner PulseaudioButton)

(wrapper-2.0:1856971): Gtk-WARNING **: 16:37:39.617: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node button, owner GtkToggleButton)
weather-Message: 16:37:39.667: getting https://api.met.no/weatherapi/locationforecast/2.0/classic?lat=-30.116900&lon=-51.265800&altitude=0

(pamac-tray:1856952): Gdk-CRITICAL **: 16:37:39.667: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed

(wrapper-2.0:1857613): Gtk-WARNING **: 16:37:39.672: gtk_widget_size_allocate(): attempt to allocate widget with width -1 and height 24

(wrapper-2.0:1856580): Gtk-WARNING **: 16:37:39.684: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node button, owner GtkToggleButton)

(wrapper-2.0:1857152): Gtk-WARNING **: 16:37:39.755: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node button, owner GtkToggleButton)

(wrapper-2.0:1856912): libsystray-CRITICAL **: 16:37:39.874: sn_item_invalidate: assertion 'item->properties_proxy != NULL' failed
QObject::startTimer: Timers cannot have negative intervals
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
(node:1858281) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `exe --trace-deprecation ...` to show where the warning was created)
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)

(wrapper-2.0:1856912): LIBDBUSMENU-GLIB-WARNING **: 16:37:43.680: Getting layout failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: No such object path '/NO_DBUSMENU'
** Message: 16:38:08.549: updates_checker.vala:71: check updates
** Message: 16:38:09.016: updates_checker.vala:101: 0 updates found

(xfwm4:1855974): xfwm4-WARNING **: 16:40:27.116: unmanaged net_wm_state (window 0x3c00013, atom "_NET_WM_STATE_STAYS_ON_TOP")
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile

(xfwm4:1855974): xfwm4-WARNING **: 16:40:37.912: unmanaged net_wm_state (window 0x3c0010a, atom "_NET_WM_STATE_STAYS_ON_TOP")
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1609, resource id: 10520077, major code: 40 (TranslateCoords), minor code: 0

(xfce4-about:1993336): Gtk-WARNING **: 16:41:10.715: Content added to the action area of a dialog using header bars

(xfce4-about:1993336): Gtk-WARNING **: 16:41:10.716: Content added to the action area of a dialog using header bars
xfce4-about-Message: 16:41:10.801: No vendor information found in "/usr/share/xfce4/vendorinfo".

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 544.2 KiB (Peak: 546.47 KiB) ]