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.
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 usesdoas
(and doesn't have asudo
shim or similar). It will now instead check for both, then fail gracefully if neither are found.