Merge lp:~khadgaray/unity-lens-applications/fix-lockdown into lp:unity-lens-applications

Proposed by Ritesh Khadgaray
Status: Rejected
Rejected by: Didier Roche-Tolomelli
Proposed branch: lp:~khadgaray/unity-lens-applications/fix-lockdown
Merge into: lp:unity-lens-applications
Diff against target: 16 lines (+6/-0)
1 file modified
src/daemon.vala (+6/-0)
To merge this branch: bzr merge lp:~khadgaray/unity-lens-applications/fix-lockdown
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Didier Roche-Tolomelli Needs Fixing
Mikkel Kamstrup Erlandsen (community) Needs Information
Review via email: mp+113251@code.launchpad.net

Description of the change

Allows an admin to disable command run dialog based on gnome security policies.

To post a comment you must log in.
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

This adds a hard runtime dep on the org.gnome.desktop.lockdown schema. Does this imply a new dependency for the package as well?

review: Needs Information
Revision history for this message
Ritesh Khadgaray (khadgaray) wrote :

> This adds a hard runtime dep on the org.gnome.desktop.lockdown schema. Does
> this imply a new dependency for the package as well?

Unity already depends on this via libgnome-desktop-3-4, which needs gsettings-desktop-schemas.

-- ritz

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

I would rather the check happening when the lens is started and then listening to the key changing than after you did a search and ready to activate it.

In that case, we should display a friendly message to the user rather than afterwards :)

Also yeah, as told on IRC, the dependency should be specified directly. And it needs tests ;)

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:287
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~khadgaray/unity-lens-applications/fix-lockdown/+merge/113251/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/unity-lens-applications-ci/3/
Executed test runs:
    FAILURE: http://jenkins.qa.ubuntu.com/job/unity-lens-applications-raring-amd64-ci/3/console
    FAILURE: http://jenkins.qa.ubuntu.com/job/unity-lens-applications-raring-armhf-ci/3/console
    FAILURE: http://jenkins.qa.ubuntu.com/job/unity-lens-applications-raring-i386-ci/3/console

Click here to trigger a rebuild:
http://s-jenkins:8080/job/unity-lens-applications-ci/3/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Didn't get any feedback. Rejecting due to aging MP

Unmerged revisions

287. By Ritesh Khadgaray

add lockdown support to disable commandline (LP# 813895)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/daemon.vala'
--- src/daemon.vala 2012-04-23 13:58:42 +0000
+++ src/daemon.vala 2012-07-03 16:28:26 +0000
@@ -997,6 +997,12 @@
997 }997 }
998 else998 else
999 {999 {
1000 Settings lockdown = new Settings ("org.gnome.desktop.lockdown");
1001 if (uri.has_prefix ("unity-runner://") && lockdown.get_boolean ("disable-command-line")) {
1002 warning ("disabled by administrator");
1003 return new Unity.ActivationResponse(Unity.HandledType.NOT_HANDLED);
1004 }
1005
1000 try {1006 try {
1001 unowned string home_dir = GLib.Environment.get_home_dir ();1007 unowned string home_dir = GLib.Environment.get_home_dir ();
1002 Process.spawn_async (home_dir, args, null, SpawnFlags.SEARCH_PATH, null, null);1008 Process.spawn_async (home_dir, args, null, SpawnFlags.SEARCH_PATH, null, null);

Subscribers

People subscribed via source and target branches