Rebuild GIO module caches at desktop finalization
This commit is contained in:
parent
ba13ef097f
commit
83f9caa2a7
3 changed files with 24 additions and 0 deletions
|
|
@ -31,6 +31,12 @@ test -f /job/core/usr/share/plymouth/themes/archipelago-bgrt/watermark.png
|
|||
cp /job/core/usr/share/archipelago/desktop/toolbox.conf /job/core/etc/containers/toolbox.conf
|
||||
install -Dm644 /job/core/usr/share/archipelago/desktop/toolbox-registries.conf /job/core/etc/containers/registries.conf.d/60-archipelago-toolbox.conf
|
||||
arch-chroot /job/core glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||
# The composer ignores GIO module caches as generated output; rebuild them
|
||||
# for the final module set instead of inheriting the Core cache.
|
||||
arch-chroot /job/core gio-querymodules /usr/lib/gio/modules
|
||||
if [[ -d /job/core/usr/lib32/gio/modules ]]; then
|
||||
arch-chroot /job/core gio-querymodules /usr/lib32/gio/modules
|
||||
fi
|
||||
arch-chroot /job/core update-desktop-database /usr/share/applications
|
||||
arch-chroot /job/core update-mime-database /usr/share/mime
|
||||
# Publish the packaged distributor icon to the shared hicolor cache.
|
||||
|
|
|
|||
|
|
@ -61,6 +61,12 @@ test ! -e /job/core/etc/plasma-setup-done
|
|||
cp /job/core/usr/share/archipelago/desktop/toolbox.conf /job/core/etc/containers/toolbox.conf
|
||||
install -Dm644 /job/core/usr/share/archipelago/desktop/toolbox-registries.conf /job/core/etc/containers/registries.conf.d/60-archipelago-toolbox.conf
|
||||
arch-chroot /job/core glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||
# The composer ignores GIO module caches as generated output; rebuild them
|
||||
# for the final module set instead of inheriting the Core cache.
|
||||
arch-chroot /job/core gio-querymodules /usr/lib/gio/modules
|
||||
if [[ -d /job/core/usr/lib32/gio/modules ]]; then
|
||||
arch-chroot /job/core gio-querymodules /usr/lib32/gio/modules
|
||||
fi
|
||||
arch-chroot /job/core update-desktop-database /usr/share/applications
|
||||
arch-chroot /job/core update-mime-database /usr/share/mime
|
||||
# Publish the packaged distributor icon to the shared hicolor cache.
|
||||
|
|
|
|||
12
src/lib.rs
12
src/lib.rs
|
|
@ -202,6 +202,18 @@ mod tests {
|
|||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn generated_desktop_caches_are_rebuilt_at_finalization() {
|
||||
for finalizer in [include_str!("../adapters/gnome-finalize.sh"),
|
||||
include_str!("../adapters/kde-finalize.sh")] {
|
||||
assert!(finalizer.contains("gio-querymodules /usr/lib/gio/modules"));
|
||||
assert!(finalizer.contains("gio-querymodules /usr/lib32/gio/modules"));
|
||||
}
|
||||
let delta = include_str!("../../composer/layer_delta.py");
|
||||
assert!(delta.contains("usr/lib/gio/modules/giomodule.cache"));
|
||||
assert!(delta.contains("usr/lib32/gio/modules/giomodule.cache"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn kde_uses_the_discover_version_built_by_the_adapter() {
|
||||
let adapter = include_str!("../../infrastructure/pipeline/build-discover-adapter.sh");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue