macify-linux icon indicating copy to clipboard operation
macify-linux copied to clipboard

No checks/warnings in installer to make sure we are running KDE Neon 18.04

Open jonchun opened this issue 4 years ago • 2 comments

jonchun avatar Apr 04 '20 02:04 jonchun

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

jonchun avatar Apr 04 '20 02:04 jonchun

Also want to support Kubuntu 18.04/20.04

jonchun avatar Apr 07 '20 16:04 jonchun