powercord-org / powercord

A lightweight @discord client mod focused on simplicity and performance.
MIT License
1.21k stars 147 forks source link

powercord does not appear to inject on manjaro (arch linux) #463

Closed isXander closed 3 years ago

isXander commented 3 years ago

Describe the bug I git pull, npm i, npm run plug etc but when I run discord canary, powercord is not there. No errors.

To Reproduce git pull blablabla cd powercord sudo npm i (I need to run sudo because I am doing this in /opt) sudo npm run plug It says powercord has been successfully injected. Open discord canary

Expected behavior Powercord should work

Desktop (please complete the following information):

Additional context

old-df38257622 commented 3 years ago

It seems to work for me. Out of curiosity, can you clone to a location you have write access to and don't have to use sudo for npm i?

Balint66 commented 3 years ago

@isXander If you have installed from aur there are two versions: discord-canary and discord-canary-electron-bin. You should install discord-canary because powercord can not detect the other installation.

It would be nice if it could, but I wasn't able to make it work.

(by the way, the electron-bin package works like this: it compresses the resources folder into an asar file then extracts it into /usr/lib64/discord-canary and creates a script that executes the installed electron binary on that folder.)

I hope this helped. :)

isXander commented 3 years ago

@isXander If you have installed from aur there are two versions: discord-canary and discord-canary-electron-bin. You should install discord-canary because powercord can not detect the other installation.

It would be nice if it could, but I wasn't able to make it work.

(by the way, the electron-bin package works like this: it compresses the resources folder into an asar file then extracts it into /usr/lib64/discord-canary and creates a script that executes the installed electron binary on that folder.)

I hope this helped. :)

I used discord-canary

rosalinadev commented 3 years ago

@isXander I had the same issue for some reason it doesn't detect where discord is installed, you should loop into /usr/share/discord-canary or /usr/lib64/discord-canary and copy the resources folder (after plugging) to where discord is installed (should be /opt/discord-canary). Here are the commands if you're lazy (first one worked for me):


sudo cp /usr/lib64/discord-canary/resources /opt/discord-canary/
sudo cp /usr/share/discord-canary/resources /opt/discord-canary/
cyyynthia commented 3 years ago

Any updates on this issue?

rosalinadev commented 3 years ago

Any updates on this issue?

Just tried on a fresh archlinux install with aur/discord-canary and aur/powercord-git and it worked fine. Does not work when using aur/discord-canary-electron-bin though, which is to be expected since the commandline is electron. Even after having the issue myself I feel like there isn't an issue here and that it's just a case of weird system installations.

cyyynthia commented 3 years ago

discord-canary-electron-bin is currently not supported by Powercord's injector, so it not working is to be expected. The person who opened the issue reported using the discord-canary package anyway, so it shouldn't be the cause of the problem.

I'm just checking if this person still has problems injecting as it's been almost a month since last update of this issue.

cyyynthia commented 3 years ago

Closing due to lack of response