i want to design a app that image viewer, it can be able to set the viewing image to specified homescreen wallpaper, how to do that?
the platform is maemo 5(N900) and i will use QT to develop it.
i want to design a app that image viewer, it can be able to set the viewing image to specified homescreen wallpaper, how to do that?
the platform is maemo 5(N900) and i will use QT to develop it.
You should save images' uris to the following GConf keys:
/apps/osso/hildon-desktop/views/N/bg-image
where N is a number of the desktop from 1 to 4 by default.
Current active desktop number is saved in this GConf key:
/apps/osso/hildon-desktop/views/current
and list of active desktops (as hardcoding 1-4 is not probably a good idea)
/apps/osso/hildon-desktop/views/active
Useful link:
http://linux.die.net/man/1/gconftool-2
GConf keys have nothing to do with filesystem
Code:$run-standalone.sh gconftool-2 -R /apps/osso/hildon-desktop/views current = 3 active = [1,2,3,4]
You can use libgconf2-6 to access and alter GConf keys. Here is a documentation:
http://library.gnome.org/devel/gconf/stable/
There are some small example applications showing how to access GConf keys
http://people.gnome.org/~newren/tuto.../html/apd.html
Last edited by divanov; 2010-03-30 at 09:35.
Cannot agree with you
http://wiki.forum.nokia.com/index.ph...per_in_Maemo_5
[QUOTE=divanov;720547]Cannot agree with you
http://wiki.forum.nokia.com/index.ph...per_in_Maemo_5[/QUOTE
divanov, if you are in China ,i will treat you for dinner!!
so nice man!
You are welcome. I'm not really located in China.
hi divanov, i have some problem with the setWallpaper() function, what is the parameter of that function. the first one is my wallpaper path what i want, the second one is return ID in the getXIntProperty() function. but it doesn't work, the problem is the return value of gconf_client_set_string(), maybe the parameter is wrong when call that.