Skip to content

"/chromium" appended to appData and userData directories #3709

Closed

Description

  • Electron 0.35.0-4
  • Ubuntu 15.10

app.getPath('appData') and app.getPath('userData') have /chromium appended. Electron versions < 0.35 do not have this issue.

Output below is from the electron-quick-start app with

console.log(process.versions.electron)
console.log(process.env.XDG_CONFIG_HOME)
console.log(app.getPath('appData'))
console.log(app.getPath('userData'))

added to main.js

0.35.4
undefined
/home/jm/.config/chromium
/home/jm/.config/chromium/Electron
0.34.5
undefined
/home/jm/.config
/home/jm/.config/Electron

Activity

  1. anaisbetts commented on Dec 7, 2015

    @anaisbetts
    Contributor

    This is pretty bad if we're moving the userData folder and losing settings

  2. bpasero commented on Jan 8, 2016

    @bpasero
    Contributor

    We also hit this but for us the fix is not included in 0.35.5 and this would force us to jump to 0.36 with Chrome and node.js updates.

    Is there any way we can fix this path in our code or is appPath set too early to adjust?

  3. bpasero commented on Jan 8, 2016

    @bpasero
    Contributor

    @zcbenz ping

  4. zcbenz commented on Jan 9, 2016

    @zcbenz
    Contributor

    @bpasero I think the only way to fix this is to cherry pick the commit, I'll publish a 0.35.6 release for this later.

  5. bpasero commented on Jan 11, 2016

    @bpasero
    Contributor

    👍 thanks

  6. bpasero commented on Jan 11, 2016

    @bpasero
    Contributor

    @zcbenz does #4052 impact the 0.35.6 release and how?

  7. zcbenz commented on Jan 11, 2016

    @zcbenz
    Contributor

    @bpasero #4052 doesn't have actual impacts, it is for preventing future bugs.

  8. bpasero commented on Jan 11, 2016

    @bpasero
    Contributor

    Ok great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions