[gnome-shell/wip/rstrode/login-screen-extensions: 50/134] extensionDownloader: Only check updates for user extensions




commit a3c0440fc69237f429456770b88de88a2d6bb4cc
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Jan 22 15:42:06 2020 +0100

    extensionDownloader: Only check updates for user extensions
    
    System extensions cannot be updated through the website, so don't
    even try.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/945

 js/ui/extensionDownloader.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js
index 66cb13d569..c8f6735c56 100644
--- a/js/ui/extensionDownloader.js
+++ b/js/ui/extensionDownloader.js
@@ -118,7 +118,10 @@ function downloadExtensionUpdate(uuid) {
 function checkForUpdates() {
     let metadatas = {};
     Main.extensionManager.getUuids().forEach(uuid => {
-        metadatas[uuid] = Main.extensionManager.extensions[uuid].metadata;
+        let extension = Main.extensionManager.lookup(uuid);
+        if (extension.type !== ExtensionUtils.ExtensionType.PER_USER)
+            return;
+        metadatas[uuid] = extension.metadata;
     });
 
     let params = { shell_version: Config.PACKAGE_VERSION,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]