Re: [SailfishDevel] Harbour: Allow more libraries to link against

2014-01-02 Thread Ville Ranki
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2013-12-27 22:16, Alejandro Exojo wrote:
 In the meantime, correct me if I'm wrong, but I understood that one
 can ship libraries in the package, as long as you care about
 setting RPATH (and other packaging issues) yourself.

Can you recommend a tutorial or example on how to do this properly on
Sailfish?

Another Harbour question: My app is reported to cause too many
wakeups per second. The app is completely asynchronous and nothing
should be happening when it is idle. How can i debug issues like this?
What tool can i use to measure wakeups?


- -- 
Ville Ranki ville.ra...@iki.fi
http://www.iki.fi/~cos
PGP public key: http://www.iki.fi/~cos/vranki_pub.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlLFMSwACgkQVm11nqR7UVwGowCcDq/6s+tNWzdbW1iLAG7s3F0M
osEAn0HAPR3lX8Zk1VA2wm0PFF96oB2Z
=oOzQ
-END PGP SIGNATURE-
___
SailfishOS.org Devel mailing list


[SailfishDevel] Closing an application without killing the main loop

2013-12-11 Thread Ville Ranki
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Hello,

I'm the author of Siilihai web forum reader http://siilihai.com and
i'm currently porting it to Sailfish.

Siilihai needs to synchronize it's status (read messages etc) to a
remote server when user quits it.

I have not found a way to do it in Sailfish. When user closes the
application, Sailfish terminates the Qt main loop which effectively
makes it impossible to do any asynchronous tasks.

On desktop QApplication::setQuitOnLastWindowClosed(false) can be
used to instruct Qt to continue running main loop when last
window is closed, but it does not work on Sailfish.

Restarting the main loop worked on Harmattan, but on Sailfish
it causes a crash inside Qt-Wayland code (qwaylandeventthread.cpp line
37). I also tried to create a Qt event filter with no success.


Here is a example application to demonstrate the issue:
http://talk.maemo.org/attachment.php?attachmentid=33970d=1386249527

This application creates a repeating timer which stops working
when the window is closed.

I have already asked about the issue on TMO and #sailfishos, but didn't
get any satisfactory answers.

http://talk.maemo.org/showthread.php?t=91947

The question is: is this a bug or intended behavior? Can anyone hack
the example application so that the timer keeps running after the window
is closed?

- -- 
Ville Ranki ville.ra...@iki.fi
http://www.iki.fi/~cos
PGP public key: http://www.iki.fi/~cos/vranki_pub.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlKo0GQACgkQVm11nqR7UVwRQgCggY2EljkXfRGPA447691ztsqs
fHMAnRTEAy146K9L+I/u1GkCpaoEn1xj
=iwsA
-END PGP SIGNATURE-
___
SailfishOS.org Devel mailing list