Note first: I am not a developer or a programmer and I can't write code. I noticed the
problem myself, but all the analysis and the proposed fix below were done by an AI assistant
(Claude, by Anthropic). Please review the changes carefully before using them.
System
- Zorin OS 18.1 Core, GNOME Shell 46.0, Wayland session, laptop with a single built-in display
- mutter 46.2-1ubuntu0.24.04.18+zorin1
- gnome-shell-extension-zorin-desktop-icons 50.3.0
Symptom
Sometimes, after closing the laptop lid (suspend) and opening it again, the desktop shows
the wallpaper but no icons at all. Disabling and re-enabling the extension does not
help. Only a reboot or a logout/login brings the icons back. It does not happen every time.
What the logs show
After unlocking, the extension starts the DING process again and again, every 3 seconds,
forever. On 24 Oct 2026, after a 38-minute suspend:
ott 24 09:00:14 gnome-shell[2251]: Launching DING process
ott 24 09:00:16 gnome-shell[2251]: DING: GNOME nautilus 46.4
ott 24 09:00:17 gnome-shell[2251]: Launching DING process
ott 24 09:00:20 gnome-shell[2251]: Launching DING process
ott 24 09:00:23 gnome-shell[2251]: Launching DING process
...
This went on for 540 launches in 27 minutes, and Received notification for window was
never logged. Before the suspend, the same startup took about 1 second.
Analysis
- Window timeout too short. On Wayland,
LaunchSubprocess.spawnv()inextension.js
gives DING only 3000 ms to show its window, then callsforce_exit()and starts it
again. Right after resume, the system is slow (network, Nautilus and tracker are all
restarting), so DING can need more than 3 s. Each attempt is killed before it finishes,
which gives an endless loop. Upstream Desktop Icons NG (Rastersoft / Desktop Icons NG · GitLab,
master) already uses 6000 ms here, while the Zorin version still uses 3000 ms. - Orphan DING process.
killCurrentProcess()(called ondisable(), for example when
the screen locks) only sends SIGTERM and then forgets the process. If DING does not exit,
it stays alive as an orphan and keeps the D-Bus namecom.rastersoft.ding. Every new
DING then starts as a "remote" instance, never creates a window, and is killed after 3 s.
I observed exactly this after a manual disable/enable during the loop: an orphan DING
started at 09:32:46 still ownedcom.rastersoft.dingminutes later. The existing cleanup
doKillAllOldDesktopProcesses()only runs in the constructor, that is when GNOME Shell
starts, and it only sends SIGTERM.
Proposed fix (applied locally, working)
@@ killCurrentProcess()
this.data.currentProcess.subprocess.send_signal(15);
+ // if DING ignores SIGTERM it stays alive as an orphan holding the
+ // com.rastersoft.ding name, and no new instance can ever start: force it after 2 s.
+ const oldSubprocess = this.data.currentProcess.subprocess;
+ GLib.timeout_add(GLib.PRIORITY_DEFAULT, 2000, () => {
+ if (!oldSubprocess.get_identifier()) {
+ return false;
+ }
+ console.log('DING-FIX: DING ignored SIGTERM, forcing exit');
+ oldSubprocess.force_exit();
+ return false;
+ });
}
@@ doKillAllOldDesktopProcesses()
- let path = `gjs ${GLib.build_filenamev([this.path, 'app', 'ding.js'])}`;
- if (contents.startsWith(path)) {
- let proc = new Gio.Subprocess({argv: ['/bin/kill', filename]});
+ if (contents.startsWith('gjs ') && contents.includes('/zorin-desktop-icons@zorinos.com/app/ding.js ')) {
+ console.log(`DING-FIX: killing old DING process ${filename}`);
+ let proc = new Gio.Subprocess({argv: ['/bin/kill', '-9', filename]});
@@ launchDesktop()
launchDesktop() {
+ // an orphan DING would keep the D-Bus name and block this new instance
+ this.doKillAllOldDesktopProcesses();
console.log('Launching DING process');
@@ LaunchSubprocess.spawnv()
- this._launch_timer = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 3000, () => {
+ this._launch_timer = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 10000, () => {
this._launch_timer = 0;
+ console.log('DING-FIX: DING window not detected in 10 s, relaunching');
this.subprocess.force_exit();
Result after the fix
On 24 Oct 2026 the lid was closed from 12:44 to 14:55 (over 2 hours of suspend). After
unlocking:
ott 24 14:56:45 gnome-shell[2132]: Launching DING process
ott 24 14:56:49 gnome-shell[2132]: Received notification for window. 0 notifications remaining.
DING needed 4 seconds to show its window. With the original 3 s timeout it would have
been killed and restarted. With the longer timeout it worked on the first attempt and the
icons were there. A short suspend (32 s) also worked normally.
The longer timeout is clearly needed. The orphan cleanup is a safety net: it has not
been needed since the fix was applied, so it has not been tested in a real case yet.
Workaround for other users
If the icons disappear after resume: log out and log in again, or reboot.
Thank you for Zorin OS!