You are not logged in.

astroboy2

Beginner

  • "astroboy2" started this thread

Posts: 8

Location: Québec (Canada)

Occupation: Computer Technician

  • Send private message

1

Thursday, February 16th 2006, 2:34pm

Tools to modify a configuration file

Hy everybody !

Do any body know a tool to modify a KDE configuration file ?

For example, I want to modify the kdeglobals file to personalise by adding or deleting a entries in the [KFileDialog Speedfbar] group.

Maybe I could do something cat | grep | cat > file.tmp .....| ..... | ...
But I'm pretty sure there's a better way to do that...

Tank you !

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

2

Friday, February 17th 2006, 8:42am

RE: Tools to modify a configuration file

I think you're looking for this:

http://extragear.kde.org/apps/kconfigeditor/

However, this tool is not under development at the moment, so it might not work. You should give it a try.
Bram Schoenmakers
KDE Netherlands (www.kde.nl)

astroboy2

Beginner

  • "astroboy2" started this thread

Posts: 8

Location: Québec (Canada)

Occupation: Computer Technician

  • Send private message

3

Friday, February 17th 2006, 1:06pm

RE: Tools to modify a configuration file

Yes I saw this software and I tried it but it doesn't work. I don't want something graphic like Kiosk or kconfigeditor...

I want something can work from a script. For example, be able to delete a group in a file like kdeglobals...

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

4

Saturday, February 18th 2006, 11:21am

RE: Tools to modify a configuration file

AFAIK, there's no specific tool for that. Or you write your own Bash script, or you use vi/nano/joe/whatever. ;)
Bram Schoenmakers
KDE Netherlands (www.kde.nl)

astroboy2

Beginner

  • "astroboy2" started this thread

Posts: 8

Location: Québec (Canada)

Occupation: Computer Technician

  • Send private message

5

Saturday, February 18th 2006, 4:03pm

RE: Tools to modify a configuration file

You must be right... I think I will use thing like awk....

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

6

Monday, March 6th 2006, 10:57pm

kwriteconfig and kreadconfig for writing or reading. No deleting though

Cheers,
_
Qt/KDE Developer
Debian User

This post has been edited 1 times, last edit by "anda_skoa" (Mar 6th 2006, 10:57pm)