powercord-org / powercord

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

Better injector handling on Linux #602

Open oatmealine opened 2 years ago

oatmealine commented 2 years ago

Currently, if a user is using a non-standard Discord install location, they will have to enter it each time they inject and uninject Powercord. This PR will fix this by creating an .installdir file and using that if possible. Additionally, the script will fail if the user uses doas (and doesn't have a sudo shim or similar). It will now instead check for both, then fail gracefully if neither are found.