A sample prefs-mplug file


#
# lines that begin with a '#' are comments
#
# File: $(HOME)/.mash/prefs-mplug
#


# mplug.cmdline: The command line to execute when the plugin is
#                invoked (REQUIRED) 
#                This executable should be able to accept two arguments:
#                -plugin  -use 
#                The -plugin argument refers to a TCP port on localhost 
#                that the program should connect back to in order to
#                communicate with the plugin, and the -use argument is
#                the ID of the Netscape window within which the main
#                window of the program should be embedded. The mash
#                executable can parse and deal with both of these 
#                arguments, but any other executable that can
#                satisfactorily handle these arguments can be used

mplug.cmdline: /usr/local/bin/mash

# mplug.stdout, mplug.stderr: Filenames to redirect the stdout and
#                             stderr output to (OPTIONAL)
#
mplug.stdout: /tmp/mplug.out
mplug.stderr: /tmp/mplug.out

# script.: Script to execute when plugin is loaded for 
#                      (REQUIRED for all mime types that
#                     you want to handle)
#                     Currently mplug can be invoked only for one or
#                     more of the following mime-types:
#                         x-mash/x-script   (a MASH script)
#                         application/x-sd  (an SDP file)
script.application/x-sd: /usr/local/bin/bin/mui
script.x-mash/x-script: /usr/local/bin/script-loader

# Both the mui and script-loader scripts can be generated from the MASH
# source. script-loader is included as part of the mash binary release.