Merge lp:~townsend/compiz/fix-lp890747 into lp:compiz/0.9.11

Proposed by Christopher Townsend
Status: Merged
Approved by: Christopher Townsend
Approved revision: 3785
Merged at revision: 3786
Proposed branch: lp:~townsend/compiz/fix-lp890747
Merge into: lp:compiz/0.9.11
Diff against target: 102 lines (+47/-3)
5 files modified
debian/compiz-plugins-default.install (+1/-0)
debian/compiz-plugins.install (+0/-1)
debian/control (+4/-1)
debian/patches/ubuntu-config.patch (+41/-0)
debian/unity.ini (+1/-1)
To merge this branch: bzr merge lp:~townsend/compiz/fix-lp890747
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
MC Return Approve
Brandon Schaefer (community) Approve
Review via email: mp+180923@code.launchpad.net

Commit message

Ctrl-Alt-Del should open the gnome-system-monitor at the processes tab. This fix uses the commands plugin to override the default action. This includes:
 - Install the commands plugin by default.
 - Breaks/Replaces the compiz-plugins package for versions earlier than 0.9.10.
 - Patch commands.xml and integrated.xml to map gnome-system-monitor to Ctrl-Alt-Del by default.
 - Start the command plugin upon Compiz starting.

Description of the change

= Issue =
Currently, Ctrl-Alt-Del brings up the Lock/Logout dialog box. Design would like Ctrl-Alt-Del to instead bring up Gnome System Monitor with the processes tab open.

= Fix =
As proposed in the bug, using the commands plugin in Compiz can override Ctrl-Alt-Del in order to accomplish what Design wants. This MP does the following:
- Installs the commands plugin in the compiz-plugins-default package instead of the compiz-plugins package.
- Breaks/Replaces the compiz-plugins package for versions earlier than 0.9.10.
- Sets the gnome-system-monitor package as a Recommends for compiz-gnome.
- Modifies the commands.xml and integrated.xml to map Ctrl-Alt-Del to gnome-system-monitor using the ubuntu-config.patch file.
- Starts the commands plugin upon starting Compiz.

The mapping of Ctrl-Alt-Del to gnome-system-monitor is done in the last command slot so as to try to avoid any already existing command mappings a user may have. This is not guaranteed, but should cover almost all cases. If the user is using all slots, then they are quite advanced already and probably doesn't care about this:)

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

LGTM

review: Approve
Revision history for this message
MC Return (mc-return) wrote :

The whole ubuntu-config.patch is just a nightmare...

Chris, thanks for following my suggestion with this MP. Approve !

This will make it much easier for anyone coming from W.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Francis Ginther (fginther) wrote :

Found jenkins issue, re-approving.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

Hmm, something wrong with the patch in this...

lp:~townsend/compiz/fix-lp890747 updated
3785. By Christopher Townsend

