View Single Post
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#59
Originally Posted by torshind View Post
Great app! Thank you!
A marginal problem: I have all files correctly installed but I don't have a "Sticky Notes" item on my Add Widget menu. What am I missing? Maybe your app needs qt4-homescreen-loader? Keep-up the good work!!!
You're not missing anything. This is related to what I wrote into the post above yours.

One of the files required for the app to function correctly was somehow missing from the installation, and it just escaped from me: since I placed that file manually there in an early stage of development, I didn't notice that it doesn't get installed, only when I deleted all the stuff and looked closer again.

(The qt widget loader is not required at all. I use a custom approach that lets me create multiple instances of the same widget.)

Basically, this is the trick:

(Long explanation for other developers)

The sticky-notes process should run continuously in the background. (Launched at system start.)

Then, when you either use the "add widget" stuff or the app menu icon, a new process starts that tells the already running process to display a new widget, and then shuts itself down. (Achieved by QtSingleApplication.) This ensures the consistent behaviour of the app.

The Add widget menu requires an additional .desktop file to be installed. When hildon-home detects a new file in its directory, it automatically runs the executable associated with it - this is the reason why every widget appears on installation.

In our case, hildon-home starts a process which *should* call the already running one and return. But since the background process is not running (because of the installation issue), the process created by hildon-home becomes the *only* sticky-notes process running in the background. Because it doesn't return, sticky notes is removed from the add widgets menu (since hildon-home works that way).


Mistery solved - all I need now is some time to implement the features and then make a release.
Possibly a smaller release will come in the weekend and a better one in the next week.

Last edited by Venemo; 2010-06-30 at 21:10.
 

The Following 4 Users Say Thank You to Venemo For This Useful Post: