Author Topic: QCOP Command to Refresh Launcher Desktop  (Read 7533 times)

joebeaudoin

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://www.joebeaudoin.net
QCOP Command to Refresh Launcher Desktop
« 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! :-)
- Joe

Handheld: SL-5600 (PXA-255), OZ 3.3.5 build 3 (Unstable), 512 MB SanDisk CF, 512 MB SanDisk SD

\"But while there are so many things that *are*, there are so many more things that *aren\'t*, and if I tried to deny all the things that *aren\'t* then I\'d hardly have any time at all for anything that *is*, would I?\" - JMS

doseas

  • Full Member
  • ***
  • Posts: 207
    • View Profile
    • http://
QCOP Command to Refresh Launcher Desktop
« Reply #1 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.

doseas

  • Full Member
  • ***
  • Posts: 207
    • View Profile
    • http://
QCOP Command to Refresh Launcher Desktop
« Reply #2 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

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

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://www.joebeaudoin.net
QCOP Command to Refresh Launcher Desktop
« Reply #3 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()?
- Joe

Handheld: SL-5600 (PXA-255), OZ 3.3.5 build 3 (Unstable), 512 MB SanDisk CF, 512 MB SanDisk SD

\"But while there are so many things that *are*, there are so many more things that *aren\'t*, and if I tried to deny all the things that *aren\'t* then I\'d hardly have any time at all for anything that *is*, would I?\" - JMS

doseas

  • Full Member
  • ***
  • Posts: 207
    • View Profile
    • http://
QCOP Command to Refresh Launcher Desktop
« Reply #4 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.

joebeaudoin

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://www.joebeaudoin.net
QCOP Command to Refresh Launcher Desktop
« Reply #5 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?
- Joe

Handheld: SL-5600 (PXA-255), OZ 3.3.5 build 3 (Unstable), 512 MB SanDisk CF, 512 MB SanDisk SD

\"But while there are so many things that *are*, there are so many more things that *aren\'t*, and if I tried to deny all the things that *aren\'t* then I\'d hardly have any time at all for anything that *is*, would I?\" - JMS

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
QCOP Command to Refresh Launcher Desktop
« Reply #6 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..."
« Last Edit: August 11, 2005, 03:32:52 pm by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder