def beta_4_3_1_to_beta_4_3_2(self, dummy_progress): # Remove non COPPA compliant apps # web whatsapp has no debian candidate, remove manually run_cmd_log('rm -f /usr/share/applications/*whatsapp*') run_cmd_log('rm -f /usr/share/icons/Kano/66x66/apps/whatsapp.png') # aptitude purge removes package and all its exclusive dependencies run_cmd_log('aptitude purge pidgin -y') run_cmd_log('rm -f /usr/share/applications/pidgin*') run_for_every_user('rm -fv $HOME/.kdesktop/Pidgin.lnk') run_cmd_log('rm -f /usr/share/icons/Kano/66x66/apps/pidgin.png')
def beta_3_12_0_to_beta_3_12_1(self): try: ''' Any CKC user passing through this function must have updated and hence must be a v1.0 user (CKC v1.1 ships with a higher version number and has logic to determine the version by the hardware). Add flag for these users to show a free speaker upgrade message. ''' from kano_peripherals.wrappers.detection import is_ck2_pro if is_ck2_pro(): speaker_warning_file = '~/.show_speaker_warning' run_for_every_user('touch {}'.format(speaker_warning_file)) except Exception: logger.error('Failed to check for CKC v1.0 Speaker')
def beta_3_12_0_to_beta_3_12_1(self, dummy_progress): try: ''' Any CKC user passing through this function must have updated and hence must be a v1.0 user (CKC v1.1 ships with a higher version number and has logic to determine the version by the hardware). Add flag for these users to show a free speaker upgrade message. ''' from kano_peripherals.wrappers.detection import is_ck2_pro if is_ck2_pro(): speaker_warning_file = '~/.show_speaker_warning' run_for_every_user('touch {}'.format(speaker_warning_file)) except Exception: logger.error('Failed to check for CKC v1.0 Speaker')
def beta_240_to_beta_300(self, dummy_progress): def enable_audio_device(): from kano_settings.boot_config import set_config_value set_config_value("dtparam=audio", "on") try: from kano_settings.boot_config import end_config_transaction end_config_transaction() except ImportError: logger.error("end_config_transaction not present - update to kano-settings failed?") enable_audio_device() # tell kano-overworld to skip onboarding stage run_for_every_user('/usr/bin/luajit /usr/share/kano-overworld/bin/skip-onboarding.lua') # tell dashboard to skip Overworld and kit setup onboarding phase run_for_every_user('touch ~/.dashboard-click-onboarding-done')
def beta_240_to_beta_300(self): def enable_audio_device(): from kano_settings.boot_config import set_config_value set_config_value("dtparam=audio", "on") try: from kano_settings.boot_config import end_config_transaction end_config_transaction() except ImportError: logger.error( "end_config_transaction not present - update to kano-settings failed?" ) enable_audio_device() # tell kano-overworld to skip onboarding stage run_for_every_user( '/usr/bin/luajit /usr/share/kano-overworld/bin/skip-onboarding.lua' ) # tell dashboard to skip Overworld and kit setup onboarding phase run_for_every_user('touch ~/.dashboard-click-onboarding-done')
def _kano_content_prune(): # kano-content needs to be ran as sudo kano_content_cmd = 'sudo kano-content prune' run_for_every_user(kano_content_cmd)
def _sync(): sync_cmd = 'kano-sync --skip-kdesk --sync --backup --upload-tracking-data -s' run_for_every_user(sync_cmd)
def beta_4_3_2_to_beta_4_3_3(self, dummy_progress): # Set Parental Controls to Ultimate for all existing users. COPPA. run_for_every_user( 'sudo kano-settings-cli set parental --level=3 kano')