[Refactor] Use PackageKit for Linux version
rami3l opened this issue · comments
rami3l commented
PackageKit
provides support for many Linux PMs. Add a single adapter for PackageKit
, and most all disastrous are covered.
Credits: u/DrReadIt
rami3l commented
PackageKit
seems nice at the first sight. However, after some research, I have found out that:
- It wants to be completely silent when doing its tasks, and it seems that there is no chance of interrupting this process. At least for now, when critical things happen, a prompt might pop up.
- You lose control of what the library is doing. At least for now,
pacaptr
simply launches subprocesses, and the commands are deliberately printed out when they are running.