fix clawx deskAppName on linux
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user