Help - Search - Members - Calendar
Full Version: QCOP Command to Refresh Launcher Desktop
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Qt/Qtopia
joebeaudoin
I'm presently developing what should be a simple bash script that creates random wallpapers for the QTopia desktop. Instead of issuing commands to restart the desktop via qcop (or killing and starting the launcher via command line), I would like to simply refresh the background so that it reflects the newest wallpaper...

Could anyone here help me in determining the proper qcop commands (or point me in the direction of fully documented signals for the QTopia desktop) to achieve this desired effect?

Thank you! :-)
doseas
I have scrawled in some notes:

Restart:
/opt/QtPalmtop/bin/qcop QPE/System "restart()"

Refresh:
/opt/QtPalmtop/bin/qcop QPE/System "linkChanged(QString)"

I know that the refresh command will re-read the .desktop files & display changes to tabs; not sure about wallpaper changes.

I'll have to dig deeper to find the original source for the above info.
doseas
QUOTE
I'll have to dig deeper to find the original source for the above info.


OK, found it...

The current Qtopia doc is here:
http://doc.trolltech.com/qtopia1.7/html/qcop.html

An archive of the 1.5 doc can be found here:
http://www.malor.net/Qt/qtopia-free-1.5.0/...topia/qcop.html

I wonder if /opt/QtPalmtop/bin/qcop QPE/System "applyStyle()" will update the wallpaper??
joebeaudoin
QUOTE
I wonder if /opt/QtPalmtop/bin/qcop QPE/System "applyStyle()" will update the wallpaper??


I'm wondering that too... I'll try it out.

However, does it mean that the actual config has to change before it executes the applyStyle()?
doseas
QUOTE
However, does it mean that the actual config has to change before it executes the applyStyle()?


I believe it does: change the config, then execute applyStyle() in order for Qtopia to recognize it.
joebeaudoin
I tried changing the Launcher.conf file via a file editor, saved it, then typed the following in the Qterminal:

CODE
qcop QPE/System "applyStyle()"


I've also tried:

CODE
qcop QPE/Application/launcher "applyStyle()"

qcop QPE/TaskBar "applyStyle()"

qcop QPE/Launcher "applyStyle()" -- is the QPE/Launcher even valid?!?

qcop QPE/Desktop "applyStyle()" -- again, is this valid?


... and variants thereof with no effect.

Are there any other qcop commands out there that are undocumented? Or that someone might have stumbled across?
bam
anyone figured this one out yet?

I have found appForeground("launcher") occurs when a wallpaper change is made via "tap+hold" and select "set as..."
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.