Description
Upon running DisableProgram <program_name>
the program gets disabled, however currently there is no way to distinguish an enabled from a disabled program.
I suggest to append a "-Disabled
" to the version name eg Bash/5.0.0-Disabled
. I found that this filename extension (for whatever reason) is already being checked by FindDependancies
(https://github.com/gobolinux/Scripts/blob/master/src/FindDependencies.c#L189)! So maybe this has already been a planned feature/behaviour.
On the side of DisableProgram
this would be a one line change (https://github.com/gobolinux/Scripts/blob/master/bin/DisableProgram#L123). Atm, DisableProgram
only appends -Disabled
temporarily so we simply remove the line that reverts it.
However SymlinkProgram
will have to be adjusted, so that it will remove the appended -Disabled
string from the filename upon being run on a disabled program.