Variable: desktop-restore-frames

desktop-restore-frames is a customizable variable defined in desktop.el.gz.

Value

t

Documentation

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.

This option is enabled by default, except on Android. It is disabled by default on Android because the window manager there prevents programs from restoring frames.

This variable was added, or its default value changed, in Emacs 31.1.

View in manual

Probably introduced at or before Emacs version 24.4.

Source Code

;; Defined in /usr/src/emacs/lisp/desktop.el.gz
(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'.

This option is enabled by default, except on Android.  It is disabled by
default on Android because the window manager there prevents programs from
restoring frames."
  :type 'boolean
  :version "31.1")