Skip to content

Commit

Permalink
[OS-1006] - Remove non COPPA compliant apps through the upgrade (#409)
Browse files Browse the repository at this point in the history
* Remove non COPPA compliant apps through the upgrade

* missing "rm" command
  • Loading branch information
skarbat authored Sep 3, 2019
1 parent a36aa09 commit 180672f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ kano-updater (4.3.2-0) unstable; urgency=low

* Bump version for Kano OS v4.3.2 "Hopper"
* Enabled Ultimate parental control level for all users
* Remove non COPPA compliant apps during upgrade

-- Team Kano <[email protected]> Fri, 30 Aug 2019 11:12:00 +0100

Expand Down
12 changes: 12 additions & 0 deletions kano_updater/scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,5 +1256,17 @@ def beta_4_3_0_to_beta_4_3_1(self, dummy_progress):
pass

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')

# Set Parental Controls to Ultimate for all existing users. COPPA.
run_for_every_user('sudo kano-settings-cli set parental --level=3 "kano"')

0 comments on commit 180672f

Please sign in to comment.