Re-copied the patch output for the new patch files due to some unseen error in patching the files.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/compiz-plugins-default.install'
--- debian/compiz-plugins-default.install 2013-02-26 16:48:27 +0000
+++ debian/compiz-plugins-default.install 2013-08-30 12:31:11 +0000
@@ -1,4 +1,5 @@
1debian/tmp/usr/*/compiz/*animation.*1debian/tmp/usr/*/compiz/*animation.*
2debian/tmp/usr/*/compiz/*commands.*
2debian/tmp/usr/*/compiz/*compiztoolbox.*3debian/tmp/usr/*/compiz/*compiztoolbox.*
3debian/tmp/usr/*/compiz/*composite.*4debian/tmp/usr/*/compiz/*composite.*
4debian/tmp/usr/*/compiz/*copytex.*5debian/tmp/usr/*/compiz/*copytex.*
56
=== modified file 'debian/compiz-plugins.install'
--- debian/compiz-plugins.install 2013-02-26 16:48:27 +0000
+++ debian/compiz-plugins.install 2013-08-30 12:31:11 +0000
@@ -2,7 +2,6 @@
2debian/tmp/usr/*/compiz/*annotate.*2debian/tmp/usr/*/compiz/*annotate.*
3debian/tmp/usr/*/compiz/*bench.*3debian/tmp/usr/*/compiz/*bench.*
4debian/tmp/usr/*/compiz/*clone.*4debian/tmp/usr/*/compiz/*clone.*
5debian/tmp/usr/*/compiz/*commands.*
6debian/tmp/usr/*/compiz/*crashhandler.*5debian/tmp/usr/*/compiz/*crashhandler.*
7debian/tmp/usr/*/compiz/*cube.*6debian/tmp/usr/*/compiz/*cube.*
8debian/tmp/usr/*/compiz/*cubeaddon.*7debian/tmp/usr/*/compiz/*cubeaddon.*
98
=== modified file 'debian/control'
--- debian/control 2013-04-25 03:14:29 +0000
+++ debian/control 2013-08-30 12:31:11 +0000
@@ -144,7 +144,8 @@
144 compiz-plugins-default (= ${binary:Version}),144 compiz-plugins-default (= ${binary:Version}),
145 gsettings-desktop-schemas,145 gsettings-desktop-schemas,
146 gnome-settings-daemon (>= 3.4.2-0ubuntu9),146 gnome-settings-daemon (>= 3.4.2-0ubuntu9),
147Recommends: python-gconf147Recommends: python-gconf,
148 gnome-system-monitor,
148Replaces: compiz-plugins-main (<= 1:0.9.8),149Replaces: compiz-plugins-main (<= 1:0.9.8),
149 compiz-plugins-main-default (<= 1:0.9.8),150 compiz-plugins-main-default (<= 1:0.9.8),
150 compizconfig-backend-gconf (<= 1:0.9.8),151 compizconfig-backend-gconf (<= 1:0.9.8),
@@ -167,7 +168,9 @@
167 ${shlibs:Depends},168 ${shlibs:Depends},
168 ${misc:Depends},169 ${misc:Depends},
169Replaces: compiz-plugins-main-default (<< 1:0.9.8),170Replaces: compiz-plugins-main-default (<< 1:0.9.8),
171 compiz-plugins (<< 1:0.9.10),
170Breaks: compiz-plugins-main-default (<< 1:0.9.8),172Breaks: compiz-plugins-main-default (<< 1:0.9.8),
173 compiz-plugins (<< 1:0.9.10),
171Description: OpenGL window and compositing manager - default plugins174Description: OpenGL window and compositing manager - default plugins
172 Compiz brings to life a variety of visual effects that make the Linux desktop175 Compiz brings to life a variety of visual effects that make the Linux desktop
173 easier to use, more powerful and intuitive, and more accessible for users176 easier to use, more powerful and intuitive, and more accessible for users
174177
=== modified file 'debian/patches/ubuntu-config.patch'
--- debian/patches/ubuntu-config.patch 2013-07-23 23:30:23 +0000
+++ debian/patches/ubuntu-config.patch 2013-08-30 12:31:11 +0000
@@ -843,3 +843,44 @@
843 </option>843 </option>
844 <option name="ground_color1" type="color">844 <option name="ground_color1" type="color">
845 <_short>Ground Color (near)</_short>845 <_short>Ground Color (near)</_short>
846--- a/compizconfig/integration/gnome/gsettings/org.compiz.integrated.gschema.xml
847+++ b/compizconfig/integration/gnome/gsettings/org.compiz.integrated.gschema.xml
848@@ -10,6 +10,9 @@
849 <key type="s" name="command-screenshot">
850 <default>"gnome-screenshot"</default>
851 </key>
852+ <key type="as" name="run-command-21">
853+ <default>["&lt;Control&gt;&lt;Alt&gt;Delete"]</default>
854+ </key>
855 <key type="as" name="run-command-12">
856 <default>["Disabled"]</default>
857 </key>
858@@ -46,6 +49,9 @@
859 <key type="as" name="run-command-1">
860 <default>["Disabled"]</default>
861 </key>
862+ <key type="s" name="command-21">
863+ <default>"/usr/bin/gnome-system-monitor -p"</default>
864+ </key>
865 <key type="s" name="command-12">
866 <default>""</default>
867 </key>
868--- a/plugins/commands/commands.xml.in
869+++ b/plugins/commands/commands.xml.in
870@@ -117,7 +117,7 @@
871 <option name="command20" type="string">
872 <_short>Command line 20</_short>
873 <_long>Command line to be executed in shell when run_command20 is invoked</_long>
874- <default></default>
875+ <default>/usr/bin/gnome-system-monitor -p</default>
876 </option>
877 </group>
878 <group>
879@@ -205,6 +205,7 @@
880 <option name="run_command20_key" type="key">
881 <_short>Run command 20</_short>
882 <_long>A keybinding that when invoked, will run the shell command identified by command20</_long>
883+ <default>&lt;Control&gt;&lt;Alt&gt;Delete</default>
884 </option>
885 </group>
886 <group>
846887
=== modified file 'debian/unity.ini'
--- debian/unity.ini 2013-02-19 15:22:31 +0000
+++ debian/unity.ini 2013-08-30 12:31:11 +0000
@@ -1,3 +1,3 @@
1[core]1[core]
2s0_active_plugins = core;composite;opengl;copytex;compiztoolbox;decor;vpswitch;snap;mousepoll;resize;place;move;wall;grid;regex;imgpng;session;gnomecompat;animation;fade;unitymtgrabhandles;workarounds;scale;expo;ezoom;unityshell2s0_active_plugins = core;composite;opengl;copytex;compiztoolbox;decor;vpswitch;snap;mousepoll;resize;place;move;wall;grid;regex;imgpng;session;gnomecompat;animation;fade;unitymtgrabhandles;workarounds;scale;expo;ezoom;commands;unityshell
33

Subscribers

People subscribed via source and target branches