fix(gnome-extensions): Fix workaround for Fly-Pie (#246)

This commit is contained in:
fiftydinar 2024-06-02 11:25:07 +02:00 committed by GitHub
commit cfe3d163c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,10 +86,10 @@ 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
if [[ "${INSTALL_EXT}" == "Fly-Pie" ]]; 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
if [[ "${EXTENSION_NAME}" == "Fly-Pie" ]]; 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
else
# Regular schema installation
install -d -m 0755 "/usr/share/glib-2.0/schemas/"