From cfe7dcdc8c65395e07c44af8f7136096efcbb99f Mon Sep 17 00:00:00 2001 From: Lenus Walker Date: Sat, 14 Sep 2024 11:35:54 -0400 Subject: [PATCH] fix(gnome-extensions): Fix workaround for PaperWM --- modules/gnome-extensions/gnome-extensions.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/gnome-extensions/gnome-extensions.sh b/modules/gnome-extensions/gnome-extensions.sh index 99e4bb1..e5c4eb3 100644 --- a/modules/gnome-extensions/gnome-extensions.sh +++ b/modules/gnome-extensions/gnome-extensions.sh @@ -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