open-in-mpv.desktop is now hidden from menus

This commit is contained in:
Baldomo
2019-08-09 16:46:26 +02:00
parent e0d4c446db
commit 3a6ef28119

View File

@@ -2,16 +2,18 @@
set -e set -e
force_update=true
desktop_dir=~/.local/share/applications desktop_dir=~/.local/share/applications
if [[ ! -d "$desktop_dir/open-in-mpv.desktop" ]]; then if [[ ! -f "${desktop_dir}/open-in-mpv.desktop" || "${force_update}" = true ]]; then
pushd $desktop_dir pushd "${desktop_dir}"
cat << 'EOF' >> open-in-mpv.desktop cat << 'EOF' >> open-in-mpv.desktop
[Desktop Entry] [Desktop Entry]
Name=open-in-mpv Name=open-in-mpv
Exec=open-in-mpv %u Exec=open-in-mpv %u
Type=Application Type=Application
Terminal=false Terminal=false
NoDisplay=true
MimeType=x-scheme-handler/mpv MimeType=x-scheme-handler/mpv
EOF EOF
update-desktop-database . update-desktop-database .