1
Description: If in a Unity session, don't allow the user to disable Unity from main view.
2
Author: Andrew Starr-Bochicchio <a.starr.b@gmail.com>
4
=== modified file 'ccm/Widgets.py'
5
diff -Nur -x '*.orig' -x '*~' a/compizconfig/ccsm/ccm/Widgets.py b/compiconfig/ccsm/ccm/Widgets.py
6
--- a/compizconfig/ccsm/ccm/Widgets.py 2012-02-02 19:05:53.690931000 -0500
7
+++ b/compizconfig/ccsm/ccm/Widgets.py 2012-02-13 18:42:47.612544975 -0500
9
button.set_tooltip_text (plugin.LongDesc)
12
- if plugin.Name != 'core':
13
+ blacklist_plugins = ['core']
14
+ if os.getenv('DESKTOP_SESSION') == 'ubuntu':
15
+ blacklist_plugins.append('unityshell')
17
+ if plugin.Name not in blacklist_plugins:
18
enable = gtk.CheckButton ()
19
enable.set_tooltip_text(_("Enable %s") % plugin.ShortDesc)
20
enable.set_active (plugin.Enabled)