Requirements:
asarnpm/npx
- Navigate to Resources: Go to your main Discord folder, then into the
resourcessubdirectory.- For Arch Linux users with AUR, this might be:
/opt/discord/resources
- For Arch Linux users with AUR, this might be:
- Extract ASAR: Use this command to extract the contents of the
app.asarfile:sudo npx @electron/asar extract app.asar extracted(Usesudoif necessary due to permissions, e.g., in the/optdirectory.) - Change Directory: Move into the newly extracted folder:
cd extracted
- Navigate to Scope:
cd ./node_modules/@sentry/core/cjs - Edit
scope.js:- Open
scope.jsin a text editor (usingsudoif required). - Find line 80 (or search for the line):
newScope._breadcrumbs = [...scope._breadcrumbs]; - Comment out this line:
// newScope._breadcrumbs = [...scope._breadcrumbs];
- Open
- Navigate to IPC:
cd ../../../@sentry/electron/main - Edit
ipc.js:- Open
ipc.jsin your text editor. - Comment out lines 135, 136, and 137:
// if (breadcrumb) { // scope.addBreadcrumb(breadcrumb, (options === null || options === void 0 ? void 0 : options.maxBreadcrumbs) || 100); // }
- Open
- Package the file back into .asar:
cd ../../../../- You should be in the
extractedfolder. - Now, use this command to pack the extracted files back into a
.asarfile. sudo asar pack . app.asar
- Finishing the Fix:
- CD back into the resources folder and make a backup of the original .asar file.
cd ../ && sudo mv app.asar app-old.asar- Move the new
.asarfile back into the resources folder. sudo mv ./extracted/app.asar ./app.asar
Important: This is a temporary fix (bandaid). It might cause other random issues.