From 0d7c70a2ec6b7a666abd20ab41233f322005388a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 10 May 2020 16:31:56 +0200 Subject: [PATCH] systemd: don't use a script to update defaults Just update ~/.config/mimeapps.list manually (and sync it). --- bin/xdg-defaults | 25 ------------------------- systemd/misc-x@.service | 1 - 2 files changed, 26 deletions(-) delete mode 100755 bin/xdg-defaults diff --git a/bin/xdg-defaults b/bin/xdg-defaults deleted file mode 100755 index 505a2d1..0000000 --- a/bin/xdg-defaults +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -# Set default MIME type for XDG. Linux desktop is a bit painful around -# that. Random applications register for any MIME type and the default -# is always surprising. - -set -e - -while read desktop mimetypes; do - for dir in ~/.local/share/applications /usr/local/share/applications /usr/share/applications notfound; do - [ -f "$dir"/"$desktop" ] || continue - echo "Set default for $mimetypes to $desktop" - xdg-mime default $desktop $mimetypes - break - done - [ "$dir" != "notfound" ] || echo "Application $desktop not found" -done <