<div dir="ltr">Hi Graeme,<br>Sorry for the great offtopic and not answering your question. :)<br><div><br></div><div>> But how are the distros able to ship defaults for the plugins?<br></div><div><br></div><div>In principle, if you don't allow multiple instances of the plugin, <span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>you could </span></span></span>use a custom channel like xfce4-clipman (<span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>xfce4-panel/plugins/clipman) </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>does, but if maintain multiple instances is a priority, I understand as you do that there is nothing to do it easy.. :S</div><div><br></div><div>Distribution maintainers can set the entire panel by default, including plugin settings, <span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>since they know exactly which channel <span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>corresponds to </span></span></span>each plugin (Maybe see xfce4-panel-profiles), but as you say, the configuration of multiple instances, t<span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>hey cannot set default options for new instances of a plugin.<br><br><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>The only thing I can think is maintain two channels, one for each instance of the plugin (xfce4-panel/plugins/plugin-#/*), and another as fallback (<span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>xfce4-panel/plugins/default/whisker/*). I think there are plugins that do fallbacks to rc files as you suggested.<br><br></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>Hope it helps,<br><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>Regards,<br></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><div><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>Matias<br></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie, 22 oct 2021 a las 9:49, Graeme Gott (<<a href="mailto:graeme@gottcode.org">graeme@gottcode.org</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Setting defaults/fallbacks in the plugin itself in combination with distros<br>
> being able to ship defaults so far covered all of my use cases.<br>
> <br>
> Happy to hear though if there are shortcomings!<br>
<br>
But how are the distros able to ship defaults for the plugins? That's <br>
where I'm getting lost. The way Xfconf handles setting system values <br>
works great for setting defaults for Thunar, Ristretto, etc, since they <br>
all have their own XML file to populate.<br>
<br>
All panel plugins share the same channel. They are all stored in the <br>
xfce4-panel.xml file together, and are only identified by plugin ID. It <br>
becomes part of their property names (since their real properties are <br>
things like "/plugins/plugin-1/favorites" and not just "/favorites"). <br>
But the plugin ID can be anything!<br>
<br>
For example, if the distro assumes Whisker Menu is plugin ID 1, then the <br>
defaults won't be loaded if the user adds a second Whisker Menu. They <br>
also won't be loaded if the user removes Whisker Menu, adds something <br>
else, and then changes their mind and adds Whisker Menu back. It won't <br>
have ID 1 anymore. The plugin will be looking at some other <br>
"/plugins/plugin-$ID/favorites" property instead.<br>
<br>
Is there some mechanism in the Xfconf defaults I'm missing? Some way the <br>
panel handles translating the defaults to some other property path to <br>
share among instances of the same plugin type?<br>
<br>
Cheers,<br>
Graeme<br>
_______________________________________________<br>
Xfce4-dev mailing list<br>
<a href="mailto:Xfce4-dev@xfce.org" target="_blank">Xfce4-dev@xfce.org</a><br>
<a href="https://mail.xfce.org/mailman/listinfo/xfce4-dev" rel="noreferrer" target="_blank">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a></blockquote></div>