Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-3254

file types associations for the Jalview App in Windows and macOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11.0
    • Component/s: getdown, install4j
    • Labels:
      None

      Description

      Proper file associations in both Windows and MacOS for .jvp, .fa, etc and a new .jvl (Java Version Locator) to be used for launching getdown with a specific version appbase.

      For Info.plist I've attached a list of extension registrations generated from jalview/io/FileFormat.java These should be sanitised to be only the file extensions we want to actually register (i.e. FILEs that will open with args "-open FILE"). Also we should probably remove .jar now?

      This AUTO files was generated with

      ```
      perl -n -e 's/\s+/ /g;if(m/^ ?(\w+) ?\( ?"([^"]*)" ?, ?"([^"]*)" ?, ?(true|false) ?, ?(true|false) ?\) ?$/){$m=lc($1); $n=$2; $e=$3; @es=split(m/\s*,\s*/,$e); print "<dict>\n<key>CFBundleTypeExtensions</key>\n<array>\n";for $e (@es){print"<string>$e</string>\n";}print"</array>\n<key>CFBundleTypeName</key>\n<string>$n File</string>\n<key>CFBundleTypeIconFile</key>\n<string>Jalview-File.icns</string>\n<key>CFBundleTypeRole</key>\n<string>Editor</string>\n<key>CFBundleTypeMIMETypes</key>\n<array>\n<string>application/x-jalview-$m</string>\n</array>\n<key>LSIsAppleDefaultForType</key>\n<true/>\n</dict>\n\n";}' src/jalview/io/FileFormat.java
      ```

      edit: AUTO files now generated by script in utils/install4j/auto_file_associations.pl

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              soares Ben Soares
              Reporter:
              soares Ben Soares
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: