Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StatusNotifier glitching on wayland #4811

Closed
2 tasks done
Gurjaka opened this issue May 9, 2024 · 15 comments · Fixed by #4856
Closed
2 tasks done

StatusNotifier glitching on wayland #4811

Gurjaka opened this issue May 9, 2024 · 15 comments · Fixed by #4856

Comments

@Gurjaka
Copy link

Gurjaka commented May 9, 2024

Issue description

Whenever I open apps that should be in tray, and close them, the apps stay in tray, with no functionality! For example in this pic I opened spotify, and closed it, multiple times, this is what my status notifier looks like:
image

also must say that, this issue isn't persistent, it is sometimes there, and sometimes not.a

Version

0.25.1.dev47+ga00b1747

Backend

Wayland (experimental)

Config

# Copyright (c) 2010 Aldo Cortesi
# Copyright (c) 2010, 2014 dequis
# Copyright (c) 2012 Randall Ma
# Copyright (c) 2012-2014 Tycho Andersen
# Copyright (c) 2012 Craig Barnes
# Copyright (c) 2013 horsik
# Copyright (c) 2013 Tao Sauvage
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import os
import subprocess
from libqtile import hook, qtile
from libqtile import bar, layout, qtile, widget
from libqtile.config import Click, Drag, Group, Key, Match, Screen
from libqtile.lazy import lazy
from libqtile.utils import guess_terminal
from qtile_extras import widget
from libqtile.backend.wayland import InputConfig
from qtile_extras.widget.decorations import BorderDecoration

mod = "mod4"
terminal = guess_terminal()

keys = [
    # A list of available commands that can be bound to keys can be found
    # at https://docs.qtile.org/en/latest/manual/config/lazy.html
    # Switch between windows
    Key([mod], "Left", lazy.layout.left(), desc="Move focus to left"),
    Key([mod], "Right", lazy.layout.right(), desc="Move focus to right"),
    Key([mod], "Down", lazy.layout.down(), desc="Move focus down"),
    Key([mod], "Up", lazy.layout.up(), desc="Move focus up"),
    Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"),
    # Move windows between left/right columns or move up/down in current stack.
    # Moving out of range in Columns layout will create new column.
    Key([mod, "shift"], "Left", lazy.layout.shuffle_left(), desc="Move window to the left"),
    Key([mod, "shift"], "Right", lazy.layout.shuffle_right(), desc="Move window to the right"),
    Key([mod, "shift"], "Down", lazy.layout.shuffle_down(), desc="Move window down"),
    Key([mod, "shift"], "Up", lazy.layout.shuffle_up(), desc="Move window up"),

    # Grow windows. If current window is on the edge of screen and direction
    # will be to screen edge - window would shrink.
    Key([mod, "control"], "Down", lazy.layout.shrink(), desc="Shrink window"),
    Key([mod, "control"], "Up", lazy.layout.grow(), desc="Grow window"),
    Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),
    # Toggle between split and unsplit sides of stack.
    # Split = all windows displayed
    # Unsplit = 1 window displayed, like Max layout, but still with
    # multiple stack panes
    Key([mod, "shift"], "Return", lazy.layout.toggle_split(), desc="Toggle between split and unsplit sides of stack"),
    Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
    # Toggle between different layouts as defined below
    Key([mod], "v", lazy.next_layout(), desc="Toggle between layouts"),
    Key([mod, "Shift"], "q", lazy.window.kill(), desc="Kill focused window"),
    Key([mod], "f", lazy.window.toggle_fullscreen(), desc="Toggle fullscreen on the focused window"),
    Key([mod], "t", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"),
    Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
    Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
    Key([mod], "d", lazy.spawn("rofi -show drun"), desc="Spawn a command using a prompt widget"),
    Key([mod], "e", lazy.spawn("thunar"), desc="Exec Thunar file manager"),
    Key([mod], "b", lazy.spawn("brave"), desc="Exec Brave browser"),
    Key([mod], "c", lazy.spawn("code"), desc="Exec VSCode"),
    Key([mod], "Tab", lazy.spawn("swaync-client -t -sw"), desc="Exec VSCode"),
    Key([mod, "Shift"], "s", lazy.spawn('grim -g "$(slurp -d)" - | wl-copy', shell=True)),
    Key([], "XF86AudioRaiseVolume", lazy.spawn("wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+")),
    Key([], "XF86AudioLowerVolume", lazy.spawn("wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-")),
    Key([], "XF86AudioMute", lazy.spawn("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle")),
    Key([], "XF86MonBrightnessDown", lazy.spawn("brightnessctl set 5%-")),
    Key([], "XF86MonBrightnessUp", lazy.spawn("brightnessctl set +5%")),
]

