diff --git a/resources/linux/snap/electron-launch b/resources/linux/snap/electron-launch index 9d0a2bc8976..cf9e946360c 100755 --- a/resources/linux/snap/electron-launch +++ b/resources/linux/snap/electron-launch @@ -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)