$i4jentry =~ s/\$\$MIMETYPE\$\$/$xmimetype/g;
$i4jentry =~ s/\$\$ICONFILE\$\$/$xiconfile/g;
+ my $unixext;
+ for my $ext (sort @extensions) {
+ if (not defined($unixext)) {
+ $unixext = $ext;
+ next;
+ }
+ if (length($ext) < length($unixext)) {
+ $unixext = $ext;
+ next;
+ }
+ }
+
for my $ext (@extensions) {
$i4jcount++;
#print "COUNT: $i4jcount\n";
#print "PC: $progresspercent\n";
$progresspercent = 100 if $progresspercent > 100;
my $xext = xml_escape($ext);
+ my $addunixextension = ($ext eq $unixext)?"true":"false";
+
my $i4jextentry = $i4jentry;
+ $i4jextentry =~ s/\$\$ADDUNIXEXTENSION\$\$/$addunixextension/g;
$i4jextentry =~ s/\$\$EXTENSION\$\$/$xext/g;
$i4jextentry =~ s/\$\$PROGRESSPERCENT\$\$/$progresspercent/g;
$i4jextentry =~ s/\$\$ID\$\$/$id/g;
<!--<property name="macMimeType" type="string">application/x-jalview-annotations+text</property>-->
<property name="macRole" type="enum" class="com.install4j.runtime.beans.actions.desktop.MacAssociationRole" value="EDITOR" />
<property name="restartFinder" type="boolean" value="true" />
- <property name="unix" type="boolean" value="true" />
+ <property name="unix" type="boolean" value="false" />
<property name="unixIconFile">
<object class="com.install4j.api.beans.ExternalFile">
<string>Jalview-File.png</string>
<!--<property name="macMimeType" type="string">application/x-fasta+txt</property>-->
<property name="macRole" type="enum" class="com.install4j.runtime.beans.actions.desktop.MacAssociationRole" value="EDITOR" />
<property name="restartFinder" type="boolean" value="true" />
- <property name="unix" type="boolean" value="true" />
+ <property name="unix" type="boolean" value="false" />
<property name="unixIconFile">
<object class="com.install4j.api.beans.ExternalFile">
<string>Jalview-File.png</string>
<!--<property name="macMimeType" type="string">application/x-jalview-features+text</property>-->
<property name="macRole" type="enum" class="com.install4j.runtime.beans.actions.desktop.MacAssociationRole" value="EDITOR" />
<property name="restartFinder" type="boolean" value="true" />
- <property name="unix" type="boolean" value="true" />
+ <property name="unix" type="boolean" value="false" />
<property name="unixIconFile">
<object class="com.install4j.api.beans.ExternalFile">
<string>Jalview-File.png</string>
<!--<property name="macMimeType" type="string">application/x-jalview-jnet+text</property>-->
<property name="macRole" type="enum" class="com.install4j.runtime.beans.actions.desktop.MacAssociationRole" value="EDITOR" />
<property name="restartFinder" type="boolean" value="true" />
- <property name="unix" type="boolean" value="true" />
+ <property name="unix" type="boolean" value="false" />
<property name="unixIconFile">
<object class="com.install4j.api.beans.ExternalFile">
<string>Jalview-File.png</string>
<!--<property name="macMimeType" type="string">chemical/x-mcif</property>-->
<property name="macRole" type="enum" class="com.install4j.runtime.beans.actions.desktop.MacAssociationRole" value="EDITOR" />
<property name="restartFinder" type="boolean" value="true" />
- <property name="unix" type="boolean" value="true" />
+ <property name="unix" type="boolean" value="false" />
<property name="unixIconFile">
<object class="com.install4j.api.beans.ExternalFile">
<string>Jalview-File.png</string>
<!--<property name="macMimeType" type="string">chemical/x-pdb</property>-->
<property name="macRole" type="enum" class="com.install4j.runtime.beans.actions.desktop.MacAssociationRole" value="EDITOR" />
<property name="restartFinder" type="boolean" value="true" />
- <property name="unix" type="boolean" value="true" />
+ <property name="unix" type="boolean" value="false" />
<property name="unixIconFile">
<object class="com.install4j.api.beans.ExternalFile">
<string>Jalview-File.png</string>
<!--<property name="macMimeType" type="string">application/x-stockholm+txt</property>-->
<property name="macRole" type="enum" class="com.install4j.runtime.beans.actions.desktop.MacAssociationRole" value="EDITOR" />
<property name="restartFinder" type="boolean" value="true" />
- <property name="unix" type="boolean" value="true" />
+ <property name="unix" type="boolean" value="false" />
<property name="unixIconFile">
<object class="com.install4j.api.beans.ExternalFile">
<string>Jalview-File.png</string>