Skip to content

OpenAsar makes Discord (flatpak) unable to open on Linux #244

Open

Description

@PaulRicharte

On Fedora 44 with Gnome using the latest Discord flatpak, Discord fails to open when OpenAsar is installed.
Here's the end of the output log :

[OpenAsar > BuildInfo] {
releaseChannel: 'stable',
sentryDist: 'stable-linux-x64',
sentryRelease: 'discord-desktop-195d6792dfb9fdaa1380c959f2f57f6cb46518bf',
version: '1.0.141',
newUpdater: false,
localModulesRoot: '/app/discord/modules'
}
Gtk-Message: 20:50:37.913: Failed to load module "pk-gtk-module"
Gtk-Message: 20:50:37.914: Failed to load module "pk-gtk-module"
[7:0608/205037.922021:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[7:0608/205037.922075:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
(node:7) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, mkdir '/app/discord/modules/pending'
at Object.mkdirSync (node:fs:1363:26)
at mkdir (/app/discord/resources/_app.asar/updater/moduleUpdater.js:1:297)
at exports.init (/app/discord/resources/_app.asar/updater/moduleUpdater.js:1:1388)
at startUpdate (/app/discord/resources/_app.asar/bootstrap.js:1:3065)
(Use Discord --trace-warnings ... to show where the warning was created)
(node:7) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
WARNING: radv is not a conformant Vulkan implementation, testing use only.

Thank you!

Activity

  1. philip015 commented on Jun 22, 2026

    @philip015

    install discord though rpmfusion and it'll work fine

  2. PaulRicharte commented on Jun 25, 2026

    @PaulRicharte
    Author

    install discord though rpmfusion and it'll work fine

    Can confirm OpenAsar works using rpm version of Discord thank you!

  3. changed the title [-]OpenAsar makes Discord unable to open on Linux[/-] [+]OpenAsar makes Discord (flatpak) unable to open on Linux[/+] on Jun 25, 2026
  4. DarkPhilosophy commented on Jul 22, 2026

    @DarkPhilosophy

    I reproduced this on two Fedora Flatpak Discord installations using Vencord + OpenAsar. The download/injection chain was intact; startup failed in ModuleUpdater.init() while cleaning ${modulesPath}/pending. With module updates skipped under Flatpak, that path can legitimately be absent, but the unconditional recursive rmSync throws ENOENT before Discord reaches the UI.

    Making that cleanup idempotent fixed startup after fully restarting the existing Discord process:

    rmSync(pendingPath, { recursive: true, force: true });

    I repacked the current OpenAsar nightly with only this source change, reinstalled it on both systems, and verified the Vencord/OpenAsar archive chain on both.

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