omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Notifications are not showing up properly

Open Danannme opened this issue 3 months ago • 2 comments

System details

Omarchy 4.0.1-1

What's wrong?

Image

Even all notification keybindings are completely non-functional

Danannme avatar Aug 30 '26 10:08 Danannme

I had a similar issue where the notifications became weird and ugly (the notification changes depend on the theme i cant confirm its the same case for you ) I found out this

Notification System Deep Investigation and Complete Fix

The Rogue xfce4-notifyd DBus Hijack

  • Diagnosis: When notifications appeared brownish, chunky, and ignored all Quickshell styling, a deep investigation of DBus services revealed that xfce4-notifyd had auto-activated on DBus and hijacked the org.freedesktop.Notifications bus name.
  • Fix Applied:
    1. Killed xfce4-notifyd.(btop)
    2. Permanently masked its auto-activation by creating a user symlink to /dev/null:
      mkdir -p ~/.local/share/dbus-1/services
      ln -sf /dev/null ~/.local/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service
      

Rockeyxx avatar Sep 01 '26 04:09 Rockeyxx

The notifications in your screenshot aren't drawn by Omarchy. The grey frame, monospace text, blue background for normal urgency and dark grey for low, all in one box with separator lines, are dunst's stock defaults. The Omarchy shell draws separate themed cards. So dunst is most likely holding org.freedesktop.Notifications on your session bus, and the shell can't claim it.

How that happens: the shell is the notification server, but it doesn't own that name before it starts at login, or in the second or so while it restarts after a crash or an update. If anything sends a notification in that gap (a web app, or Omarchy's own omarchy-notification-send), the bus starts dunst from its activation file to deliver it. Once dunst holds the name, the shell's notification server fails to register, and it only tries again if dunst releases the name, which it doesn't do while it's running. The notification keybindings (SUPER + , and the others in default/hypr/bindings/utilities.lua:25-29) act on the shell's own notification list, so they can't touch what dunst shows. That is why they look dead.

I reproduced this on a clean Omarchy 4.0.4 VM with dunst 1.13.2 installed. I killed the shell and sent one notification before it relaunched. Dunst took the name, and the relaunched shell logged Could not register notification server at org.freedesktop.Notifications, presumably because one is already registered. Dunst still held the name after omarchy-restart-shell, and the dismiss command found nothing to dismiss. Without dunst installed, the VM had no other notification service to start and the shell kept the name. The xfce4-notifyd case in the comment above is the same mechanism with a different daemon.

To confirm it's the same on your machine, please post the output of:

busctl --user status org.freedesktop.Notifications | grep -E '^(PID|Comm)='
pacman -Qi dunst | grep -E '^(Install Reason|Required By)'

If dunst is the owner and nothing you use needs it, removing it and stopping the running copy should give notifications back to the shell. Quickshell retries registration as soon as the name is released:

sudo pacman -Rns dunst
pkill -x dunst

Omarchy doesn't currently guard against another notification daemon taking the name. Its readiness checks (bin/omarchy-restart-shell:66, bin/omarchy-notification-wait:11) accept any owner of the name as the shell. What Omarchy should do about a competing daemon is a decision for the maintainer, so no fix has been opened. This is waiting on the maintainer, and on the output above from you.

Reviewed by Claude Opus 5.5, with a second opinion from Codex Medium. Codex agreed with the mechanism, though that agreement isn't a guaranteed independent check. It added the point about the readiness checks accepting a foreign daemon, and corrected the workaround: masking dunst's activation file alone wouldn't stop a copy that is already running.

omarchybot avatar Oct 09 '26 09:10 omarchybot