#!/bin/sh
set -e

# Varsayılan görüntü izleyici atamasını kaldır
for mime in image/png image/jpeg image/jpg image/webp image/bmp image/gif; do
  current=$(xdg-mime query default "$mime" 2>/dev/null || true)
  if [ "$current" = "imajviewer.desktop" ]; then
    xdg-mime default "" "$mime" 2>/dev/null || true
  fi
done

exit 0
