To save the current session as the default session for a user, perform one of the following steps:
Use the gnome-session-save command.
$ gnome-session-save
In the Preferences menu, choose Startup Applications. Select the Remember Currently Running Applications option in the Options tab.
A .desktop file in the ~/.config/gnome-session/saved-session directory for each currently running application is created.