Closed ObserverOfTime closed 3 years ago
@ObserverOfTime Requesting review of my changes.
Also, thank you for picking this up!
betterdiscordctl, line 119 at r1 (raw file):
Switching to `--bd-asar` would be fine, but do you think the option deserves to also be short? `--betterdiscord` had the benefit of working off of a plain Git repository, but `--bd-asar` works off of a build product. I think leaving `-a` open for other options would be better, as this is a more niche / dev-oriented flag?
It should be fine as we can always use -A
if we end up needing it.
betterdiscordctl, line 32 at r3 (raw file):
As defaults, these values are okay. We set `xdg_config` but reassign it later in both `bdc_flatpak` & `bdc_snap`, which may be called from `bdc_main`. We can do the same for `bd_config` & `bd_asar`.
xdg_config
before it is reassigned.betterdiscord.asar
may not be in bd_config
if the user specifies another file.Maybe we should merge this now and leave the option rework for another release?
Sorry, other things had came up the past couple weeks. I'll get back to this and push what should be everything necessary tomorrow morning for review.
I tested this today, works perfectly! I'm using snap and BetterDiscord does not support it at all but installing beta branch fixed all issues. (don't run Discord native, remote code execution is waiting to happen)
remote code execution is waiting to happen
No, it's not.
It would be great if you could merge it and updae the AUR/COPR packages as they are not working right now :/
Waiting for @bb010g to make some final changes.
By the way, tested on my NixOS box with a Nixpkgs (nixos-unstable
) Discord installation, and it installs & uninstalls perfectly.
update
command inreinstall
(resolves #76).--scan
and--discord
as we don't really need them.--nix
since the modules location isn't affected.--copy-bd
which was deemed unnecessary.bd_map_*
&bd_injector
functions.bd_data
&bd_asar
functions.--bd-repo-branch
to--bd-repo-release
.--betterdiscord
to specify a custombetterdiscord.asar
.$XDG_DATA_HOME/betterdiscordctl
directory.This change is