1 <!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [ 2 <!--ArborText, Inc., 1988-1999, v.4002--> 3 <!--ARC : LSARC 2001/201 GNOME 2.X on Solaris--> 4 <!ENTITY cmd "gnome-vfs.applications"> 5 <!ENTITY % commonents SYSTEM "smancommon.ent"> 6 %commonents; 7 <!ENTITY % booktitles SYSTEM "booktitles.ent"> 8 %booktitles; 9 <!ENTITY suncopy "Copyright (c) 2003,2008 Sun Microsystems, Inc. All Rights Reserved."> 10 ]> 11 <?Pub UDT _bookmark _target> 12 <?Pub Inc> 13 <refentry id="gnome-vfsapplications-4"> 14 <!-- %Z%%M% %I% %E% SMI; --> 15 <refmeta><refentrytitle>gnome-vfs.applications.4</refentrytitle><manvolnum>4</manvolnum> 16 <refmiscinfo class="date">14 May 2008</refmiscinfo> 17 <refmiscinfo class="sectdesc">&man4;</refmiscinfo> 18 <refmiscinfo class="software">&release;</refmiscinfo> 19 <refmiscinfo class="arch">generic</refmiscinfo> 20 <refmiscinfo class="copyright">&suncopy;</refmiscinfo> 21 </refmeta> 22 <indexterm><primary>gnome-vfs.applications</primary></indexterm><indexterm> 23 <primary>GNOME VFS application registry</primary></indexterm><refnamediv id="gnome-vfsapplications-4-name"> 24 <refname>gnome-vfs.applications</refname><refpurpose>GNOME VFS application registry</refpurpose> 25 </refnamediv> 26 <refsect1 id="gnome-vfsapplications-4-desc"><title>&desc-tt;</title> 27 <para> 28 GnomeVFS is obsolete. Refer to the GNOME Desktop System Administration 29 Guide for information about how to register MIME type information with 30 the GNOME desktop. The GNOME Desktop System Administration Guide can 31 be viewed with 32 <citerefentry><refentrytitle>yelp</refentrytitle><manvolnum>1</manvolnum></citerefentry>. 33 </para> 34 <para>The GNOME MIME magic and MIME info files (see <citerefentry><refentrytitle> 35 gnome-vfs-mime-magic</refentrytitle><manvolnum>4</manvolnum></citerefentry>) 36 enable GNOME VFS to associate a data file with its icon and description. The 37 GNOME VFS application registry provides a way to launch the applications associated 38 with such files.</para> 39 <para>The registration of applications to various MIME types is specified 40 in text files placed in the <literal>/usr/share/gnome/application-registry 41 </literal> directory. GNOME provides a default registry file called <filename> 42 gnome-vfs.applications</filename>. Vendor-specific registry files can also 43 be placed in this directory. This information is used extensively by <citerefentry> 44 <refentrytitle>nautilus</refentrytitle><manvolnum>1</manvolnum></citerefentry>, 45 the GNOME file manager.</para> 46 </refsect1> 47 <refsect1 id="gnome-vfsapplications-4-exde"><title>&exde-tt;</title> 48 <para>The format of the application registry file is simple. Each application 49 entry is made up of a name followed by a number of key-value pairs. The application 50 name must have been specified in one of the <filename>.keys</filename> files. 51 The minimum required key fields are as follows:<variablelist><varlistentry> 52 <term>command</term><listitem><para>The command to execute.</para> 53 </listitem></varlistentry> 54 <varlistentry><term>name</term><listitem><para>The descriptive name of the 55 command, which will appear in the Open With menu in Nautilus.</para> 56 </listitem></varlistentry> 57 <varlistentry><term>can_open_multiple_files</term><listitem><para>The value 58 of this field can be <literal>true</literal> or <literal>false</literal>. 59 </para> 60 </listitem></varlistentry> 61 <varlistentry><term>expects_uris</term><listitem><para>The value of this field 62 can be <literal>true</literal> or <literal>false</literal>. This field tells 63 Nautilus whether the application can accept <literal>http:</literal>, <literal> 64 ftp:</literal> and so on specifications to open at the command line. If 65 this is <literal>true</literal>, you must add the <literal>supported_uri_schemes 66 </literal> field.</para> 67 </listitem></varlistentry> 68 <varlistentry><term>requires_terminal</term><listitem><para>The value of this 69 field can be <literal>true</literal> or <literal>false</literal>.</para> 70 </listitem></varlistentry> 71 <varlistentry><term>mime_types</term><listitem><para>The list of comma-separated 72 mime-types defined by MIME magic or MIME info files.</para> 73 </listitem></varlistentry> 74 </variablelist></para> 75 <para>Optional field:<variablelist><varlistentry><term>supported_uri_schemes 76 </term><listitem><para>Specifies the list of protocols supported by the application; 77 for example, <literal>http</literal>, <literal>ftp</literal>, <literal>file 78 </literal>, <literal>telnet</literal>, <literal>gopher</literal>.</para> 79 </listitem></varlistentry> 80 </variablelist></para> 81 </refsect1> 82 <refsect1 id="gnome-vfsapplications-4-exam"><title>&exam-tt;</title> 83 <example role="example"><title>Registering CDE Imagetool with GNOME Application 84 Registry</title> 85 <para><screen><computeroutput> sdtimage 86 command=sdtimage 87 name=sdtimage 88 can_open_multiple_files=false 89 expects_uris=false 90 requires_terminal=false 91 mime_types=image/tiff,image/gif,application/postscript,image/jpeg,x-xpixmap 92 93 </computeroutput></screen></para> 94 </example> 95 <example role="example"><title>Registering Netscape with GNOME Application 96 Registry</title> 97 <para><screen><computeroutput> netscape 98 command=netscape 99 name=Netscape 100 can_open_multiple_files=true 101 expects_uris=true 102 requires_terminal=false 103 supported_uri_schemes=file,http,ftp,telnet,gopher 104 mime_types=text/html,x-directory/webdav,x-directory/webdav-prefer-directory,image/gif,image/jpeg 105 </computeroutput></screen></para> 106 </example> 107 </refsect1> 108 <refsect1 id="gnome-vfsapplications-4-envr"><title>&envr-tt;</title> 109 <para>See <citerefentry><refentrytitle>environ</refentrytitle><manvolnum> 110 5</manvolnum></citerefentry> for descriptions of the following environment 111 variables that affect the execution of <command>&cmd;</command>: NLSPATH. 112 </para> 113 </refsect1> 114 <refsect1 id="gnome-vfsapplications-4-file"><title>&file-tt;</title> 115 <para>The following files are used by this application:</para> 116 <variablelist termlength="medium"><varlistentry><term><filename>/usr/share/gnome/application-registry/&cmd;</filename> 117 </term><listitem></listitem></varlistentry> 118 <varlistentry><term><filename>/usr/share/gnome/application-registry/solaris-gnome2.0.applications 119 </filename></term><listitem></listitem></varlistentry> 120 </variablelist></refsect1> 121 <refsect1 id="gnome-vfsapplications-4-attr"><title>&attr-tt;</title> 122 <para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry> 123 <refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink> 124 for descriptions of the following attributes:</para> 125 <informaltable frame="all"> 126 <tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*"> 127 <colspec colname="COLSPEC1" colwidth="1*"> 128 <thead> 129 <row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center" 130 valign="middle">ATTRIBUTE VALUE</entry></row> 131 </thead> 132 <tbody> 133 <row><entry><para>Availability</para></entry><entry><para>SUNWgnome-vfs</para></entry> 134 </row> 135 <row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry 136 colname="COLSPEC1"><para>Obsolete Volatile</para></entry></row> 137 </tbody> 138 </tgroup> 139 </informaltable> 140 </refsect1> 141 <refsect1 id="gnome-vfsapplications-4-also"><title>&also-tt;</title> 142 <!--Reference to another man page--> 143 <!--Reference to a Help manual--> 144 <!--Reference to a book.--> 145 <para> 146 <citerefentry><refentrytitle>nautilus</refentrytitle><manvolnum>1</manvolnum></citerefentry>, 147 <citerefentry><refentrytitle>gnome-vfs-mime-magic</refentrytitle><manvolnum>4</manvolnum></citerefentry>, 148 <citerefentry><refentrytitle>libgnomevfs-2</refentrytitle><manvolnum>3</manvolnum></citerefentry>, 149 <citerefentry><refentrytitle>gnome-interfaces</refentrytitle><manvolnum>5</manvolnum></citerefentry> 150 </para> 151 <para> 152 Latest version of the 153 <citetitle>GNOME Desktop System Administration Guide</citetitle> 154 for your platform.</para> 155 </refsect1> 156 <refsect1 id="gnome-vfsapplications-4-note"><title>¬e-tt;</title> 157 <para>Written by Ghee Teo, Sun Microsystems Inc., 2003.</para> 158 </refsect1> 159 </refentry> 160