Requirements:
asar
npm/npx
- Navigate to Resources: Go to your main Discord folder, then into the
resources
subdirectory.- 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.asar
file:sudo npx @electron/asar extract app.asar extracted
(Usesudo
if necessary due to permissions, e.g., in the/opt
directory.) - Change Directory: Move into the newly extracted folder:
cd extracted
- Navigate to Scope:
cd ./node_modules/@sentry/core/cjs
- Edit
scope.js
:- Open
scope.js
in a text editor (usingsudo
if 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.js
in 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
extracted
folder. - Now, use this command to pack the extracted files back into a
.asar
file. 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
.asar
file 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.