maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Changing lockscreen wallpaper from outside, How? [for a small app] (https://talk.maemo.org/showthread.php?t=81555)

Aranel 2012-01-12 20:52

Changing lockscreen wallpaper from outside, How? [for a small app]
 
Hi,

I want to create a very small app/shell script to automatically pick a random wallpaper from a given folder and set it as lockscreen wallpaper every X minutes. (Yes I know it may consume battery a bit) It has to be transparent, so when user double-taps on screen he'll see a different wallpaper if the timer reached X.

Problem is, I don't know how to change lockscreen wallpaper from outside? Is there an API call or one-liner code to change wallpaper, where should I take a look at? It'd be great if someone supplied with me the exact call/code :)

kiiwii 2012-01-13 05:00

Re: Changing lockscreen wallpaper from outside, How? [for a small app]
 
gconftool --type string -s /desktop/meego/background/portrait/picture_filename /path/to/imagefile.png

should be 854x480 pixel

caco3 2012-01-13 14:48

Re: Changing lockscreen wallpaper from outside, How? [for a small app]
 
See my rotate lock screen wallpaper fix at http://www.ruinelli.ch/harmattan/rotate-lock-screen
You will have to put (replace) the file at /home/user/.wallpapers/wallpaper.png
AFAIK it only gets updated once you rotate the screen!


All times are GMT. The time now is 10:41.

vBulletin® Version 3.8.8