Debian系OSのデフォルト壁紙問題の解決方法 (MX Linuxチームリーダー直伝)

<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-desktop" version="1.0">
  <property name="backdrop" type="empty">
    <property name="screen0" type="empty">
      <property name="monitor0" type="empty">
        <property name="image-path" type="string" value="/usr/share/backgrounds/default23.png"/>
        <property name="image-style" type="int" value="3"/>
        <property name="image-show" type="bool" value="true"/>
      </property>
      <property name="monitor1" type="empty">
        <property name="image-path" type="string" value="/usr/share/backgrounds/default23.png"/>
        <property name="image-style" type="int" value="3"/>
        <property name="image-show" type="bool" value="true"/>
      </property>
      <property name="monitor2" type="empty">
        <property name="image-path" type="string" value="/usr/share/backgrounds/default23.png"/>
        <property name="image-style" type="int" value="3"/>
        <property name="image-show" type="bool" value="true"/>
      </property>
      <property name="monitor3" type="empty">
        <property name="image-path" type="string" value="/usr/share/backgrounds/default23.png"/>
        <property name="image-style" type="int" value="3"/>
        <property name="image-show" type="bool" value="true"/>
      </property>
    </property>
  </property>
  <property name="desktop-icons" type="empty">
    <property name="icon-size" type="uint" value="32"/>
    <property name="file-icons" type="empty">
      <property name="show-home" type="bool" value="false"/>
      <property name="show-filesystem" type="bool" value="false"/>
      <property name="show-trash" type="bool" value="false"/>
      <property name="show-removable" type="bool" value="false"/>
    </property>
    <property name="single-click" type="bool" value="true"/>
  </property>
</channel>

これをxfce4-desktop.xmlという名前をつけて .config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml に保存するだけ。
usr/share/background内のdefault23.pngという名前の壁紙が設定されるようになる。default23.pngという名前はもちろん書き換え可能です。

最終的には、/etc/skel 内の.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml がこの内容になってなければいけません。ライブUSBから起動する際は、/etc/skelを参照しているからです。さらに、/etc/xdg/xfce4/xfconf/xfce-perchannel-xml にも入れておくとさらに成功確率が高いはずです。

[追記] まれに /root/.config/xfce4/xfconf/xfce-perchannel-xml/ を参照することもあるようなので、ここに置くのも忘れずに。。

さらに忘れがちですが、「壁紙を全ワークスペースに適用する」にチェックが入っていることも確認しましょう。僕もこれで失敗しました。

本当に多くのディストリ/カスタムフレーバー作者がこの壁紙問題で困っているのを見てきました。これでバッチリ解決するはずです。

いいなと思ったら応援しよう!