def main():
    #import sys
    app = QtGui.QApplication(sys.argv)
    QtGui.QApplication.setStyle('cleanlooks')

    #if Common.exit_early:
        #sys.exit(0)

    # locale settings are implemented for KDE desktop only.
    # skip if other desktop.
    if sys.argv[1] == 'locale_settings':
        kcmshell = distutils.spawn.find_executable("kcmshell4")
        if kcmshell == None:
            print 'kcmshell4 not found. Exiting'
            sys.exit()

    # root check.
    # locale_settings has to be run as user.
    if sys.argv[1] != 'locale_settings':
        if os.getuid() != 0:
            print 'ERROR: This must be run as root!\nUse "kdesudo".'
            not_root = gui_message(Common.translations_path, 'not_root')
            sys.exit(1)

    wizard = WhonixSetupWizard()
def main():
    QtGui.QApplication.setStyle('cleanlooks')
    # root check.
    if os.getuid() != 0:
        print 'ERROR: This must be run as root!\nUse "kdesudo".'
        not_root = gui_message(Common.translations_path, 'not_root')
        sys.exit(1)
    wizard = WhonixConnectionWizard()

    sys.exit(0)
def main():
    QtGui.QApplication.setStyle('cleanlooks')
    # root check.
    if os.getuid() != 0:
        print 'ERROR: This must be run as root!\nUse "kdesudo".'
        not_root = gui_message(Common.translations_path, 'not_root')
        sys.exit(1)
    wizard = WhonixConnectionWizard()

    sys.exit(0)
def main():
    #import sys
    app = QtWidgets.QApplication(sys.argv)

    # locale settings are implemented for KDE desktop only.
    # skip if other desktop.
    if sys.argv[1] == 'locale_settings':
        kcmshell = distutils.spawn.find_executable("kcmshell4")
        if kcmshell == None:
            print('kcmshell4 not found. Exiting')
            sys.exit()

    # root check.
    # locale_settings has to be run as user.
    if sys.argv[1] != 'locale_settings':
        if os.getuid() != 0:
            print('ERROR: This must be run as root!\nUse "kdesudo".')
            not_root = gui_message(Common.translations_path, 'not_root')
            sys.exit(1)

    wizard = WhonixSetupWizard()

    if Common.run_repo:
        f = open(
            '/var/cache/whonix-setup-wizard/status-files/whonix_repository.done',
            'w')
        f.close()

    if Common.show_disclaimer:
        f = open('/var/cache/whonix-setup-wizard/status-files/disclaimer.done',
                 'w')
        f.close()

    if Common.first_use_notice:
        f = open(
            '/var/cache/whonix-setup-wizard/status-files/first_use_check.done',
            'w')
        f.close()

    if Common.is_complete:
        if not os.path.exists(
                '/var/cache/whonix-setup-wizard/status-files/whonixsetup.done'
        ):
            f = open(
                '/var/cache/whonix-setup-wizard/status-files/whonixsetup.done',
                'w')
            f.close()
        # run whonixcheck
        command = '/usr/lib/whonixsetup_/ft_m_end'
        call(command, shell=True)

    sys.exit()
def main():
    import sys
    app = QApplication(sys.argv)

    # root check.
    if os.getuid() != 0:
        print('ERROR: This must be run as root!\nUse "sudo --set-home".')
        not_root = gui_message(common.tr_file, 'not_root')
        sys.exit(1)

    wizard = repository_dist_wizard()

    sys.exit()
def main():
    import sys
    app = QApplication(sys.argv)

    # root check.
    if os.getuid() != 0:
        print('ERROR: This must be run as root!\nUse "kdesudo".')
        not_root = gui_message(common.tr_file, 'not_root')
        sys.exit(1)

    wizard = whonix_repository_wizard()

    sys.exit()
예제 #7
0
def main():
    # Available styles: "windows", "motif", "cde", "sgi", "plastique" and "cleanlooks"
    QtWidgets.QApplication.setStyle('cleanlooks')
    
    # root check.
    if os.getuid() != 0:
        print('ERROR: This must be run as root!\nUse "kdesudo".')
        not_root = gui_message(Common.translations_path, 'not_root')
        sys.exit(1)
        
    wizard = AnonConnectionWizard()

    sys.exit(0)
def main():
    #import sys
    app = QtGui.QApplication(sys.argv)

    # locale settings are implemented for KDE desktop only.
    # skip if other desktop.
    if sys.argv[1] == 'locale_settings':
        kcmshell = distutils.spawn.find_executable("kcmshell4")
        if kcmshell == None:
            print 'kcmshell4 not found. Exiting'
            sys.exit()

    # root check.
    # locale_settings has to be run as user.
    if sys.argv[1] != 'locale_settings':
        if os.getuid() != 0:
            print 'ERROR: This must be run as root!\nUse "kdesudo".'
            not_root = gui_message(Common.translations_path, 'not_root')
            sys.exit(1)

    wizard = WhonixSetupWizard()

    if Common.run_repo:
        f = open('/var/cache/whonix-setup-wizard/status-files/whonix_repository.done', 'w')
        f.close()

    if Common.show_disclaimer:
        f = open('/var/cache/whonix-setup-wizard/status-files/disclaimer.done', 'w')
        f.close()

    if Common.first_use_notice:
        f = open('/var/cache/whonix-setup-wizard/status-files/first_use_check.done', 'w')
        f.close()

    if Common.is_complete:
        if not os.path.exists('/var/cache/whonix-setup-wizard/status-files/whonixsetup.done'):
            f = open('/var/cache/whonix-setup-wizard/status-files/whonixsetup.done', 'w')
            f.close()
        # run whonixcheck
        command = '/usr/lib/whonixsetup_/ft_m_end'
        call(command, shell=True)

    sys.exit()