I made an OpenASAR installer script that automatically searches all known possible directories a while ago and have been updating it, perhaps this could use it? I'll need it to change permissions though
Search Criteria
Package Details: openasar-bin 3:20221202224042-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/openasar-bin.git (read-only, click to copy) |
---|---|
Package Base: | openasar-bin |
Description: | Open-source alternative of Discord desktop's app.asar, needs Discord installed. Nightly builds. |
Upstream URL: | https://openasar.dev/ |
Keywords: | asar discord goosemod openasar |
Licenses: | MIT |
Submitter: | GBember |
Maintainer: | alsoGAMER |
Last Packager: | shtrophic |
Votes: | 4 |
Popularity: | 0.044119 |
First Submitted: | 2022-09-01 22:51 (UTC) |
Last Updated: | 2022-12-03 08:50 (UTC) |
Dependencies (5)
- unzip (unzip-natspecAUR, unzip-zstdAUR)
- discord (discord-electron-openasar-gitAUR, discord_arch_electronAUR, discord-electron-openasarAUR) (optional) – Stable channel Discord
- discord-canaryAUR (discord-canary-electron-binAUR) (optional) – Canary channel Discord
- discord-developmentAUR (optional) – Development channel Discord
- discord-ptbAUR (optional) – Public test channel Discord
Required by (0)
Sources (12)
aliu commented on 2023-10-09 19:55 (UTC) (edited on 2023-10-09 19:56 (UTC) by aliu)
GBember commented on 2023-01-11 19:10 (UTC)
Consider changing the hooks so it first uninstalls openasar from all discord installations before installing another one, for example, if I already have openasar and discord stable installed, installing discord canary will overwrite discord stable's app.asar backup file with openasar's app.asar
GBember commented on 2023-01-11 17:25 (UTC)
It seems like you forgot to add discord arch_electron to the openasar-remove.sh script, and I don't think changing the app.asar for the native electron packages would be a good idea, as the hacks to make discord use native electron are made in the original app.asar file, and installing openasar to those packages would make them not use that app.asar, and use instead openasar's app.asar, which I don't think makes use of the system's electron.
mengokkk commented on 2022-12-11 19:42 (UTC)
@Sir-Photch been able to fix it by disabling quickstart in the settings.json
shtrophic commented on 2022-12-11 18:50 (UTC)
consider changing the permissions of the resources
folder of your discord installation for openasar to update automatically.
See: https://github.com/GooseMod/OpenAsar/blob/main/faq.md#does-openasar-update-itself
shtrophic commented on 2022-12-11 18:00 (UTC)
@mengokkk
I just installed discord stable together with openasar-bin and cannot reproduce. Does reinstalling discord solve the issue on your end?
You also have settings enabled like DANGEROUS_ENABLE_DEVTOOLS...
. Did you set them by yourself?
Also please consider formatting console dumps using markdown.
mengokkk commented on 2022-12-11 17:51 (UTC)
Since discord updated to 0.0.22 i can't get this to work.
trying to launch discord via terminal gives me the following output:
~ lucca@archlinux ❯ discord [OpenAsar > Init] OpenAsar [OpenAsar > Settings] /home/lucca/.config/discord/settings.json { IS_MAXIMIZED: false, IS_MINIMIZED: false, WINDOW_BOUNDS: { x: 1927, y: 49, width: 1426, height: 844 }, DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING: true, openasar: { setup: true, themeSync: true, quickstart: true } } [OpenAsar > BuildInfo] { releaseChannel: 'stable', version: '0.0.22' } [OpenAsar > Modules] Checking Error: Cannot find module '/home/lucca/.config/discord/0.0.22/modules/discord_desktop_core' Require stack: - /opt/discord/resources/app.asar/utils/requireNative.js - /opt/discord/resources/app.asar/bootstrap.js - /opt/discord/resources/app.asar/index.js - at Module._resolveFilename (internal/modules/cjs/loader.js:887:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:261:1128) at Module._load (internal/modules/cjs/loader.js:732:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Module.require (internal/modules/cjs/loader.js:959:19) at require (internal/modules/cjs/helpers.js:88:18) at module.exports (/opt/discord/resources/app.asar/utils/requireNative.js:1:74) at startCore (/opt/discord/resources/app.asar/bootstrap.js:1:1448) at EventEmitter.<anonymous> (/opt/discord/resources/app.asar/bootstrap.js:1:2467) at Object.onceWrapper (events.js:421:28) { code: 'MODULE_NOT_FOUND', requireStack: [ '/opt/discord/resources/app.asar/utils/requireNative.js', '/opt/discord/resources/app.asar/bootstrap.js', '/opt/discord/resources/app.asar/index.js', undefined ] } uncaughtException
Using ls in .config/discord/0.0.22/modules/ gives me the following:
~ lucca@archlinux ❯ ls .config/discord/0.0.22/modules/ Permissions Size User Date Modified Name drwxr-xr-x - lucca 11 dez 14:46 pending/
The pending folder is empty. Any insights on how to fix this are appreciated. Trying to uninstall openasar via pacman also doesn't fix the issue.
shtrophic commented on 2022-11-07 16:45 (UTC)
@sitiom should be done. assuming discord-ptb installs its data to /opt/discord-ptb/
sitiom commented on 2022-11-07 13:56 (UTC)
Please also add a hook for discord-ptb
Pinned Comments
shtrophic commented on 2022-12-11 18:50 (UTC)
consider changing the permissions of the
resources
folder of your discord installation for openasar to update automatically. See: https://github.com/GooseMod/OpenAsar/blob/main/faq.md#does-openasar-update-itself