Skip to content

dbusServices/extensions: Override destroy() method

Florian Müllner requested to merge fmuellner/gnome-shell:intercept-destroy into main

Some extensions try to destroy the provided dialog, so they can instead show the preferences in an alternative way.

Unfortunately that is undetectable from the Extensions service, which still thinks the dialog is open, and will therefore block other prefs dialogs.

Try to steer extensions away from that anti-pattern (or at the very least switch to close() which doesn't break) by overriding the window's destroy() method and show an extension error instead.

Closes #7435 (closed)

Merge request reports