# Add key bindings to switch VTs in Wayland.
# We can't check qtile.core.name in default config as it is loaded before qtile is started
# We therefore defer the check until the key binding is run by using .when(func=...)
for vt in range(1, 8):
    keys.append(
        Key(
            ["control", "mod1"],
            f"f{vt}",
            lazy.core.change_vt(vt).when(func=lambda: qtile.core.name == "wayland"),
            desc=f"Switch to VT{vt}",
        )
    )


# groups = [Group(i) for i in "123456789"]
groups = [
    Group("1", label="DEV"),
    Group("2", label="WWW"),
    Group("3", label="SYS"),
    Group("4", label="DOC"),
    Group("5", label="VBOX"),
    Group("6", label="ANI"),
    Group("7", label="MNG"),
    Group("8", label="MUS"),
    Group("9", label="DC"),
]

for i in groups:
    keys.extend(
        [
            # mod1 + group number = switch to group
            Key(
                [mod],
                i.name,
                lazy.group[i.name].toscreen(),
                desc="Switch to group {}".format(i.name),
            ),
            # mod1 + shift + group number = switch to & move focused window to group
            Key(
                [mod, "shift"],
                i.name,
                lazy.window.togroup(i.name, switch_group=True),
                desc="Switch to & move focused window to group {}".format(i.name),
            ),
            # Or, use below if you prefer not to switch to that group.
            # # mod1 + shift + group number = move focused window to group
            # Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
            #     desc="move focused window to group {}".format(i.name)),
        ]
    )

layout_theme = {
    "border_focus": "#5E81AC",
    "border_normal": "#4C566A",
    "border_width": 2,
    "margin": 5,
}

layouts = [
    # layout.Columns(border_focus_stack=["#d75f5f", "#8f3d3d"], border_width=4),
    #layout.Max(),
    # Try more layouts by unleashing below layouts.
    # layout.Stack(num_stacks=2),
    # layout.Bsp(),
    # layout.Matrix(),
    layout.MonadTall(**layout_theme),
    # layout.MonadWide(),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]

widget_defaults = dict(
    font="Fira Code Medium",
    fontsize=14,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        wallpaper = "~/wallpapers/Galaxy.jpg",
        wallpaper_mode = "fill",
        top=bar.Bar(
            [
                widget.TextBox(
                    fmt = " ",
                    padding = None,
                    fontsize = 20,
                    foreground = "#8FBCBB",
                    mouse_callbacks = {"Button1": lambda: qtile.cmd_spawn("brave -e nordtheme.com")},                    
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#8FBCBB",
                            padding_x = 6,
                            padding_y = None,
                        ),
                    ],
                ),

                widget.Clock(
                    foreground = "#D08770",
                    format="%I:%M %p",
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#D08770",
                            padding_x = 3,
                            padding_y = None,
                        ),
                    ],
                    ),

                widget.Spacer(
                    length = 2,
                ),

                widget.GroupBox(
                    active = "#81A1C1",
                    inactive = "#4C566A", 
                    block_highlight_text_color = "#FFFFFF", 
                    highlight_method = "line", 
                    highlight_color = "#3B4252", 
                    this_current_screen_border = "#81A1C1", 
                    urgent_alert_method = "line", 
                    urgent_border = "#BF616A",
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#4C566A",
                            padding_x = 3,
                            padding_y = None,
                        ),
                    ],
                    ),

                widget.Spacer(
                    length = 2,
                ),

                widget.CurrentLayout(
                    foreground = "#88C0D0", 
                    fmt = "|{}|",
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#88C0D0",
                            padding_x = 5,
                            padding_y = None,
                        ),
                    ],
                    ),

                widget.WindowName(
                    foreground = "#EBCB8B", 
                    #format = "{}",
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#EBCB8B",
                            padding_x = 3,
                            padding_y = None,
                        ),
                    ],
                    ),

                widget.Spacer(
                    length = 2,
                ),

                widget.Chord(
                    chords_colors={
                        "launch": ("#ff0000", "#ffffff"),
                    },
                    name_transform=lambda name: name.upper(),
                ),
                # NB Systray is incompatible with Wayland, consider using StatusNotifier instead
                # widget.StatusNotifier(),
                widget.StatusNotifier(
                    background = "#3B4252",
                    padding = 5,
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#5E81AC",
                            padding_x = None,
                            padding_y = None,
                        ),
                    ],
                ),

                widget.Spacer(
                    length = 4,
                ),

                widget.CheckUpdates(
                    foreground = "#D8DEE9",
                    distro = "Arch_yay",
                    colour_have_updates = "#D08770",
                    colour_no_updates = "#D08770",
                    display_format = " Updates: {updates}",
                    no_update_string=' Updates: N/A',
                    execute = "alacritty -e yay -Syu",
                    update_interval = 300,
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#D08770",
                            padding_x = None,
                            padding_y = None,
                        ),
                    ],

                ),

                widget.Spacer(
                    length = 4,
                ),

                widget.Battery(
                    foreground = "#A3BE8C",
                    charge_char = "󰂄",
                    discharge_char = "󰁿",
                    empty_char = "󰂎",
                    format = '{char} {percent:2.0%} {hour:d}:{min:02d}',
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#A3BE8C",
                            padding_x = 3,
                            padding_y = None,
                        ),
                    ],
                ),

                widget.Spacer(
                    length = 2,
                ),

                widget.CPU(
                    foreground = "#BF616A",
                    format = ' {load_percent}%',
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#BF616A",
                            padding_x = 3,
                            padding_y = None,
                        ),
                    ],
                ),

                widget.Spacer(
                    length = 2,
                ),

                widget.Memory(
                    foreground = "#B48EAD",
                    format = '{MemUsed:.0f}{mm}/{MemTotal:.0f}{mm}',
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#B48EAD",
                            padding_x = 3,
                            padding_y = None,
                        ),
                    ],
                ),

                widget.Spacer(
                    length = 2,
                ),

                widget.Volume(
                    foreground = "#EBCB8B",
                    fmt = " :{}",
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#EBCB8B",
                            padding_x = 3,
                            padding_y = None,
                        ),
                    ],
                ),

                widget.Spacer(
                    length = 2,
                ),

                widget.KeyboardLayout(
                    foreground = "#88C0D0",
                    configured_keyboards = ["us", "ge"],
                    display_map = {"us": "us", "ge": "ge"},
                    fmt = "{}",
                    decorations = [
                        BorderDecoration(
                            border_width = [0,0,2,0],
                            colour = "#88C0D0",
                            padding_x = 3,
                            padding_y = None,
                        ),
                    ],
                ),

                widget.Spacer(
                    length = 2,
                ),
            ],
            24,
            background = "#2E3440",
            #border_color = "#4C566A",
            #border_width = 2,
            # border_width=[2, 0, 2, 0],  # Draw top and bottom borders
            # border_color=["ff00ff", "000000", "ff00ff", "000000"]  # Borders are magenta
        ),
        # You can uncomment this variable if you see that on X11 floating resize/moving is laggy
        # By default we handle these events delayed to already improve performance, however your system might still be struggling
        # This variable is set to None (no cap) by default, but you can set it to 60 to indicate that you limit it to 60 events per second
        # x11_drag_polling_rate = 60,
    ),
]

