Reply
Thread Tools
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#1
Wondering if anyone knows anything about GConf keys on the N9.

Ive made a theme for the N9 and have spoken to the developer of Theme Changer app about how the app works. She told me it just sets a GConf key, which is "/meegotouch/theme/name". She has been very helpful and I dont want to pester her so I turn to the community for help.

I need to know how to set this key, Ive experimented but had no luck.

I want to have my theme auto set once installed, so users dont need to install Theme Changer also. The reason for this is Im aiming to put my theme in the Store, and Theme Changer isnt in the store.

Theme Changer is open source so the source is available in Github: https://github.com/matrixx/ThemeChanger
If someone can find any info. I have looked, but found nothing to help me.

Any help appreciated.
 
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#2
You can set the key from the postinst script using gconftool:

Code:
#!/bin/sh

/usr/bin/aegis-exec -s -u user /usr/bin/gconftool -s --type=string /meegotouch/theme/name <name>
exit 0
If you want users to be able to disable your theme without uninstalling it, then the best way is to use a control panel applet. All you need is a .desktop file (this provides the name that is visible in the settings) and an XML file that describes the GConf keys and the widgets used to change them. Documentation for that is at http://harmattan-dev.nokia.com/docs/...and_GConf.html
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub

Last edited by marxian; 2011-12-19 at 14:34. Reason: I should finish my coffee before posting :o
 

The Following 4 Users Say Thank You to marxian For This Useful Post:
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#3
Where would we be without you...
 

The Following User Says Thank You to F2thaK For This Useful Post:
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#4
just tested it by making a script.. it doesnt seem to work. Get syntax error: unexpected newline
 
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#5
Originally Posted by F2thaK View Post
just tested it by making a script.. it doesnt seem to work. Get syntax error: unexpected newline
Maybe you copy/pasted Marxian's example wrongly?
Note the following is one line, just cut in two by the forum settings:

/usr/bin/aegis-exec -s -u user /usr/bin/gconftool -s --type=string /meegotouch/theme/name <name>
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#6
Nah, been here long enough to know that.. Thanks though!



my script

(apply theme without rebooting)

I run it in terminal like"
sh /home/user/MyDocs/applytheme.sh
----------------------
#!/bin/sh

/usr/bin/aegis-exec -s -u user /usr/bin/gconftool -s --type=string /meegotouch/theme/name <name>
/sbin/initctl restart xsession/mthome
exit 0

Last edited by F2thaK; 2011-12-24 at 11:55.
 
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#7
The <name> should be replaced by the value that you wish to set for the key.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#8
Tried that... do you do it as root or not? I did try both.
 
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#9
Sorry if it was too obvious. One more of this type:
Is your script file in windows format or something?

Why don't you just attach the actual script?
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#10
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:27.