[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Can't get kconf_update to work
From:       Dmitry Suzdalev <dimsuzkde () gmail ! com>
Date:       2008-11-19 21:50:37
Message-ID: 200811200050.37505.dimsuz () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi!

New in kconf_update land I can't see what i do wrong.

Task I want to accomplish is simple:
I want to write an .upd file which will allow to convert config key names with 
spaces to key names w/o spaces. Keys are in group with name "General".

So I write the following file:

[File myprog.upd]

Id=NoSpacesInKeyNames
File=myprogrc
Group=General
Key=My key number one with spaces,MyKeyNumberOneWithSpaces
Key=My key number two with spaces,MyKeyNumberTwoWithSpaces

In CMakeLists.txt i add the following line:
install( FILES myprog.upd DESTINATION  ${KCONF_UPDATE_INSTALL_DIR} )

Tutorial on a techbase says this should be enough: after kded notices update 
to this dir, it will run my update script. Or it will run it on next kde 
start.
Well none of that happens :)

Even if I issue the command:

$ kconf_update ./myprog.upd

the file $HOME/.kde4/share/config/myprogrc is still looking unupgraded.
it's $Version config header doesn't contain identifier of this upgrade.

What do I do wrong?

Thanks in advance,
Dmitry.

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" \
content="1" /><style type="text/css">p, li { white-space: pre-wrap; \
}</style></head><body style=" font-family:'Bitstream Vera Sans'; font-size:10pt; \
font-weight:400; font-style:normal;">Hi!<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>New in kconf_update \
land I can't see what i do wrong.<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Task I want to \
accomplish is simple:<br> I want to write an .upd file which will allow to convert \
config key names with spaces to key names w/o spaces. Keys are in group with name \
"General".<br> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>So I write the following file:<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>[File myprog.upd]<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>Id=NoSpacesInKeyNames<br> File=myprogrc<br>
Group=General<br>
Key=My key number one with spaces,MyKeyNumberOneWithSpaces<br>
Key=My key number two with spaces,MyKeyNumberTwoWithSpaces<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>In CMakeLists.txt i add the following line:<br> install( \
FILES myprog.upd DESTINATION  ${KCONF_UPDATE_INSTALL_DIR} )<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>Tutorial on a techbase says this should be enough: after \
kded notices update to this dir, it will run my update script. Or it will run it on \
next kde start.<br> Well none of that happens :)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>Even if I issue the command:<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>$ \
kconf_update ./myprog.upd<br> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br></p>the file \
$HOME/.kde4/share/config/myprogrc is still looking unupgraded.<br> it's $Version \
config header doesn't contain identifier of this upgrade.<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>What do I do wrong?<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>Thanks in advance,<br> Dmitry.</p></body></html>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic