我知道如何通过 GUI(系统设置 > 安全和隐私)更改隐私设置,但我希望能够从命令行执行此操作。
我运行了命令:
dconf watch /
Run Code Online (Sandbox Code Playgroud)
以查看进行了哪些更改。关于命令(来自man dconf):
watch
Watch a key or directory for changes.
Run Code Online (Sandbox Code Playgroud)
随后,我通过 GUI 更改了设置以查看命令输出中发生的情况。这显示了:
/org/gnome/desktop/privacy/remember-recent-files false
/com/canonical/unity/lenses/remote-content-search 'none'
/org/gnome/desktop/screensaver/ubuntu-lock-on-suspend false
/org/gnome/desktop/screensaver/lock-enabled false
Run Code Online (Sandbox Code Playgroud)
我的问题是:如何使用此信息从命令行更改设置?