open-in-mpv.desktop is now hidden from menus
This commit is contained in:
@@ -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 .
|
||||||
|
Reference in New Issue
Block a user