Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4767

Application Data directory structure in Windows 10 causes install problem

    XMLWordPrintable

Details

    Description

      In the getApplicationDataDirectory we firstly use the systemProperty OPENMRS_APPLICATION_DATA_DIRECTORY which can be set by passing -D to the jvm, but this is not something we document anywhere. Instead most people try to create an environment variable, which will not work because we need to use getenv instead of getProperty

      If this property is not found, the default path for Windows is user.home\Application Data, which not valid for Windows 10. This was valid for previous versions of Windows. Our default should be %APPDATA% for all windows, instead of using this as fallback. Even for the APPLICATION_DATA_DIRECTORY_FALLBACK_WIN we use System.getenv("%appdata%"), where as this should be System.getenv("appdata") because the %env% is to denote its an environment variable.

      Gliffy Diagrams

        Attachments

          Activity

            People

              sunbiz Saptarshi Purkayastha
              sunbiz Saptarshi Purkayastha
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: