Skip to content

Commit

Permalink
fix: broken scale-monitor-framebuffer (ublue-os#1847)
Browse files Browse the repository at this point in the history
  • Loading branch information
befanyt authored and karman011 committed Oct 29, 2024
1 parent f7a03c1 commit a2d0a1b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build_files/bluefin-changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ if [[ "${BASE_IMAGE_NAME}" = "silverblue" ]]; then
sed -i 's@\[Desktop Entry\]@\[Desktop Entry\]\nHidden=true@g' /usr/share/applications/org.gnome.SystemMonitor.desktop
fi

# GNOME Terminal is replaced with Ptyxis in F41+
# Workarounds for versions pre F41
if [[ "${FEDORA_MAJOR_VERSION}" -lt "41" ]]; then
# GNOME Terminal is replaced with Ptyxis in F41+
sed -i 's@\[Desktop Entry\]@\[Desktop Entry\]\nNoDisplay=true@g' /usr/share/applications/org.gnome.Terminal.desktop

# Remove incompatible schema modifications
sed -i 's@accent-color="slate"@@g' /usr/share/glib-2.0/schemas/zz0-bluefin-modifications.gschema.override
sed -i 's@'", "\''xwayland-native-scaling'\''@@g' /usr/share/glib-2.0/schemas/zz0-bluefin-modifications.gschema.override
fi

# Create symlinks from old to new wallpaper names for backwards compatibility
Expand All @@ -31,7 +36,8 @@ if [[ "${BASE_IMAGE_NAME}" = "silverblue" ]]; then
find /usr/share/glib-2.0/schemas/ -type f ! -name "*.gschema.override" -exec cp {} /tmp/bluefin-schema-test/ \;
cp /usr/share/glib-2.0/schemas/zz0-bluefin-modifications.gschema.override /tmp/bluefin-schema-test/
echo "Running error test for bluefin gschema override. Aborting if failed."
# We are omitting "--strict" from the schema validation since GNOME <47 do not contain the accent-color keys.
# We should ideally refactor this to handle multiple GNOME version schemas better
glib-compile-schemas --strict /tmp/bluefin-schema-test
echo "Compiling gschema to include bluefin setting overrides"
glib-compile-schemas /usr/share/glib-2.0/schemas &>/dev/null
fi

0 comments on commit a2d0a1b

Please sign in to comment.