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
1=== modified file 'debian/compiz-plugins-default.install'
2--- debian/compiz-plugins-default.install 2013-02-26 16:48:27 +0000
3+++ debian/compiz-plugins-default.install 2013-08-30 12:31:11 +0000
4@@ -1,4 +1,5 @@
5 debian/tmp/usr/*/compiz/*animation.*
6+debian/tmp/usr/*/compiz/*commands.*
7 debian/tmp/usr/*/compiz/*compiztoolbox.*
8 debian/tmp/usr/*/compiz/*composite.*
9 debian/tmp/usr/*/compiz/*copytex.*
10
11=== modified file 'debian/compiz-plugins.install'
12--- debian/compiz-plugins.install 2013-02-26 16:48:27 +0000
13+++ debian/compiz-plugins.install 2013-08-30 12:31:11 +0000
14@@ -2,7 +2,6 @@
15 debian/tmp/usr/*/compiz/*annotate.*
16 debian/tmp/usr/*/compiz/*bench.*
17 debian/tmp/usr/*/compiz/*clone.*
18-debian/tmp/usr/*/compiz/*commands.*
19 debian/tmp/usr/*/compiz/*crashhandler.*
20 debian/tmp/usr/*/compiz/*cube.*
21 debian/tmp/usr/*/compiz/*cubeaddon.*
22
23=== modified file 'debian/control'
24--- debian/control 2013-04-25 03:14:29 +0000
25+++ debian/control 2013-08-30 12:31:11 +0000
26@@ -144,7 +144,8 @@
27 compiz-plugins-default (= ${binary:Version}),
28 gsettings-desktop-schemas,
29 gnome-settings-daemon (>= 3.4.2-0ubuntu9),
30-Recommends: python-gconf
31+Recommends: python-gconf,
32+ gnome-system-monitor,
33 Replaces: compiz-plugins-main (<= 1:0.9.8),
34 compiz-plugins-main-default (<= 1:0.9.8),
35 compizconfig-backend-gconf (<= 1:0.9.8),
36@@ -167,7 +168,9 @@
37 ${shlibs:Depends},
38 ${misc:Depends},
39 Replaces: compiz-plugins-main-default (<< 1:0.9.8),
40+ compiz-plugins (<< 1:0.9.10),
41 Breaks: compiz-plugins-main-default (<< 1:0.9.8),
42+ compiz-plugins (<< 1:0.9.10),
43 Description: OpenGL window and compositing manager - default plugins
44 Compiz brings to life a variety of visual effects that make the Linux desktop
45 easier to use, more powerful and intuitive, and more accessible for users
46
47=== modified file 'debian/patches/ubuntu-config.patch'
48--- debian/patches/ubuntu-config.patch 2013-07-23 23:30:23 +0000
49+++ debian/patches/ubuntu-config.patch 2013-08-30 12:31:11 +0000
50@@ -843,3 +843,44 @@
51 </option>
52 <option name="ground_color1" type="color">
53 <_short>Ground Color (near)</_short>
54+--- a/compizconfig/integration/gnome/gsettings/org.compiz.integrated.gschema.xml
55++++ b/compizconfig/integration/gnome/gsettings/org.compiz.integrated.gschema.xml
56+@@ -10,6 +10,9 @@
57+ <key type="s" name="command-screenshot">
58+ <default>"gnome-screenshot"</default>
59+ </key>
60++ <key type="as" name="run-command-21">
61++ <default>["&lt;Control&gt;&lt;Alt&gt;Delete"]</default>
62++ </key>
63+ <key type="as" name="run-command-12">
64+ <default>["Disabled"]</default>
65+ </key>
66+@@ -46,6 +49,9 @@
67+ <key type="as" name="run-command-1">
68+ <default>["Disabled"]</default>
69+ </key>
70++ <key type="s" name="command-21">
71++ <default>"/usr/bin/gnome-system-monitor -p"</default>
72++ </key>
73+ <key type="s" name="command-12">
74+ <default>""</default>
75+ </key>
76+--- a/plugins/commands/commands.xml.in
77++++ b/plugins/commands/commands.xml.in
78+@@ -117,7 +117,7 @@
79+ <option name="command20" type="string">
80+ <_short>Command line 20</_short>
81+ <_long>Command line to be executed in shell when run_command20 is invoked</_long>
82+- <default></default>
83++ <default>/usr/bin/gnome-system-monitor -p</default>
84+ </option>
85+ </group>
86+ <group>
87+@@ -205,6 +205,7 @@
88+ <option name="run_command20_key" type="key">
89+ <_short>Run command 20</_short>
90+ <_long>A keybinding that when invoked, will run the shell command identified by command20</_long>
91++ <default>&lt;Control&gt;&lt;Alt&gt;Delete</default>
92+ </option>
93+ </group>
94+ <group>
95
96=== modified file 'debian/unity.ini'
97--- debian/unity.ini 2013-02-19 15:22:31 +0000
98+++ debian/unity.ini 2013-08-30 12:31:11 +0000
99@@ -1,3 +1,3 @@
100 [core]
101-s0_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;unityshell
102+s0_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
103

Subscribers

People subscribed via source and target branches