From 9040610563f6cb5f9a4062bdbeef349dbe5ed1e3 Mon Sep 17 00:00:00 2001 From: paisley <8197966+su8su@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:03:43 +0800 Subject: [PATCH] fix clawx deskAppName on linux --- electron/main/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/electron/main/index.ts b/electron/main/index.ts index 2a89978..fe3101f 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -37,6 +37,14 @@ import { ensureBuiltinSkillsInstalled } from '../utils/skill-config'; // set `"disable-hardware-acceleration": false` in the app config (future). app.disableHardwareAcceleration(); +// On Linux (Wayland), tell GNOME which .desktop file belongs to this process. +// Without this, the compositor cannot associate the running window with +// clawx.desktop, so no icon appears in the dock even though the app is running. +// Must be called before app.whenReady() / before any window is created. +if (process.platform === 'linux') { + app.setDesktopName('clawx'); +} + // Prevent multiple instances of the app from running simultaneously. // Without this, two instances each spawn their own gateway process on the // same port, then each treats the other's gateway as "orphaned" and kills