macify-linux
macify-linux copied to clipboard
No checks/warnings in installer to make sure we are running KDE Neon 18.04
Can probably just use
def lsb_release():
lsb_output = subprocess.check_output(['lsb_release', '-a'], stderr=subprocess.DEVNULL).decode()
lsb_split = lsb_output.split('\n')
distributor = ''
release = ''
codename = ''
for line in lsb_split:
if 'distributor' in line.lower():
distributor = line.split(':')[1].strip()
elif 'release' in line.lower():
release = line.split(':')[1].strip()
elif 'codename' in line.lower():
codename = line.split(':')[1].strip()
return (distributor, release, codename)
from here
Also want to support Kubuntu 18.04/20.04