aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2014-10-23 18:54:01 -0500
committerDavid Barksdale <amatus@amatus.name>2014-10-23 18:54:01 -0500
commitd0c4bd852f9284a8a5d8c4012788119390c93d4d (patch)
tree9585f8d3c83ee51da375be93ce2d2ba105fa0d76
parentc808a2fdfa37bf552430011fce2aadd659b3ea03 (diff)
New script for general decrufting
-rwxr-xr-xdecruft.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/decruft.py b/decruft.py
new file mode 100755
index 0000000..6ad87aa
--- /dev/null
+++ b/decruft.py
@@ -0,0 +1,8 @@
+#!/usr/bin/env python
+
+# Remove Amazon webapp from the launcher
+from gi.repository import Gio
+settings = Gio.Settings.new('com.canonical.Unity.Launcher')
+settings['favorites'] = [x for x in settings['favorites']
+ if x != 'application://ubuntu-amazon-default.desktop']
+