! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfconf-query doesn't support "array" types
Status:
RESOLVED: INVALID
Product:
Xfce4-settings
Component:
Settings Editor

Comments

Description Andrzej editbugs 2012-04-29 09:58:59 CEST
Can't set e.g. an "array of strings" property (there is a workaround "-a" option) for a single element arrays.

Marking this as a bug because there are several places such properties are used in Xfce so the default front-end should be able to handle them.
Comment 1 Nick Schermer editbugs 2012-04-29 12:17:55 CEST
I can be more friendly, but it supports arrays:

xfconf-query -c test -p /test2 -n -t int -t int -t string -t string -s 4 -s 5 -s 6 -s 8

It is probably a good idea to allow 1 type and multiple values too (which is not working atm). So you can do:

xfconf-query -c test -p /test2 -n -t int -s 4 -s 5 -s 6 -s 8
Comment 2 Andrzej editbugs 2012-04-29 14:43:16 CEST
OK, so this bug is technically invalid (xfconf-query does support array types).

I agree that specifying a single array type could be convenient but I could live without it (in this particular tool, functionality is more important than convenience).

We could consider this bug a documentation error. I've added a stub of the xfconf-query documentation at http://docs.xfce.org/xfce/xfconf/xfconf-query
which includes your example.
Comment 3 Nick Schermer editbugs 2012-05-02 08:47:58 CEST
Well it would be nice if the settings editor supports this. I was too lazy to add a treeview/model to handle this. I think we can limit there to adding/editing a single-type array.
Comment 4 simon 2019-09-03 11:53:25 CEST
Digging up old stuff here...

xfconf-query apparently cannot deal with float arrays:

$ xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitoreDP-1/workspace1/rgba1 -t float -t float -t float -t float -s 0.0 -s 0.0 -s 1.0 -s 1.0

Unable to convert "0.0" to type "gfloat".


Also the monitor-mode in verbose mode seems to be unable to show array values:

$ xfconf-query -m -c  xfce4-desktop -v
Start monitoring channel "xfce4-desktop":

(xfconf-query:22345): xfconf-common-WARNING **: 11:49:58.092: Unable to convert GValue to string
set: /backdrop/screen0/monitoreDP-1/workspace1/rgba1 ((null))
Comment 5 Simon Steinbeiss editbugs 2020-05-28 00:20:18 CEST
Use "double" instead of "float" and it'll work just fine.

Bug #8793

Reported by:
Andrzej
Reported on: 2012-04-29
Last modified on: 2020-05-28

People

Assignee:
Xfce Bug Triage
CC List:
3 users

Version

Version:
4.10.0

Attachments

Additional information