gnome-shell: extension fails to install if no "schemas" folder present

Bug #2013073 reported by Tim Holmes-Mitra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Gnome-shell extensions fail to install if the extension does not have a 'schemas' folder. I can replicate this behaviour when installing from extensions.gnome.org or gnome-shell-extension-manager. By adding an empty schema's folder the extension installs correctly.

I have checked the gjs extension documentation[1] and afaict the 'schemas' folder is not listed as required.

Relevant logs when installing the weatheroclock[2] extension:

```
Mar 28 12:38:07 eart gnome-shell[1444369]: Archive: /tmp/HNKP21.shell-extension.zip
Mar 28 12:38:07 eart gnome-shell[1444369]: inflating: /<email address hidden>/extension.js
Mar 28 12:38:07 eart gnome-shell[1444369]: inflating: /<email address hidden>/stylesheet.css
Mar 28 12:38:07 eart gnome-shell[1444369]: extracting: /<email address hidden>/metadata.json
Mar 28 12:38:07 eart gnome-shell[1423521]: Error while installing <email address hidden>: Error when getting information for file “/<email address hidden>/schemas”: No such file or directory
Mar 28 12:38:07 eart extension-manag[1426090]: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code36: GDBus.Error:org.gnome.Shell.ExtensionError: Error when getting information for file “/<email address hidden>/schemas”: No such file or directory

```

[1] https://gjs.guide/extensions/overview/anatomy.html#metadata-json-required
[2] https://extensions.gnome.org/extension/5470/weather-oclock/

Tim Holmes-Mitra (timhm)
tags: added: rls-ll-incoming
summary: - extensions: extension fails to install if no "schemas" folder present
+ gnome-shell: extension fails to install if no "schemas" folder present
Revision history for this message
Tim Holmes-Mitra (timhm) wrote :
Revision history for this message
Jeremy Bícha (jbicha) wrote :

I've cherry-picked that commit to our Ubuntu packaging git repo for inclusion in our next gnome-shell upload.

Changed in gnome-shell (Ubuntu):
status: New → Fix Committed
tags: added: fixed-in-gnome-shell-44.1 fixed-upstream
Changed in gnome-shell (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell - 44.0-2ubuntu3

---------------
gnome-shell (44.0-2ubuntu3) lunar; urgency=medium

  * Cherry-pick fix for installing extensions (LP: #2013073)
  * Add proposed patch to fix running gnome-shell on RISC-V (LP: #2012068)

 -- Jeremy Bicha <email address hidden> Fri, 31 Mar 2023 10:18:23 -0400

Changed in gnome-shell (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.