Skip to content

[Minor bug] OpenAsar does not detect first boot #241

@ItachiSan

Description

@ItachiSan

Hello,

Here to report a small warning I've noticed in the console; the console output is this:

$ discord 
[OpenAsar > Init] OpenAsar nightly-6232c4f
[OpenAsar > Settings] /home/giovanni/.config/discord/settings.json {
  BACKGROUND_COLOR: '#f3f3f4',
  openasar: { setup: true, autoupdate: false, cmdPreset: 'balanced' },
  offloadAdmControls: true,
  chromiumSwitches: {},
  IS_MAXIMIZED: true,
  IS_MINIMIZED: false,
  asyncVideoInputDeviceInit: false,
  trayBalloonShown: true,
  enableLibOpenH264Electron: true,
  openH264Enabled: true
}
[OpenAsar > BuildInfo] {
  newUpdater: true,
  releaseChannel: 'stable',
  sentryDist: 'stable-linux-x64',
  sentryRelease: 'discord-desktop-3d62416eb8a36cef8fead5a94b899dc91ea1acb3',
  version: '1.0.137'
}
[2026-05-06 08:58:06.877763 +02:00] WARN [updater]: Could not determine platform version
[OpenAsar > FirstRun] Error: ENOENT: no such file or directory, open '/home/giovanni/.config/discord/1.0.137/.first-run'
    at Object.writeFileSync (node:fs:2425:20)
    at exports.do (/home/giovanni/.config/discord/app-1.0.137/resources/app.asar/firstRun.js:1:924)
    at startUpdate (/home/giovanni/.config/discord/app-1.0.137/resources/app.asar/bootstrap.js:1:3041) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/giovanni/.config/discord/1.0.137/.first-run'
}

I have however noticed that the app resides in:
/home/giovanni/.config/discord/app-1.0.137

Nonetheless, everything works, just noticed this tiny issue 😉
Please let me know what logs can I provide to improve this, if needed!

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