From 789e1b288ae0d74a0b944d8dbedfff46678bea29 Mon Sep 17 00:00:00 2001 From: Matthew Jakeman Date: Fri, 1 Jul 2022 23:24:08 +1200 Subject: [PATCH] extensions: Allow updating with only extension-manager installed GNOME Shell will only update extensions if the org.gnome.Extensions app is present. This commit adds alternative support for com.mattjakeman.ExtensionManager to the extension updating mechanism. It enables updates to occur when extension-manager is the sole installed tool on the system. When both applications are installed, org.gnome.Extensions is preferred at all times. Fixes #5564 Part-of: --- js/ui/extensionSystem.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js index 20abfcf43..ca96a99f4 100644 --- a/js/ui/extensionSystem.js +++ b/js/ui/extensionSystem.js @@ -65,7 +65,8 @@ var ExtensionManager = class extends Signals.EventEmitter { get updatesSupported() { const appSys = Shell.AppSystem.get_default(); - return appSys.lookup_app('org.gnome.Extensions.desktop') !== null; + return (appSys.lookup_app('org.gnome.Extensions.desktop') !== null) || + (appSys.lookup_app('com.mattjakeman.ExtensionManager.desktop') !== null); } lookup(uuid) { @@ -663,6 +664,8 @@ class ExtensionUpdateSource extends MessageTray.Source { _init() { let appSys = Shell.AppSystem.get_default(); this._app = appSys.lookup_app('org.gnome.Extensions.desktop'); + if (!this._app) + this._app = appSys.lookup_app('com.mattjakeman.ExtensionManager.desktop'); super._init(this._app.get_name()); }