chore: disable mime db creation in snap (#232129)
parent
e1de28e4ee
commit
4e7b53c5a0
|
@ -167,16 +167,17 @@ fi
|
|||
# Keep an array of data dirs, for looping through them
|
||||
IFS=':' read -r -a data_dirs_array <<< "$XDG_DATA_DIRS"
|
||||
|
||||
# Build mime.cache
|
||||
# needed for gtk and qt icon
|
||||
# Build mime.cache needed for gtk and qt icon
|
||||
# TODO(deepak1556): Re-enable this once we move to core22
|
||||
# Refs https://github.com/microsoft/vscode/issues/230454#issuecomment-2418352959
|
||||
if [ "$needs_update" = true ]; then
|
||||
rm -rf "$XDG_DATA_HOME/mime"
|
||||
if [ ! -f "$SNAP/usr/share/mime/mime.cache" ]; then
|
||||
if command -v $SNAP/usr/bin/update-mime-database >/dev/null; then
|
||||
cp --preserve=timestamps -dR "$SNAP/usr/share/mime" "$XDG_DATA_HOME"
|
||||
async_exec $SNAP/usr/bin/update-mime-database "$XDG_DATA_HOME/mime"
|
||||
fi
|
||||
fi
|
||||
# if [ ! -f "$SNAP/usr/share/mime/mime.cache" ]; then
|
||||
# if command -v $SNAP/usr/bin/update-mime-database >/dev/null; then
|
||||
# cp --preserve=timestamps -dR "$SNAP/usr/share/mime" "$XDG_DATA_HOME"
|
||||
# async_exec $SNAP/usr/bin/update-mime-database "$XDG_DATA_HOME/mime"
|
||||
# fi
|
||||
# fi
|
||||
fi
|
||||
|
||||
# Gio modules and cache (including gsettings module)
|
||||
|
|
Loading…
Reference in New Issue