# Drag floating layouts.
mouse = [
    Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
    Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()),
    Click([mod], "Button2", lazy.window.bring_to_front()),
]

dgroups_key_binder = None
dgroups_app_rules = []  # type: list
follow_mouse_focus = True
bring_front_click = False
floats_kept_above = True
cursor_warp = False
floating_layout = layout.Floating(
    float_rules=[
        # Run the utility of `xprop` to see the wm class and name of an X client.
        *layout.Floating.default_float_rules,
        Match(wm_class="confirmreset"),  # gitk
        Match(wm_class="makebranch"),  # gitk
        Match(wm_class="maketag"),  # gitk
        Match(wm_class="ssh-askpass"),  # ssh-askpass
        Match(title="branchdialog"),  # gitk
        Match(title="pinentry"),  # GPG key password entry
    ]
)
auto_fullscreen = True
focus_on_window_activation = "smart"
reconfigure_screens = True

# If things like steam games want to auto-minimize themselves when losing
# focus, should we respect this or not?
auto_minimize = True

# When using the Wayland backend, this can be used to configure input devices.
wl_input_rules = {
    "type:pointer": InputConfig(
        accel_profile = "flat",
    ),
    
    "type:keyboard": InputConfig(
        kb_layout = "us,ge", 
        kb_options = "grp:alt_shift_toggle",
    ),
}


# Auto Start
if qtile.core.name == "wayland":  
    os.environ["XDG_SESSION_DESKTOP"] = "qtile:wlroots"
    os.environ["XDG_CURRENT_DESKTOP"] = "qtile:wlroots"
    
@hook.subscribe.startup_once
def autostart():
    home = os.path.expanduser('~/.config/qtile/autostart.sh')
    subprocess.Popen([home])

# XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this
# string besides java UI toolkits; you can see several discussions on the
# mailing lists, GitHub issues, and other WM documentation that suggest setting
# this string if your java app doesn't work correctly. We may as well just lie
# and say that we're a working one by default.
#
# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in
# java that happens to be on java's whitelist.
wmname = "QTILE"

