The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 1,036β€…    Votes:  2β€…
Tags: shutdown   session  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1021436
Title: Is there a setting in the startup applications menu item to remember all apps when shutting down?
ID: /2018/04/02/Is-there-a-setting-in-the-startup-applications-menu-item-to-remember-all-apps-when-shutting-down_
Created: April 2, 2018    Edited:  April 2, 2018
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Short Answer

If you want to save sessions across reboots you’ll have to switch from Lubuntu (LXDE Desktop) to Kubuntu (KDE desktop) or Xubuntu (XFCE desktop).

It won’t work on Ubuntu (Unity Desktop).


Long Answer

Using this tool I recently wrote: Bash one-liner to display ALL gsettings in Zenity or Yad. I sorted on Key and scrolled to the A section to find:

auto save session.png

Note: Many people will prefer to install dconf-editor to navigate to the gsettings and set the values.

To manually find the states use:

$ gsettings get org.gnome.SessionManager auto-save-session
false
$ gsettings get org.gnome.SessionManager auto-save-session-one-shot
false

To save the session for across reboots use:

gsettings set org.gnome.SessionManager auto-save-session true

Then reboot.

Note: This doesn’t work in Ubuntu 16.04 but does in Kubuntu.

Someone recommended here to use Compiz Session Management:

Compiz session management.png

but it doesn’t appear to work in Ubuntu 16.04 either.

⇧ Can I check if the terminal was started by Visual Studio Code? uninstalled nvidia drivers still showing in "additional drivers" tab  β‡©