@@ -90,12 +90,8 @@ public class Greeter.Application : Gtk.Application {
9090
9191 var select_session_action = new GLib .SimpleAction .stateful (" select-session" , GLib . VariantType . STRING , selected_session);
9292 var vardict = new GLib .VariantDict ();
93- var has_pantheon_x11_session = false ;
9493 sessions. foreach ((session) = > {
9594 vardict. insert_value (session. name, new GLib .Variant .string (session. key));
96- if (session. key == " pantheon" ) {
97- has_pantheon_x11_session = true ;
98- }
9995 });
10096 select_session_action. set_state_hint (vardict. end ());
10197
@@ -106,31 +102,6 @@ public class Greeter.Application : Gtk.Application {
106102 });
107103
108104 add_action (select_session_action);
109-
110- if (has_pantheon_x11_session) {
111- var a11y_settings = new GLib .Settings (" org.gnome.desktop.a11y.applications" );
112- a11y_settings. changed. connect ((key) = > {
113- if (key != " screen-keyboard-enabled" && key != " screen-reader-enabled" ) {
114- return ;
115- }
116-
117- if (! a11y_settings. get_boolean (key)) {
118- return ;
119- }
120-
121- if (select_session_action. get_state (). get_string () != " pantheon-wayland" ) {
122- return ;
123- }
124-
125- select_session_action. set_state (new Variant .string (" pantheon" ));
126-
127- var notification = new Notification (_(" Classic session automatically selected" ));
128- notification. set_body (_(" Accessibility features may be unavailable in the Secure session" ));
129- notification. set_icon (new ThemedIcon (" preferences-desktop-accessibility" ));
130-
131- send_notification (" session-type" , notification);
132- });
133- }
134105 }
135106
136107 public override void activate () {
0 commit comments