if the current Emacs session didn't load any desktop yet.
@vindex desktop-restore-frames
- By default, the desktop tries to save and restore the frame and
-window configuration. To disable this, set
-@code{desktop-restore-frames} to @code{nil}. (See that variable's
-documentation for some related options that you can customize to
-fine-tune this behavior.)
+ By default, the desktop tries to save and restore the frame and window
+configuration.@footnote{Except on Android, where this option defaults to
+@code{nil} because the window manager (@pxref{Android Windowing}) is too
+prohibitive to admit of restoring frame configurations.} To disable or
+enable this, set @code{desktop-restore-frames} to @code{nil} or any
+non-@code{nil} value respectively. (See that variable's documentation
+for some related options that you can customize to fine-tune this
+behavior.)
@vindex frameset-filter-alist
When the desktop restores the frame and window configuration, it
:type '(repeat symbol)
:group 'desktop)
-(defcustom desktop-restore-frames t
+(defcustom desktop-restore-frames (not (featurep 'android))
"When non-nil, save and restore the frame and window configuration.
See related options `desktop-restore-reuses-frames',
-`desktop-restore-in-current-display', and `desktop-restore-forces-onscreen'."
+`desktop-restore-in-current-display', and `desktop-restore-forces-onscreen'.
+
+This option is enabled by default elsewhere than on Android, where it is
+disabled by default as programs are too handicapped by the window
+manager for frames to be restored."
:type 'boolean
:group 'desktop
- :version "24.4")
+ :version "31.1")
(defcustom desktop-restore-in-current-display t
"Controls how restoring of frames treats displays.