View Single Post
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#9
Originally Posted by benny1967 View Post
must be. my signature contains 3 lines, and it's displayed as 3 lines when i read it with gconftool-2
Yeah I know that Problem is how to use that pos gconftool-2 to set it?

I tried:

Code:
gconftool-2 --type=string --set /apps/modest/accounts/account_name/signature "name\ncompany\nwebsite"
This just appears in modest literally (with the \n not converted to newlines)

Also:

Code:
gconftool-2 --type=string --set /apps/modest/accounts/account_name/signature `echo -e "name\ncompany\nwebsite\n"`

Error setting value: Bad key or directory name: "company": Must begin with a slash (/)


Also if I use modest to edit the signature then do:

Code:
gconftool-2 --get /apps/modest/accounts/account_name/signature > sig.txt
and look at it in using "hexdump -c":

Code:
0000000   n   a   m   e  \n   c   o   m   p   a   n   y  \n   w   e   b
0000010   s   i   t   e  \n
Assuming that gconftool-2 --get gives a verbatim output then it appears that the signature is being stored as expected with no extraneous control codes or other junk.

I've been googling around on how to set multiline values, and values with control codes using gconftool-2 but most of the "relevant" hits were just a rehash of the manpage which itself is short of examples.

Allow me to quote a comment from one of the websites that I found:
God bless gconf creators…

They had to feel really down to give the birth to such useless and obscure crap like gconf.
They said it was created to help administrators…I wonder if they asked firstly to some administrators if they would prefer plain clean text files instead of such rubbish.
That sums it up pretty neatly I think.

Last edited by kureyon; 2010-11-04 at 09:47.
 

The Following User Says Thank You to kureyon For This Useful Post: