From be1d406b264efd9d7d12bc3f450cb2ce7cfb270a Mon Sep 17 00:00:00 2001 From: funman300 Date: Wed, 13 May 2026 13:23:42 -0700 Subject: [PATCH] niri: set XDG_CURRENT_DESKTOP=niri:GNOME for tray support Many tray libraries (Electron's, Qt's StatusNotifier) gate icon creation on a recognised XDG_CURRENT_DESKTOP value. Bare "niri" makes them silently skip tray creation. Adding ":GNOME" as a fallback identifier keeps niri primary while letting apps create their tray icons. Vesktop and Telegram are confirmed to want tray icons but were not creating them; this fix unblocks both. Co-Authored-By: Claude Opus 4.7 (1M context) --- niri/config.kdl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/niri/config.kdl b/niri/config.kdl index c48b6ff..72f0460 100644 --- a/niri/config.kdl +++ b/niri/config.kdl @@ -31,6 +31,10 @@ input { } } +environment { + XDG_CURRENT_DESKTOP "niri:GNOME" +} + spawn-at-startup "waybar" spawn-at-startup "mako" spawn-at-startup "awww-daemon"