[Bug 2098102] Re: Desktop switching shows windows from previous desktop
This bug was fixed in the package gnome-shell-extension-desktop-icons-ng - 48.0.0-2 --- gnome-shell-extension-desktop-icons-ng (48.0.0-2) unstable; urgency=medium [ Sergio Costas Rodriguez ] * Workaround double extension enablement bug (LP: #2098102) [ Marco Trevisan (Treviño) ] * d/p: Refresh patches -- Marco Trevisan (Treviño) Tue, 25 Feb 2025 17:52:00 +0100 ** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
I removed the Draft flag. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
I would usually reserve my opinion until it's out of Draft, but based on the above comments I would start by asking for fewer words in identifiers. Next I would wait for the gnome-shell maintainers to respond because they will usually tell you quickly if there's anything architecturally wrong with a proposal. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
You are right... Commented in the upstream PR. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
Ultimately you should agree on it with upstream. Well, I guess Daniel technically *is* upstream ;) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
Daniel, Alessandro, quick question: I prepared a patch for upstream Gnome Shell ( https://gitlab.gnome.org/GNOME/gnome- shell/-/merge_requests/3640 ), but maybe a different syntax could be better. Specifically, to add this to the "AsyncMutex" class: + +async asyncCriticalSection(f, ...args) { +await this.hold(); +try { +await f(...args); +} finally { +this.release(); +} +} And then, call the code with await onEnabledExtensionsChangedMutex.asyncCriticalSection(async () => { ... // the code that must run without being preempted ... }); This way, it would be cleaner, and the logic to ensure that the "mutex" is released even if an exception happens is fully integrated into the "mutex" class, while still ensuring that any non catched exception is still correctly passed. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
I tried to upload a new version of DING to extensions.gnome.org with the old quick fix, but was rejected by the reviewer. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
The new patch in comment #24 seems to further support the idea that bug 2098390 is the same issue. ** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu) Status: Fix Committed => In Progress -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
That is a good fix; you can also keep it after gnome-shell is fixed. LGTM -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
The problem is even worse: the extension itself is created twice. ** Attachment added: "Captura desde 2025-02-20 12-28-57.png" https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+attachment/5859000/+files/Captura%20desde%202025-02-20%2012-28-57.png -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
This is a quick fix, until it is fixed upstream in Gnome Shell. ** Patch added: "fix-double-creation-bug.patch" https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+attachment/5859002/+files/fix-double-creation-bug.patch -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
** Changed in: gnome-shell (Ubuntu) Status: Won't Fix => In Progress ** Changed in: gnome-shell (Ubuntu) Assignee: (unassigned) => Sergio Costas (rastersoft-gmail) ** Changed in: gnome-shell (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
This is my idea for an asyncMutex fix, but I don't know why the test is failing... Running it manually from a command line (and some little changes to allow it to run from command line, of course) does work as expected. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3640 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
Fixed upstream, we hope: https://gitlab.com/rastersoft/desktop-icons-ng/-/merge_requests/439 ** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu) Status: In Progress => Fix Committed ** Tags added: fixed-in-ding-48 fixed-upstream -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
Yes, that patch would work, but I still think that the right-way-to-do- it(tm) would be to use an async mutex, mainly because that can ensure that no other yet-to-find race conditions can happen. Of course, I'm talking about a patch for upstream. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
An async function behaves sequentially until it executes an `await`, where it breaks the flow and returns a Promise. If we update the list of enabled extensions before yielding there will be no race. Here's an untested patch. ** Patch added: "extensionSystem.diff" https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+attachment/5857491/+files/extensionSystem.diff -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
-- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
I think that a single mutex should protect the status of the extensions. It should do a lock at the beginning of any async function calling any of the `_callExtensionInit()`, `_callExtensionEnable()` or `_callExtensionDisable()` async functions. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
Unfortunately, I think that GLib.Mutex won't work here, because they would block the GJS thread itself... an async Javascript mutex is what I think that we need: something where an async function can do an `await mutex.lock();` -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
Ok, I think that the previous solution won't work... I think that the solution is some kind of async mutex in `_onEnabledExtensionsChanged()`. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
Seeing the code, I think that the problem is that `_onEnabledExtensionsChanged()` is called both when the list of enabled extensions change, and when the list of disabled extensions change. The problem is that it is an async function, and the call in the callback doesn't wait it to finish, so it can result in a race condition. Specifically, it calls asynchronously to `_callExtensionEnable()`, which I think is what can result in the problem. I think that this patch should fix the problem (and also fix other async calls being done synchronously), but have no way of testing it... ** Patch added: "fix-double-call.patch" https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+attachment/5857419/+files/fix-double-call.patch -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
Oh! Good catch! Anyway, you are right: moving there. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
Ooops, the patch in comment #9 may be unreliable because you could have two racing enable() calls and the first one hasn't flagged isEnabled yet because innerEnable was deferred: if (Main.layoutManager._startingUp) { this.data.startupPreparedId = Main.layoutManager.connect('startup-complete', () => this.innerEnable()); } else { this.data.startupPreparedId = null; this.innerEnable(); } You may need a separate 'started' flag or something like that, which is true immediately unlike 'isEnabled'. Also we should move this discussion to https://gitlab.com/rastersoft/desktop-icons-ng ** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu) Milestone: None => ubuntu-25.04 ** Changed in: gnome-shell (Ubuntu) Status: Confirmed => Won't Fix -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
The patch in comment #9 looks good but I won't push it to Plucky yet if it's going to get in the way of releasing DING version 48. That wouldn't be such a problem if the new version was in Salsa already, but it's not: https://salsa.debian.org/gnome-team/shell- extensions/gnome-shell-extension-desktop-icons-ng -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu) Assignee: (unassigned) => Sergio Costas (rastersoft-gmail) ** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu) Status: Confirmed => In Progress ** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
Simpler patch ** Patch added: "fix-double-enable.diff" https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+attachment/5857233/+files/fix-double-enable.diff -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
The attachment "fix-double-enable.diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.] ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
This is a workaround. ** Patch added: "fix-double-enable.diff" https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+attachment/5857209/+files/fix-double-enable.diff -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
As I suspected... when calling enable() twice, the old pointers to the previous methods are overwritten with the new function pointer; and that's why disabling the extension won't restore them. A quick workaround is to keep track of the current status, and just ignore any enable() called when the extension has already been enabled. I can do it quickly. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
For the record, I've tested disabling the extension. It doesn't solve the issue: 1. Start the system. The issue is there. 2. Disable the extension on the command line using `gnome-extensions`. 3. Check `gnome-extensions info d...@rastersoft.com`. It shows the status of the extension as inactive. 4. The issue still persists, and icons are still shown on the desktop with no visible change. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
It's a bug in the gnome-shell extension manager. I made DING print traces of when it receives enable(). Notice we get two calls, first from extensionSystem.js:739:18, then from extensionSystem.js:736:18 Feb 13 09:48:24 ubuntu gnome-shell[2776]: Trace enable@file:///usr/share/gnome-shell/extensions/d...@rastersoft.com/gnomeShellOverr> innerEnable@file:///usr/share/gnome-shell/extensions/d...@rastersoft.com/extension.> enable@file:///usr/share/gnome-shell/extensions/d...@rastersoft.com/extension.js:84> _callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:267:38 async*_onEnabledExtensionsChanged@resource:///org/gnome/shell/ui/extensionSystem.js> _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:736:18 createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:730:46 enableExtension@resource:///org/gnome/shell/ui/extensionSystem.js:290:29 EnableExtension@resource:///org/gnome/shell/ui/shellDBus.js:453:38 _handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:329:38 _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34 @resource:///org/gnome/shell/ui/init.js:21:20 Feb 13 09:48:25 ubuntu gnome-shell[2776]: Trace enable@file:///usr/share/gnome-shell/extensions/d...@rastersoft.com/gnomeShellOverr> innerEnable@file:///usr/share/gnome-shell/extensions/d...@rastersoft.com/extension.> enable@file:///usr/share/gnome-shell/extensions/d...@rastersoft.com/extension.js:84> _callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:267:38 async*_onEnabledExtensionsChanged@resource:///org/gnome/shell/ui/extensionSystem.js> _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:739:18 createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:730:46 enableExtension@resource:///org/gnome/shell/ui/extensionSystem.js:285:29 EnableExtension@resource:///org/gnome/shell/ui/shellDBus.js:453:38 _handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:329:38 _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34 @resource:///org/gnome/shell/ui/init.js:21:20 In the live session, DING is initially disabled via dconf: $ gsettings get org.gnome.shell disabled-extensions ['d...@rastersoft.com'] Then, when ubuntu-desktop-bootstrap exits it calls `gnome-extensions enable d...@rastersoft.com`, which removes it from the `disabled- extensions` list, and adds it to the `enabled-extensions` list. Sometimes (why only sometimes?) this two-step process makes it call enable() twice. DING could be made more robust against getting enabled twice, but gnome- shell should not be doing this. ** Changed in: gnome-shell (Ubuntu) Status: Incomplete => Confirmed ** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
This sounds like stale window contents on the background "window", which usually can only happen in X11 sessions. Please try: gnome-extensions disable d...@rastersoft.com Does the problem stop happening? ** Changed in: gnome-shell (Ubuntu) Status: New => Incomplete ** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
Marek mentioned elsewhere that this happened on the live-cd session, and indeed I can reproduce by booting the same 20250211.1 daily live-cd. Instead, I cannot reproduce on the 24.04.1 live-cd. To reproduce, simply boot the daily live-cd and close the installer to reach the desktop. The logs point at DING: [ 2042.834562] ubuntu gnome-shell[3604]: JS ERROR: too much recursion newShouldShowWindow@file:///usr/share/gnome-shell/extensions/d...@rastersoft.com/gnomeShellOverride.js:141:29 newShouldShowWindow@file:///usr/share/gnome-shell/extensions/d...@rastersoft.com/gnomeShellOverride.js:146:49 newShouldShowWindow@file:///usr/share/gnome-shell/extensions/d...@rastersoft.com/gnomeShellOverride.js:146:49 [...] ** Also affects: gnome-shell-extension-desktop-icons-ng (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 2098102] Re: Desktop switching shows windows from previous desktop
This bug has been reported on the Ubuntu ISO testing tracker. A list of all reports related to this bug can be found here: http://iso.qa.ubuntu.com/qatracker/reports/bugs/2098102 ** Tags added: iso-testing -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs