Skip to content

Commit

Permalink
chore: disable mime db creation in snap (microsoft#232129)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 authored Oct 24, 2024
1 parent e1de28e commit 4e7b53c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions resources/linux/snap/electron-launch
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4e7b53c

Please sign in to comment.