从终端更改桌面背景

use*_*587 8 command-line background

我需要在 Ubuntu 12. 04 中使用终端中的命令更改我的桌面背景,以便使用 bash 制作脚本。有谁知道怎么做?

dob*_*bey 18

在终端中运行以下命令

gsettings set org.gnome.desktop.background picture-uri file:///path/to/your/image.png
Run Code Online (Sandbox Code Playgroud)

这会将桌面背景更改为 image.png。