electron doesn't work with fslogix

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • None
    • Developer Tools

      Problem Statement/Rationale

      This is the cause of https://jira.mongodb.org/browse/HELP-80375

      The problems started to appear when we updated electron from v32 to v36 https://github.com/mongodb-js/compass/pull/6964/files.

      FSLogix changes the %APPDATA% variable, which is what we should be getting for the userData path (see https://github.com/electron/electron/blob/main/docs/api/app.md?plain=1#L602)

      This is what we should be getting here:

      https://github.com/mongodb-js/compass/blob/9eec9dad786ec6de15ed7a33113f865dd792a50f/packages/compass-utils/src/electron.ts#L29 

      As is visible from the error, we are getting the original path.

            Assignee:
            Unassigned
            Reporter:
            Paula Stachova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: