Fails to declare dependency on either gksu or kdesudo
javabrett opened this issue · 0 comments
javabrett commented
In a very stripped/bare-bones install (e.g. starting from a Docker image), neither gksu
nor kdesudo
may be installed, and mintdrivers
relies on one or the other, in the launch script:
if os.path.exists("/usr/bin/gksu"):
launcher = "gksu --message \"<b>%s</b>\"" % sentence
elif os.path.exists("/usr/bin/kdesudo"):
launcher = "kdesudo -i %s -d --comment \"<b>%s</b>\"" % (icon, sentence)
There's no final else, so you end-up with an error:
NameError: name 'launcher' is not defined