OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Qt/Qtopia => Topic started by: joebeaudoin on February 16, 2004, 02:35:25 am

Title: QCOP Command to Refresh Launcher Desktop
Post by: joebeaudoin on February 16, 2004, 02:35:25 am
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! :-)
Title: QCOP Command to Refresh Launcher Desktop
Post by: doseas on February 16, 2004, 05:38:28 pm
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.
Title: QCOP Command to Refresh Launcher Desktop
Post by: doseas on February 16, 2004, 07:23:10 pm
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 (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 (http://www.malor.net/Qt/qtopia-free-1.5.0/en/qtopia/qcop.html)

I wonder if /opt/QtPalmtop/bin/qcop QPE/System \"applyStyle()\" will update the wallpaper??
Title: QCOP Command to Refresh Launcher Desktop
Post by: joebeaudoin on February 17, 2004, 07:28:30 am
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()?
Title: QCOP Command to Refresh Launcher Desktop
Post by: doseas on February 17, 2004, 04:15:51 pm
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.
Title: QCOP Command to Refresh Launcher Desktop
Post by: joebeaudoin on February 17, 2004, 09:03:37 pm
I tried changing the Launcher.conf file via a file editor, saved it, then typed the following in the Qterminal:

Code: [Select]
qcop QPE/System "applyStyle()"

I\'ve also tried:

Code: [Select]
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?
Title: QCOP Command to Refresh Launcher Desktop
Post by: bam on August 11, 2005, 03:29:25 pm
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..."