Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-06-03 00:06:34

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

[SOLVED] where is this setting saved?

when i go to Desktop>>Background>>Vertical Gradient, i can set 2 custom colors, one for the top, one for the bottom, and get the gradient between them as my background.  i'd like to know where this is saved.  i tried to see what file changed when i changed the colors but no file was updated.  i guess it got queued or buffered.  the reason i want to know this is to collect a set of files that i can distribute to multiple users to configure them exactly alike.

Last edited by KBar (2022-07-08 17:00:54)

Offline

#2 2022-06-03 00:34:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] where is this setting saved?

Its saved in xfconf in memory and eventually written to disk at ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml.

You can query it via xfconf-query (assuming only one entry):

xfconf-query -c xfce4-desktop -p $( xfconf-query -c xfce4-desktop -lv | grep rgba1 | awk '{print $1}')
xfconf-query -c xfce4-desktop -p $( xfconf-query -c xfce4-desktop -lv | grep rgba2 | awk '{print $1}')

It's stored as an array of 4 values (RGBA).


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

#3 2022-06-04 03:01:04

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: [SOLVED] where is this setting saved?

what want to do is create a user specifically change and keep template settings.  when i create a new user, i will just copy in these files and change owner/group to the new user.  then that user starts out with the template settings.  once set up i see no reason to use any other tools besides some form of file copy.

Offline

#4 2022-06-04 04:56:50

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: [SOLVED] where is this setting saved?

Skaperen wrote:

what want to do is create a user specifically change and keep template settings.  when i create a new user, i will just copy in these files and change owner/group to the new user.  then that user starts out with the template settings.  once set up i see no reason to use any other tools besides some form of file copy.

Edit the skel file located in one of the XDG_CONFIG_DIRS subdirectories. On Xubuntu, it's /etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml. Default resource location is /etc/xdg/xfce4/xfconf/xfce-perchannel-xml. If the XML file doesn't exist, simply create it. That should work.

Last edited by KBar (2022-06-04 04:57:13)


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#5 2022-06-04 22:33:08

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: [SOLVED] where is this setting saved?

KBar wrote:

Edit the skel file located in one of the XDG_CONFIG_DIRS subdirectories. On Xubuntu, it's /etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml. Default resource location is /etc/xdg/xfce4/xfconf/xfce-perchannel-xml. If the XML file doesn't exist, simply create it. That should work.

that's even better.  thanks!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 535.12 KiB (Peak: 535.96 KiB) ]