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

!include menu.h

function AppEntry()= \
	ifnempty($mimetypes,$mimetypes "\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"\

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