diff --git a/data/sm.puri.phosh.gschema.xml b/data/sm.puri.phosh.gschema.xml index 9ee8dbf170bb4737e64e7bb600aaf9b0935903f4..a75b761040a37bb5e3e625acc1577446b16dfaf8 100644 --- a/data/sm.puri.phosh.gschema.xml +++ b/data/sm.puri.phosh.gschema.xml @@ -36,6 +36,16 @@ lists touch capable apps that adapt to small screen sizes. + + true + + Controls whether to enable splash screens when launching applications. + + + If set to true, phosh will display a splash screen after a supported + application is launched and before the application shows a window. + + 'modemmanager' Which backend to use for interfacing with the cellular modem diff --git a/src/shell.c b/src/shell.c index 57e631032fd5bc62f8aeee5b2be1289fd43a76f0..b64924503bba0a49a5d355cbb6127f588f06e3f6 100644 --- a/src/shell.c +++ b/src/shell.c @@ -1677,6 +1677,10 @@ phosh_shell_get_show_splash (PhoshShell *self) priv = phosh_shell_get_instance_private (self); g_return_val_if_fail (PHOSH_IS_DOCKED_MANAGER (priv->docked_manager), TRUE); + g_autoptr (GSettings) settings = g_settings_new ("sm.puri.phosh"); + if (!g_settings_get_boolean (settings, "splash-screen")) + return FALSE; + if (priv->debug_flags & PHOSH_SHELL_DEBUG_FLAG_ALWAYS_SPLASH) return TRUE;