Skip to content

JavaScript Error when login without ROOT permissions #989

@AbrahamAriel

Description

@AbrahamAriel

The following error is produced when trying to login:

Uncaught Exception:
Error: EACCES: permission denied, open '/opt/soundnode-git/resources/app/app/public/js/system/userConfig.json'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:178:20)
    at Object.fs.writeFileSync (fs.js:1343:33)
    at setUserData (/opt/soundnode-git/resources/app/main.js:74:6)
    at WebContents.contents.on (/opt/soundnode-git/resources/app/main.js:68:5)
    at emitMany (events.js:127:13)
    at WebContents.emit (events.js:201:7)

The best way to avoid this is probably by making Soundnode saves the config file in the user's $HOME directory.


How to reproduce:

  1. Install the app from AUR (soundnode-git)
  2. Run the app
  3. Login

How to work around this issue:

  1. Run the app as root

OS: Arch Linux x86_64 (Kernel version: 4.11.2)
Soundnode version: git revision 4f4842624f738f51bd7f0d2dc8b32eae88e75335

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