Fedora-壁纸的设置

今天下了个壁纸图包,就顺便鼓捣了一下桌面壁纸的配置。

系统:Fedora20

桌面环境:gnome

首先,找到壁纸在哪里。一般情况下,在这个路径:/usr/share/backgrounds/gnome/...

将你的壁纸放入里面,但是先别着急去改背景桌面,因为现在gnome还没识别你的桌面背景图片,gnome的桌面图片其实是需要在xml配置文件里面配置一下的,具体如下:

首先打开/usr/share/gnome-background-properties/

找到gnome-backgrounds.xml文件,我们来看看文件结构

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
 <wallpapers>

<wallpaper deleted="false">

               <name>Kronach leuchtet 2014 by Brian Fox</name>
                 <name xml:lang="zh_CN">Kronach leuchtet 2014 by Brian Fox</name>
                 <name xml:lang="en_GB">Kronach leuchtet 2014 by Brian Fox</name>
                 <filename>/usr/share/backgrounds/gnome/Kronach leuchtet 2014 by Brian Fox.jpg</filename>
                 <options>zoom</options>
     <pcolor>#ffffff</pcolor>
     <scolor>#000000</scolor>
         </wallpaper>
       <wallpaper deleted="false">

                 <name>Horses on sand dunes by Matthias Siewert</name>
                 <name xml:lang="zh_CN">Horses on sand dunes by Matthias Siewert</name>
                 <name xml:lang="en_GB">Horses on sand dunes by Matthias Siewert</name>
                 <filename>/usr/share/backgrounds/gnome/Horses on sand dunes by Matthias Siewert.jpg</filename>
                 <options>zoom</options>
     <pcolor>#ffffff</pcolor>
     <scolor>#000000</scolor>
         </wallpaper>
 </wallpapers>

粗体红字标注的就是一个壁纸属性,我们只需要添加红字部分,其他壁纸名字,地址(绝对路径)自己更改,改完就会发现壁纸已经出现在gnome更换壁纸的选择框里了。

原文地址:https://www.cnblogs.com/Rapheal/p/4148183.html