fix(gnome-extensions): Fix workaround for PaperWM (#327)

Similar to issues #243.

Enabling PaperWM extension gives this error:

`GLib.FileError: Failed to open file
“/usr/share/gnome-shell/extensions/paperwm@paperwm.github.com/schemas/gschemas.compiled”:
open() failed: No such file or directory`

I'm not sure how to test the fully test this though. I simply edited the
bash script to do Fly-Pie or PaperWM.
This commit is contained in:
fiftydinar 2024-09-15 11:06:53 +02:00 committed by GitHub
commit 047d3a4f0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,8 +98,8 @@ if [[ ${#INSTALL[@]} -gt 0 ]]; then
# Error code example:
# GLib.FileError: Failed to open file “/usr/share/gnome-shell/extensions/flypie@schneegans.github.com/schemas/gschemas.compiled”: open() failed: No such file or directory
# If any extension produces this error, it can be added in if statement below to solve the problem
# Fly-Pie
if [[ "${UUID}" == "flypie@schneegans.github.com" ]]; then
# Fly-Pie or PaperWM
if [[ "${UUID}" == "flypie@schneegans.github.com" || "${UUID}" == "paperwm@paperwm.github.com" ]]; then
install -d -m 0755 "/usr/share/gnome-shell/extensions/${UUID}/schemas/"
install -D -p -m 0644 "${TMP_DIR}/schemas/"*.gschema.xml "/usr/share/gnome-shell/extensions/${UUID}/schemas/"
glib-compile-schemas "/usr/share/gnome-shell/extensions/${UUID}/schemas/" &>/dev/null
@ -202,8 +202,8 @@ if [[ ${#INSTALL[@]} -gt 0 ]] && ! "${LEGACY}"; then
# Error code example:
# GLib.FileError: Failed to open file “/usr/share/gnome-shell/extensions/flypie@schneegans.github.com/schemas/gschemas.compiled”: open() failed: No such file or directory
# If any extension produces this error, it can be added in if statement below to solve the problem
# Fly-Pie
if [[ "${EXT_UUID}" == "flypie@schneegans.github.com" ]]; then
# Fly-Pie or PaperWM
if [[ "${EXT_UUID}" == "flypie@schneegans.github.com" || "${EXT_UUID}" == "paperwm@paperwm.github.com" ]]; then
install -d -m 0755 "/usr/share/gnome-shell/extensions/${EXT_UUID}/schemas/"
install -D -p -m 0644 "${TMP_DIR}/schemas/"*.gschema.xml "/usr/share/gnome-shell/extensions/${EXT_UUID}/schemas/"
glib-compile-schemas "/usr/share/gnome-shell/extensions/${EXT_UUID}/schemas/" &>/dev/null