1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#!/usr/bin/pkexec python # -*- coding: utf-8 -*- """ @author: Alessandro Facciorusso """ import os import sys from bumblebee_config.bumblebee_main_window import BumblebeeMainWindow if __name__ == '__main__': if os.geteuid() != 0: print "Error: please run this program with 'sudo bumblebee-conf'." sys.exit(1) wnd = BumblebeeMainWindow() wnd.run() |