Open iaacornus opened 1 year ago
Additional: how to deal with pure shell commands?
I am honest, you have to start build the core script, I can add the parts probably, as I know something about the bash commands that work, but the python commands are completely different.
I think the main components (in bash) are ready, and would only use Python for the interface, writing the scripts and executing them in the end.
Maybe thats not how these programs are constructed, and a real python script with progress bars, direct output e.g. is better, but then you would need python equivalents for all these bash commands, making them pretty much useless.
What stays in bash:
there are alot of commands that the program needs to execute needing
sudo
permission, this includes system wide modifications in flatpak overrides, config modifications in/etc
, addition of repo withsudo ostree
, or removing and adding systemd services and autostart programs.handling sudo by including it in the
CMD_
argument tosubprocess.Popen
orsubprocess.call
does not seem to be a good idea. The polkit cannot be configured either since it is in/usr