桌面壁纸的颜色和渐变存储在哪里?

桌面壁纸的颜色和渐变存储在哪里?

我看到图片壁纸存储在中,/usr/share/backgrounds但是我想知道当我选择时文件存储在哪里System Settings > Appearance > Colors & Gradients

在哪里可以得到.jpg或者.png仅仅是颜色?

答案1

它们不以文件形式存储在任何地方。它们在dconf数据库中定义。具体来说,这些模式:

/org/gnome/desktop/background/color-shading-type

/org/gnome/desktop/background/secondary-color

/org/gnome/desktop/background/primary-color

如果您在终端中运行dconf watch /,然后更改为垂直渐变,然后更改其中一种颜色,您将看到哪些模式发生了变化:

$ dconf watch /
/org/gnome/desktop/background/color-shading-type
  'vertical'
/org/gnome/desktop/background/picture-options
  'none'
/org/gnome/desktop/background/picture-uri
  ''

/org/gtk/settings/color-chooser/selected-color
  (true, 0.54117647058823526, 0.88627450980392153, 0.20392156862745098, 1.0)

/org/gtk/settings/color-chooser/selected-color
  (true, 0.54117647058823526, 0.88627450980392153, 0.20392156862745098, 1.0)

/org/gtk/settings/color-chooser/selected-color
  (true, 0.44705882352941179, 0.62352941176470589, 0.81176470588235294, 1.0)

/org/gtk/settings/color-chooser/selected-color
  (true, 0.93333333333333335, 0.93333333333333335, 0.92549019607843142, 1.0)

/org/gnome/desktop/background/primary-color
  '#eeeeeeeeecec'

相关内容