myunity checks the version of ubuntu by taking the last 5 characters of the second line of lsb-release. In a default install, this is the DISTRIB_VERSION, but this is very fragile. If anything should reorder the lsb-release file, as often happens in customized installations, this no longer works. Actually using the shell to parse the variables in the file is much more robust.
myunity checks the version of ubuntu by taking the last 5 characters of the second line of lsb-release. In a default install, this is the DISTRIB_VERSION, but this is very fragile. If anything should reorder the lsb-release file, as often happens in customized installations, this no longer works. Actually using the shell to parse the variables in the file is much more robust.