desktop-not-loaded-hook is a variable defined in `desktop.el'.
Its value is

  • This variable may be risky if used as a file-local variable.

Normal hook run when the user declines to re-use a desktop file.
Run in the directory in which the desktop file was found.
May be used to deal with accidental multiple Emacs jobs.

You can customize this variable.

This variable was introduced, or its default value was changed, in version 22.2 of Emacs.