You are not logged in.
Challenge is to add a plugins / launcher to the panel via command line.
By manual adding the keyboard-layout plugin while observing
the panel with xconf-query i got this output
********************
xfconf-query -c xfce4-panel -m -v
Start monitoring channel "xfce4-panel":
set: /plugins/plugin-24 (xkb)
(xfconf-query:6693): xfconf-common-WARNING **: 22:58:12.292: Unable to convert GValue to string
set: /panels/panel-1/plugin-ids ((null))
********************
**************
xfconf-query -c xfce4-panel -p /plugins/plugin-24
xkb
**************
Now after remove it manually i try to add it via command line:
*****************************
xfconf-query -c xfce4-panel --create -p /plugins/plugin-25 -s xkb -t string
xfconf-query -c xfce4-panel -p /plugins/plugin-25
xkb
****************************
But nothing happens, also after a logout/login the value is still there but the plugin does not appear in the channel.
WHat is missing here ?
Is there some more docu about configuring xfce4 via cli ?
Last edited by bschatz (2021-02-15 22:07:07)
Offline
There is also plugin-ids:
xfconf-query -c xfce4-panel -p /panels/panel-1/plugin-ids
...which lists the plugins in order of appearance. There is also the potential need for a ~/.config/xfce4/panel/* entry for some plugins (if they don't use xfconf). It will take some fancy script-foo to process the current list plugin-ids and insert the proper one in the proper place.
Note: xfce4-panel has a parameter that can be used to add a plugin (xfce4-panel -a) but that just adds it to the end.
Also, have a read through this thread which details out the xfconf-query command as well as a contribution from a member on using it to create a default panel layout.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.012 seconds, 17 queries executed - Memory usage: 523.2 KiB (Peak: 524.04 KiB) ]