#!/usr/sbin/install-menu
compat="menu-1"

!include menu.h

function AppEntry()= \
	forall(replacewith($mimetypes, ",",":"), "mimetype", $mimetype "\n" \
	"\tdefault_action_type=application\n" \
	"\tshort_list_application_ids_for_novice_user_level=" $title "\n" \
        "\tshort_list_application_ids_for_intermediate_user_level=" $title "\n"\
        "\tshort_list_application_ids_for_advanced_user_level=" $title "\n\n" )


supported
  x11=  ifnempty($mimetypes,AppEntry())
  text= ifnempty($mimetypes,AppEntry())
  gnome= ifnempty($mimetypes,AppEntry())
endsupported

genmenu=ifnempty($mimetypes,ifnempty($title, $title ".keys") )
startmenu=""
endmenu=""

rootsection=""

rootprefix="/usr/share/mime-info"

treewalk="M"

prerun=""

preoutput=""

onlyrunasroot=true
