ScreenShield: hide Removable devices in the lock screen

Showing the removable devices is potentially a security risk (as
they include network shares). Also, a nautilus launched from there
can't be used, so it's just a way to overload the system.

https://bugzilla.gnome.org/show_bug.cgi?id=681143
This commit is contained in:
Giovanni Campagna
2012-08-16 22:30:32 +02:00
parent 13a10f8afd
commit bec48492ab
3 changed files with 5 additions and 2 deletions

View File

@ -159,8 +159,9 @@ const NotificationsBox = new Lang.Class({
},
_summaryItemAdded: function(tray, item, dontUpdateVisibility) {
// Ignore transient sources
if (item.source.isTransient)
// Ignore transient sources, or sources explicitly marked not to show
// in the lock screen
if (item.source.isTransient || !item.source.showInLockScreen)
return;
let obj = {