From 3a6ef281198dd553b427cc7df99132ba6aa64416 Mon Sep 17 00:00:00 2001 From: Baldomo Date: Fri, 9 Aug 2019 16:46:26 +0200 Subject: [PATCH] open-in-mpv.desktop is now hidden from menus --- install-protocol.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install-protocol.sh b/install-protocol.sh index 44b81b9..a027084 100755 --- a/install-protocol.sh +++ b/install-protocol.sh @@ -2,16 +2,18 @@ set -e +force_update=true desktop_dir=~/.local/share/applications -if [[ ! -d "$desktop_dir/open-in-mpv.desktop" ]]; then - pushd $desktop_dir +if [[ ! -f "${desktop_dir}/open-in-mpv.desktop" || "${force_update}" = true ]]; then + pushd "${desktop_dir}" cat << 'EOF' >> open-in-mpv.desktop [Desktop Entry] Name=open-in-mpv Exec=open-in-mpv %u Type=Application Terminal=false +NoDisplay=true MimeType=x-scheme-handler/mpv EOF update-desktop-database .