Skip to content
This repository has been archived by the owner on Feb 6, 2021. It is now read-only.

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

Open
jonchun opened this issue Apr 4, 2020 · 2 comments

Comments

@jonchun
Copy link
Owner

jonchun commented Apr 4, 2020

No description provided.

@jonchun jonchun changed the title Add checks/warnings in installer to make sure we are running KDE Neon 18.04 No checks/warnings in installer to make sure we are running KDE Neon 18.04 Apr 4, 2020
@jonchun
Copy link
Owner Author

jonchun commented Apr 4, 2020

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
Copy link
Owner Author

jonchun commented Apr 7, 2020

Also want to support Kubuntu 18.04/20.04

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant