Page 1 of 1

Howto edit mateconf.xml via skript

Posted: Wed Oct 03, 2012 5:08 am
by bluefish
Hi to everyone,
I wonder if it is possible to create a new section with keyboard shortcuts (like desktop,sound etc) from a python skript (or any skript).
Someone know how to do that ?
I would also like to understand how to use the schema mechanism mint is using for configuration from my own skripts or programs. Maybe anyone post a link? Or even give some hints?

thank you for reading and even more for answering.

Re: Howto edit mateconf.xml via skript

Posted: Sat Nov 24, 2012 9:25 pm
by ZubenElgenubi
You mean add some extra lines to any file? If so, you only need a command:

Code: Select all

sudo echo "line to add" >> /path/to/file
You can use the same command to add more lines. If you wish a python script, search a way to run commands from python (there is a way, I think).

Re: Howto edit mateconf.xml via skript

Posted: Sun Nov 25, 2012 1:03 pm
by bluefish
Hi thx for your answer, but I don't won't to know how I edit a file via commandline. I wan't to know how mateconf works. I see in /home/user/.mateconf a lot of %mateconf.xml . How is the syntax for those and by what are they read?