[gnome-shell/eos3.8: 122/255] appActivation: Do not show splash/speedwagon if app is blacklisted
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/eos3.8: 122/255] appActivation: Do not show splash/speedwagon if app is blacklisted
- Date: Wed, 10 Jun 2020 19:08:14 +0000 (UTC)
commit ee91f0a1dac5bf0afdd7243c100732740eb58487
Author: Andre Moreira Magalhaes <andre endlessm com>
Date: Mon Jul 15 22:24:19 2019 +0000
appActivation: Do not show splash/speedwagon if app is blacklisted
Signed-off-by: Andre Moreira Magalhaes <andre endlessm com>
https://phabricator.endlessm.com/T26990
js/ui/appActivation.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/appActivation.js b/js/ui/appActivation.js
index 76888a31e4..53a479704f 100644
--- a/js/ui/appActivation.js
+++ b/js/ui/appActivation.js
@@ -7,6 +7,7 @@ const { Clutter, Gio, GLib, Meta, Shell, St } = imports.gi;
const { loadInterfaceXML } = imports.misc.fileUtils;
const Main = imports.ui.main;
+const ParentalControlsManager = imports.misc.parentalControlsManager;
const Util = imports.misc.util;
const SPLASH_SCREEN_TIMEOUT = 700; // ms
@@ -43,7 +44,8 @@ function _shouldShowSplash(app) {
Util.getBrowserApp().state !== Shell.AppState.STOPPED)
return false;
- return true;
+ let parentalControlsManager = ParentalControlsManager.getDefault();
+ return parentalControlsManager.shouldShowApp(app.get_app_info());
}
var AppActivationContext = class {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]