Open commonsourcecs opened 2 weeks ago
I can't merge this because pamac is totally usable as root if AUR is disabled. I even added some code be able to build packages when used as root.
Then another approach or fix is needed, as users who do run pamac with sudo or as root recurrently break permissions. It also seems to cause failures in certain circumstances.
See examples here (there are many more); -Failure: https://forum.manjaro.org/t/pamac-command-line-failed-to-synchronize-aur-database/170600 -Broken Permissions: https://forum.manjaro.org/t/new-user-created-missing-permissions/169894
Would a preference be for
Implement "Exit if Root".
This would close issue #3
Note: This PR makes no extra steps to address other contingencies for root as seen in lines 409, 763, etc.