Howto edit mateconf.xml via skript

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
bluefish

Howto edit mateconf.xml via skript

Post 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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
ZubenElgenubi

Re: Howto edit mateconf.xml via skript

Post 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).
bluefish

Re: Howto edit mateconf.xml via skript

Post 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?
Locked

Return to “Scripts & Bash”