From 6c8344910c79573fd24c58c8d288b63ce0a33d87 Mon Sep 17 00:00:00 2001
From: Martyn Welch <martyn.welch@collabora.com>
Date: Tue, 26 Mar 2019 18:21:12 +0000
Subject: [PATCH] Add a default XFCE4 panel configuration

We currently don't provide a default panel configuration. As a result the
user is getting multiple errors at boot, reading "No running instance of
xfce4-panel was found". Depending on the how the user navigates these
messages, the user may find themselves presented with the message
"Modifying the panel is not allowed" on every subsequent boot.

Provide default panel configuration to improve the user experience and to
avoid them being presented with errors.

Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
---
 .../xfce-perchannel-xml/xfce4-panel.xml       | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 overlays/sdk-xfce-theme/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml

diff --git a/overlays/sdk-xfce-theme/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml b/overlays/sdk-xfce-theme/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
new file mode 100644
index 00000000..0f908068
--- /dev/null
+++ b/overlays/sdk-xfce-theme/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<channel name="xfce4-panel" version="1.0">
+  <property name="configver" type="int" value="2"/>
+  <property name="panels" type="array">
+    <value type="int" value="1"/>
+    <property name="panel-1" type="empty">
+      <property name="position" type="string" value="p=6;x=0;y=0"/>
+      <property name="length" type="uint" value="100"/>
+      <property name="position-locked" type="bool" value="true"/>
+      <property name="size" type="uint" value="30"/>
+      <property name="plugin-ids" type="array">
+        <value type="int" value="1"/>
+        <value type="int" value="3"/>
+        <value type="int" value="15"/>
+        <value type="int" value="4"/>
+        <value type="int" value="5"/>
+        <value type="int" value="6"/>
+      </property>
+    </property>
+  </property>
+  <property name="plugins" type="empty">
+    <property name="plugin-1" type="string" value="applicationsmenu"/>
+    <property name="plugin-3" type="string" value="tasklist">
+      <property name="show-handle" type="bool" value="false"/>
+    </property>
+    <property name="plugin-15" type="string" value="separator">
+      <property name="expand" type="bool" value="true"/>
+      <property name="style" type="uint" value="0"/>
+    </property>
+    <property name="plugin-4" type="string" value="pager"/>
+    <property name="plugin-5" type="string" value="clock"/>
+    <property name="plugin-6" type="string" value="systray">
+      <property name="show-frame" type="bool" value="false"/>
+    </property>
+  </property>
+</channel>
-- 
GitLab