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

INSTALL_EXT is undefined in legacy config logic, but EXTENSION_NAME is defined here
This commit is contained in:
Andrey Brusnik 2024-06-02 03:58:29 +04:00
parent 40c620f161
commit 0dc909a911
No known key found for this signature in database
GPG key ID: D33232F28CFF442C

View file

@ -86,7 +86,7 @@ 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
if [[ "${EXTENSION_NAME}" == "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