Revert "PY-22514, CPP-8763, and Idea ultimate test failures: run initial"
[idea/community.git] / python / src / com / jetbrains / python / PyCharmInitialConfigurator.java
index 1614a1adef6444dfd649b6c1f7941a99d8be1c2a..14686d01fdff98a7f2d2df6f49a98f1ab1c674aa 100644 (file)
@@ -72,18 +72,16 @@ public final class PyCharmInitialConfigurator {
       CodeInsightSettings.getInstance().INDENT_TO_CARET_ON_PASTE = true;
     }
 
-    if (!ApplicationManager.getApplication().isHeadlessEnvironment()) {
-      if (!propertiesComponent.isValueSet(DISPLAYED_PROPERTY)) {
-        bus.connect().subscribe(AppLifecycleListener.TOPIC, new AppLifecycleListener() {
-          @Override
-          public void welcomeScreenDisplayed() {
-            ApplicationManager.getApplication().invokeLater(() -> {
-              propertiesComponent.setValue(DISPLAYED_PROPERTY, "true");
-              showInitialConfigurationDialog();
-            });
-          }
-        });
-      }
+    if (!propertiesComponent.isValueSet(DISPLAYED_PROPERTY)) {
+      bus.connect().subscribe(AppLifecycleListener.TOPIC, new AppLifecycleListener() {
+        @Override
+        public void welcomeScreenDisplayed() {
+          ApplicationManager.getApplication().invokeLater(() -> {
+            propertiesComponent.setValue(DISPLAYED_PROPERTY, "true");
+            showInitialConfigurationDialog();
+          });
+        }
+      });
     }
 
     Registry.get("ide.scratch.enabled").setValue(true);