Developer Builds Linux Desktop Pet 'Mochi' While Wrestling With Wayland and GTK Limits

A developer has created Mochi, a small animated desktop companion for Linux built using Python, GTK, Cairo, and hand-drawn pixel art. Mochi reacts to user behaviour — sitting down when the user types, falling asleep during idle periods, and responding physically when dragged across the screen. Inspired by Codex Pets, the project aimed to make a character feel like a natural part of the desktop rather than a conventional application. Building Mochi proved technically challenging because Wayland deliberately restricts global window positioning for security reasons, complicating the free movement a desktop pet requires. The developer describes the process as an ongoing negotiation between desired character behaviour, GTK's toolkit constraints, and what GNOME and Wayland actually permit.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in