Logs

No response

Required

  • I have searched past issues to see if this bug has already been reported, and it hasn't been.
  • I understand that people give their precious time for free, and thus I've done my very best to make this problem as easy as possible to investigate.
@elParaguayo
Copy link
Member

elParaguayo commented May 11, 2024

Can you try running dbus-monitor "type='signal',member='StatusNotifierItemUnregistered'" and see what happens when you close spotify. There should be no output if the icon is still in your bar.

If that's the case, can you then run dbus-monitor "type='signal',member='NameOwnerChanged'" and repeat the process.

If you don't have dbus-monitor installed but do have systemd then you can run busctl monitor --user --match="type='signal',..."

@Gurjaka
Copy link
Author

Gurjaka commented May 11, 2024

I will try to do that once issue comes up, as I said it isn't persistent, will notify you with news

@ftpd
Copy link
Contributor

ftpd commented May 23, 2024

@elParaguayo since I'm experiencing the same problem, I've did the tests. The first dbus-monitor command didn't produce any new output, just like you've said. the second gave me this:

signal time=1716460882.654006 sender=org.freedesktop.DBus -> destination=(null destination) serial=3660 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.1777"
   string ":1.1777"
   string ""
signal time=1716460883.665405 sender=org.freedesktop.DBus -> destination=(null destination) serial=3661 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.1772"
   string ":1.1772"
   string ""
signal time=1716460883.691144 sender=org.freedesktop.DBus -> destination=(null destination) serial=3662 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.1776"
   string ":1.1776"
   string ""
signal time=1716460883.691626 sender=org.freedesktop.DBus -> destination=(null destination) serial=3663 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.1775"
   string ":1.1775"
   string ""
signal time=1716460883.691928 sender=org.freedesktop.DBus -> destination=(null destination) serial=3664 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.1774"
   string ":1.1774"
   string ""

I've tried on Slack (and now I have 3 Slack icons and no Slack actually running).

@ftpd
Copy link
Contributor

ftpd commented May 23, 2024

Also, maybe it's helpful: restarting the whole wayland session helps for an unmeasurable amount of time.

@ftpd
Copy link
Contributor

ftpd commented May 23, 2024

Oh, one more thing - log output. When I close such app, I have:

2024-05-23 12:43:50,597 WARNING libqtile __init__.py:click():L283 Unable to send click event on StatusNotifier menu.

and when I click it again later, I have:

