[gdm/benzea/autostart-whitelist] launch-environment: Use new gnome-session AutostartWhitelist



commit a1c72fb5ac523a1538f095d0395aca8c9ec8da54
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Apr 7 16:44:36 2020 +0200

    launch-environment: Use new gnome-session AutostartWhitelist
    
    We really just want a whitelist of applications to be started through
    autostart. Use the new AutostartWhitelist key file to list application
    IDs that may be autostarted (while all others are not considered for
    autostart).
    
    The main disadvantage is that all applications that potentially should
    be autostarted need to be listed here (as part of distribution patches).
    
    In the common case, spice-vdagent should be added to the list.

 daemon/gdm-launch-environment.c       |  3 ---
 data/Makefile.am                      |  1 -
 data/autostart/Makefile.am            | 22 ----------------------
 data/autostart/orca-autostart.desktop |  7 -------
 data/gnome-login.session.in           |  1 +
 5 files changed, 1 insertion(+), 33 deletions(-)
---
diff --git a/daemon/gdm-launch-environment.c b/daemon/gdm-launch-environment.c
index feccf057..9af614eb 100644
--- a/daemon/gdm-launch-environment.c
+++ b/daemon/gdm-launch-environment.c
@@ -918,9 +918,6 @@ create_gnome_session_environment (const char *session_id,
         args = g_ptr_array_new ();
         g_ptr_array_add (args, "gnome-session");
 
-        g_ptr_array_add (args, "--autostart");
-        g_ptr_array_add (args, DATADIR "/gdm/greeter/autostart");
-
         if (debug) {
                 g_ptr_array_add (args, "--debug");
         }
diff --git a/data/Makefile.am b/data/Makefile.am
index bda91604..83159234 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -3,7 +3,6 @@ EXTRA_DIST =
 
 SUBDIRS =                      \
        applications            \
-       autostart               \
        $(NULL)
 
 initdir = $(gdmconfdir)/Init
diff --git a/data/gnome-login.session.in b/data/gnome-login.session.in
index 618e76ce..e4cd83e3 100644
--- a/data/gnome-login.session.in
+++ b/data/gnome-login.session.in
@@ -1,3 +1,4 @@
 [GNOME Session]
 Name=Display Manager
 
RequiredComponents=org.gnome.Shell;org.gnome.SettingsDaemon.A11ySettings;org.gnome.SettingsDaemon.Color;org.gnome.SettingsDaemon.Datetime;org.gnome.SettingsDaemon.Housekeeping;org.gnome.SettingsDaemon.Keyboard;org.gnome.SettingsDaemon.MediaKeys;org.gnome.SettingsDaemon.Power;org.gnome.SettingsDaemon.PrintNotifications;org.gnome.SettingsDaemon.Rfkill;org.gnome.SettingsDaemon.ScreensaverProxy;org.gnome.SettingsDaemon.Sharing;org.gnome.SettingsDaemon.Smartcard;org.gnome.SettingsDaemon.Sound;org.gnome.SettingsDaemon.Wacom;
+AutostartWhitelist=orca-autostart
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]