Work / CS-17

Debugging an empty tray menu down to a D-Bus handshake

Year
2026
Type
Personal project
Themes
Personal
Stack
Python, D-Bus

Result, up front

  • ~330lines of Python, no GUI toolkit

Situation

A Tailscale tray app showed permanently empty submenus on my Linux desktop.

How I framed it

One submenu worked and the others didn’t. That pattern pointed to how the menus were built, not whether they had data.

What I did

Traced it to a handshake mismatch. The app builds its submenus only when the tray host sends an AboutToShow message, and my desktop shell never sends it. Rather than patch two projects, I wrote tailnet-tray (about 330 lines of Python) that speaks the tray and menu protocols directly with no GUI toolkit.

Result

One-click switching between Tailscale networks, with a clear written explanation of the root cause.

→ Contact

Have a problem worth measuring?

I'm a Senior Software Engineer in the UK. The quickest way to reach me is email.