2024-05-23 12:43:55,311 ERROR libqtile loop.py:_handle_exception():L62 Exception in event loop:
Traceback (most recent call last):
  File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/lib/python3.12/site-packages/qtile_extras/resources/dbusmenu/__init__.py", line 237, in parse_menu
    update_needed, returned_menu = task.result()
                                   ^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/qtile_extras/resources/dbusmenu/__init__.py", line 200, in _get_menu
    menu = await self._interface.call_get_layout(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/dbus_next/aio/proxy_object.py", line 92, in method_fn
    BaseProxyInterface._check_method_return(msg, intr_method.out_signature)
  File "/usr/lib/python3.12/site-packages/dbus_next/proxy_object.py", line 62, in _check_method_return
    raise DBusError._from_message(msg)
dbus_next.errors.DBusError: The name :1.1789 was not provided by any .service files

@elParaguayo
Copy link
Member

@elParaguayo since I'm experiencing the same problem, I've did the tests. The first dbus-monitor command didn't produce any new output, just like you've said. the second gave me this:

signal time=1716460882.654006 sender=org.freedesktop.DBus -> destination=(null destination) serial=3660 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.1777"
   string ":1.1777"
   string ""
signal time=1716460883.665405 sender=org.freedesktop.DBus -> destination=(null destination) serial=3661 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.1772"
   string ":1.1772"
   string ""
signal time=1716460883.691144 sender=org.freedesktop.DBus -> destination=(null destination) serial=3662 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.1776"
   string ":1.1776"
   string ""
signal time=1716460883.691626 sender=org.freedesktop.DBus -> destination=(null destination) serial=3663 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.1775"
   string ":1.1775"
   string ""
signal time=1716460883.691928 sender=org.freedesktop.DBus -> destination=(null destination) serial=3664 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.1774"
   string ":1.1774"
   string ""

I've tried on Slack (and now I have 3 Slack icons and no Slack actually running).

Thanks for this. Could you try the following:

  1. When the app is open, run:
qtile cmd-obj -o widget statusnotifier -f eval -a "[item.service for item in host.items]"
  1. Then run the dbus-monitor "type='signal',member='NameOwnerChanged'" command as before and exit the app.

  2. Finally, run the qtile cmd-obj ... command again.

@elParaguayo
Copy link
Member

That error message is expected given the icon remains after the app is closed.

@ftpd
Copy link
Contributor

ftpd commented May 23, 2024

I'm sorry, but I had to restart anyway, so now the problem is gone. I will provide the needed info as soon as it happens again.

@Gurjaka
Copy link
Author

Gurjaka commented May 23, 2024

Sorry for not being able to help, I had to move to windows and no longer using qtile, waiting for new pc to arrive.

@elParaguayo
Copy link
Member

I'm sorry, but I had to restart anyway, so now the problem is gone. I will provide the needed info as soon as it happens again.

No rush at all.

@elParaguayo
Copy link
Member

Sorry for not being able to help, I had to move to windows and no longer using qtile, waiting for new pc to arrive.

No problem and thanks for reporting the bug in the first place.

@arjanoosting
Copy link
Contributor

arjanoosting commented May 25, 2024

I have the same issue with some apps like Ferdium and Jitsi:

Output of the first qtile cmd-obj -o widget statusnotifier -f eval -a "[item.service for item in host.items]"

(True, "[':1.23', ':1.127']")

Output of dbus-monitor "type='signal',member='NameOwnerChanged'" while closing ferdium

signal time=1716625417.516383 sender=org.freedesktop.DBus -> destination=:1.129 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
string ":1.129"
signal time=1716625417.516472 sender=org.freedesktop.DBus -> destination=:1.129 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string ":1.129"
signal time=1716625422.413939 sender=org.freedesktop.DBus -> destination=(null destination) serial=200 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string "org.ferdium.Ferdium"
string ":1.128"
string ""
signal time=1716625422.414115 sender=org.freedesktop.DBus -> destination=(null destination) serial=201 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.128"
string ":1.128"
string ""
signal time=1716625422.464261 sender=org.freedesktop.DBus -> destination=(null destination) serial=202 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.127"
string ":1.127"
string ""
signal time=1716625422.871264 sender=org.freedesktop.DBus -> destination=(null destination) serial=203 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.126"
string ":1.126"
string ""
signal time=1716625422.871316 sender=org.freedesktop.DBus -> destination=(null destination) serial=204 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.123"
string ":1.123"
string ""
signal time=1716625422.888871 sender=org.freedesktop.DBus -> destination=(null destination) serial=205 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.122"
string ":1.122"
string ""
signal time=1716625422.888937 sender=org.freedesktop.DBus -> destination=(null destination) serial=206 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.121"
string ":1.121"
string ""

Second run of qtile cmd-obj -o widget statusnotifier -f eval -a "[item.service for item in host.items]"

(True, "[':1.23', ':1.127']")

@elParaguayo
Copy link
Member

Thanks. That's very strange. I can see that service :1.127 is removed from the bus but it's not being cleared from the list of items. It's really not clear why that's not happening here.

@elParaguayo
Copy link
Member

Ok - I know what the issue is. Now I just need to find the cause! Will hopefully get this fixed soon.

elParaguayo added a commit to elParaguayo/qtile that referenced this issue Jun 1, 2024
Icons were not being removed after reloading the config as the match
rule to listen for removed services were being deleted.

This PR refactors the code and adds the ability to preserve match rules
when config is being reloaded.

Fixes qtile#4811
@elParaguayo
Copy link
Member

Found it.

This should be fixed in #4856.

elParaguayo added a commit to elParaguayo/qtile that referenced this issue Jun 1, 2024
Icons were not being removed after reloading the config as the match
rule to listen for removed services were being deleted.

This PR refactors the code and adds the ability to preserve match rules
when config is being reloaded.

Fixes qtile#4811
elParaguayo added a commit to elParaguayo/qtile that referenced this issue Jun 1, 2024
Icons were not being removed after reloading the config as the match
rule to listen for removed services were being deleted.

This PR refactors the code and adds the ability to preserve match rules
when config is being reloaded.

Fixes qtile#4811
elParaguayo added a commit to elParaguayo/qtile that referenced this issue Jun 2, 2024
Icons were not being removed after reloading the config as the match
rule to listen for removed services were being deleted.

This PR refactors the code and adds the ability to preserve match rules
when config is being reloaded.

Fixes qtile#4811
elParaguayo added a commit that referenced this issue Jun 2, 2024
Icons were not being removed after reloading the config as the match
rule to listen for removed services were being deleted.

This PR refactors the code and adds the ability to preserve match rules
when config is being reloaded.

Fixes #4811
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants