Howto edit mateconf.xml via skript

Forum rules
Before you post please read how to get help

Howto edit mateconf.xml via skript

Postby bluefish on Wed Oct 03, 2012 5:08 am

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.
bluefish
Level 1
Level 1
 
Posts: 9
Joined: Sat Sep 22, 2012 6:29 am
Location: Berlin,Germany

Linux Mint is funded by ads and donations.
 

Re: Howto edit mateconf.xml via skript

Postby ZubenElgenubi on Sat Nov 24, 2012 9:25 pm

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).
User avatar
ZubenElgenubi
Level 2
Level 2
 
Posts: 68
Joined: Wed Jul 11, 2012 9:39 pm
Location: Mx

Re: Howto edit mateconf.xml via skript

Postby bluefish on Sun Nov 25, 2012 1:03 pm

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?
bluefish
Level 1
Level 1
 
Posts: 9
Joined: Sat Sep 22, 2012 6:29 am
Location: Berlin,Germany


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 4 guests