def iUnity(wmid): # this is to check wether the user is actually using unity # or using unity as an xdg value to fix issues with electron apps if wmid.lower() == "compiz": desktopid = "unity" else: desktopid = wmid return desktopid
def get_desktopid(deid, wmid): deid = deid.lower() wmid = wmid.lower() if deid != "n/a" and deid in desktops: desktopid = deid elif deid == "n/a" and wmid in windowmanagers: desktopid = wmid else: print("Unknown DE/WM, contact us on github to resolve this.") desktopid = 'unknown' return desktopid
if sysosid.lower() != "macos": hosts[hostid.lower()]() except KeyError: print("Unknown Host, contact us on github to resolve this.(Keyerror)") Unknown_host() try: if deid != "N/A" and sysosid.lower() != "macos": desktops[deid.lower()]() except KeyError: print("Unsupported De contact me on github to resolve this.(Keyerror)") Unknown_de_wm() try: if deid == "N/A" and sysosid.lower() != "macos": windowmanagers[wmid.lower()]() except KeyError: print("Unsupported Wm contact me on github to resolve this.(Keyerror)") Unknown_de_wm() try: if sysosid.lower() != "macos": distros[sysosid.lower()]() except KeyError: print("Unsupported Distro, contact me on the GitHub page to resolve this.(keyerror)") Unknown_distro() try: if cpuvendor == "AMD": amdcpus[cpumodel.lower()]() elif cpuvendor in ["Intel", "Pentium"]: