如何保存gnome的linux的 会话?相当于windows下的休眠?

在关机前, 你进行的所有操作, 的集合, 就叫做你跟 linux系统 机器间的 一次 会话, 一个session.

linux 可以 在关机时保存 这些session, 保存这些打开的窗口 和程序. 在下一次开机时, 可以恢复这些 窗口和程序.

不过好像只能恢复第一个 workspace中的 内容 因此, 如果你想 下次开机时, 还是有这些内容, 可以把他们都放在第一个workspace中,

使用 dconf-editor 可是化界面设置, 或者使用 命令:

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

gsettings : gnome settings, ~~== 'dconf-editor' dconf: desktop environment configer.
One is cli while the other is gui program.

It has some commonly used sub-commands such as 'set, reset, get, list-keys, list-schemas'.
The syntax for 'get' subcommand looks like:
gsettings get SCHEMA KEY
gsettings get org.gnome.SessionManager auto-save-session
How to make gnome save your session automatically when shutting down the computer?
Run this command: gsettings set org.gnome.SessionManager auto-save-session true
Note that the name of the schema to be set in the command is 'SessionManager' but not 'gnome-session' as some blogs on cnblogs said.

posted @ 2016-12-15 21:22  noitanym  阅读(747)  评论(0编辑  收藏  举报