CODE
system("qcop QPE/Application/HancomMobileWord 'setDocument(QString)' '/path/to/myDocument.doc'")
The Ruby system() method that wraps the qcop call simply launches a sub-shell that loads up Hancom Word set to a particular document. The problem is when I close Hancom Word the QPEApplication object disappears. When I check the active processes I see that my Ruby script is running but I can't seem to recover the GUI app I created. If I try to issue something like:
CODE
qcop QPE/Application/myGUIApp 'setDocument()'
there is a brand new instance of the GUI app I have. The original one still doesn't appear. Or if I try:
CODE
qcop QPE/Application/myGUIApp 'raise()'
nothing happens.
Since my Ruby script doesn't have anything displayed on the task bar I can't figure out a way to bring it back after exiting Hancom Word. Any suggestions?