diff --git a/debian/control b/debian/control index 0bf6e72..ce9e884 100644 --- a/debian/control +++ b/debian/control @@ -20,6 +20,7 @@ Vcs-Browser: https://github.com/lubuntu-team/lubuntu-about Package: lubuntu-about Architecture: all Depends: lsb-release, + neofetch, pyqt5-dev, python3-cpuinfo, python3-lubuntu-about, diff --git a/src/lubuntu-about b/src/lubuntu-about index 694f115..0ed1fe7 100755 --- a/src/lubuntu-about +++ b/src/lubuntu-about @@ -79,8 +79,14 @@ def setvariables(): cpu = cpuinfo.get_cpu_info()["brand"] - # FIXME: Please, someone simplify this... - graphics = (run(["lspci", "-mm"], stdout=PIPE).stdout.decode('utf-8').split("\n")[2].replace("\"", "").split("VGA compatible controller ")[1].split("Controller")[0])+"Controller" + # FIXME: This code is horrible, it shouldn't depend on neofetch and should be reworked. + graphicslist = run(["neofetch", "--stdout"], stdout=PIPE).stdout.decode("utf-8").split("\n") + + i = 0 + while i < len(graphicslist): + if "GPU" in graphicslist[i]: + graphics = graphicslist[i].replace("GPU: ", "") + i += 1 freemem = memcalc(virtual_memory().free) totalmem = memcalc(virtual_memory().total)