Re: [SailfishDevel] Daemons in app store. And/or other ways of getting activated on event/schedule

2013-12-29 Thread AL13N
IMHO, we should contribute such stuff to mer/nemo (possibly using dbus) and make an app for it here. daemons as apps seems ludicrous to me... > Hi All > > If I read Harbour FAQ correctly, you are not allowed to install daemons > (as > you are not allowed to write to /etc/init.d). Okay, hacks are

Re: [SailfishDevel] Daemons in app store. And/or other ways of getting activated on event/schedule

2013-12-29 Thread Andrey Kozhevnikov
creating cron rules can be more usable and easier On 29.12.2013 14:20, AL13N wrote: IMHO, we should contribute such stuff to mer/nemo (possibly using dbus) and make an app for it here. daemons as apps seems ludicrous to me... Hi All If I read Harbour FAQ correctly, you are not allowed to ins

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Franck Routier (perso)
Le 28/12/2013 19:06, Artem Marchenko a écrit : > If you want something QML that works, I use this pure QML LocalStorage > approach for the last couple of years fine > - > https://github.com/amarchen/Wikipedia/blob/master/src/qml/components/DbDictionary.qml I found inbetween that this is the appr

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Bob Jelica
See my previous mail. I use that in QML all the time. I guess it’s up to you, as an app developer, to decide what fits your app. In spirit with agile software development, I start of with the easies possible solution, with as little friction as possible and take it from there. The QSettings (wit

Re: [SailfishDevel] Boosted process (pid=721) was terminated due to signal 11

2013-12-29 Thread christopher . lamb
Curiouser and curiouser. Today the app still exits on GPS Startup, but the Signal 11 error is not being reported, even though this was repeatedly the case last night. In the meantime I have created a throwaway demo SatInfoSourceDemo illustrating the problem. (Basically the standard Sailfish

Re: [SailfishDevel] Boosted process (pid=721) was terminated due to signal 11

2013-12-29 Thread Luciano Montanaro
I had crashes as well... My code looks similar to yours, and I experienced the crash as well (in the emulator, I suspected because there is no GPS on it, but...) I found out that I needed to check for the positionInfoSource being valid: Relevant snippets here: StationListProxyModel::StationList

Re: [SailfishDevel] Daemons in app store. And/or other ways of getting activated on event/schedule

2013-12-29 Thread Alejandro Exojo
El Saturday 28 December 2013, Artem Marchenko escribió: > What would be the sailfish way to do it? > - Harmattan-like hooking to alarm clock scheduler? Seems so. I was looking at the same issue, because I would like to understand how and alarm application should work. The Jolla one is not open s

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Mikael Hermansson
On Sunday 29 December 2013 10.08.04 Franck Routier wrote: > > LocalStorage: > (+) available in qml out of the box, more standard (HTML5 ??), more > powerful (sql) > (-) not directly human readable / editable, security concerns (all > tables available to all qml apps ??) > The localestorage file

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Andrey Kozhevnikov
QSettings saved in ~/.config/organization/application.conf for privacy you can make own SQL frontend with password-locked database. On 29.12.2013 18:46, Mikael Hermansson wrote: On Sunday 29 December 2013 10.08.04 Franck Routier wrote: LocalStorage: (+) available in qml out of the box, more st

Re: [SailfishDevel] Boosted process (pid=721) was terminated due to signal 11

2013-12-29 Thread christopher . lamb
Ciao Luciano Thanks for the ideas. I agree this is most likely down to a missing "real gps" on the emulator. If that is the case then it would be fantastic if the emulator shipped with a GPS emulator (like the one on the Nokia simulator). My constructor now looks like this: SatInfoSource:

Re: [SailfishDevel] Boosted process (pid=721) was terminated due to signal 11: SOLVED

2013-12-29 Thread christopher . lamb
Ciao Luciano I have cracked it! I should have read the QtCreator Debug output more closely. Using a constructor based on yours, I get: [D] SatInfoSource::SatInfoSource:18 - No satellite info source available as the demo starts up. The problem occurs when myGeoSatelliteInfoSource->startUpd

Re: [SailfishDevel] Daemons in app store. And/or other ways of getting activated on event/schedule

2013-12-29 Thread Marcin M.
And for example phone speaker switcher as on Maemo (though it would be better if it was provided by Jolla), changing mac address on startup, etc. etc. -- Marcin 2013/12/29 Alejandro Exojo > El Saturday 28 December 2013, Artem Marchenko escribió: > > What would be the sailfish way to do it? > >

[SailfishDevel] PkCon on Emulator: Empty Reply from Server

2013-12-29 Thread christopher . lamb
Hi All Ever so often, when I try to install a package to the Emulator via PkCon I get the following error: Schwerwiegender Fehler: Fehler beim Herunterladen (curl) für 'http://releases.sailfishos.org/sdk/latest/jolla/i486/mw/i486/geoclue-0.12.99.3-1.4.1.i486.rpm': Fehlerkode: Unrecognized

Re: [SailfishDevel] PkCon on Emulator: Empty Reply from Server

2013-12-29 Thread Andrey Kozhevnikov
you can use export LANG=C to get output in english and for bug: just change dns of your isp connection / try to ping http://releases.sailfishos.org On 29.12.2013 21:38, christopher.l...@thurweb.ch wrote: Hi All Ever so often, when I try to install a package to the Emulator via PkCon I get t

Re: [SailfishDevel] PkCon on Emulator: Empty Reply from Server

2013-12-29 Thread christopher . lamb
Hi Andrey Thanks I had been meaning to set the language to English - I am quite happy with German, but for posting errors English is the Lingua Franca ..8-) Pinging http://releases.sailfishos.org from my development host gets me: ping: cannot resolve http://releases.sailfishos.org: Unknown

Re: [SailfishDevel] Boosted process (pid=721) was terminated due to signal 11: SOLVED

2013-12-29 Thread Luciano Montanaro
Good to know you found the problem. I could have been a bit more explicit, your solution is basically what I had to do as well. It is better to check for pointers being valid before using anyway! I suppose the user can disable GPS to save battery, and not all positionInfoSources may be available o

[SailfishDevel] QtLocation/Positioning Simulator plugin on Emulator

2013-12-29 Thread christopher . lamb
Hi All In a thread I started yesterday titled "Boosted process (pid=721) was terminated due to signal 11" I reported that my app was crashing on calling startUpdates on a (missing) satelliteSource. Further investigations indicate that this is because on the emulator there is no valid QGeo

[SailfishDevel] Qt Creator Yaml file editor loses new entries

2013-12-29 Thread christopher . lamb
Hi All If add a new dependency to the a projects .yaml file via the QtCreator yaml file editor, then immediately hit "cmd S" to save the changes, then more often than not the new entry vanishes, and i have to repeat the process. So far I have not established exactly what pattern of circum

Re: [SailfishDevel] QtLocation/Positioning Simulator plugin on Emulator

2013-12-29 Thread Bob Jelica
You could try feeding the PositionSource with an nmeaSource (pre-defined route etc.) in the meantime. I agree tho, a way to simulate positions and stuff like that in the emulator would be really helpful. //bob On 29 dec 2013, at 17:36, christopher.l...@thurweb.ch wrote: > Hi All > > In a thr

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Franck Routier (perso)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I am trying to use the QSettings wrapper, as proposed by Bob Jelica. Here is what I did in my main cpp: #include #include "settings.h" int main(int argc, char *argv[]) { // SailfishApp::main() will display "qml/template.qml", if you need mo

[SailfishDevel] Problem with QQmlListProperty

2013-12-29 Thread Markus Svensson
Hi guys, I'm trying to expose my database layer to QML via a QQmlListProperty - however I'm running into problems... I've probably set it up wrong - but I can't figure out where. My C++ skills are a bit rusty after years and years of Java work... :) This is my setup code: QQmlListProperty Not

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Bob Jelica
That’s just a warning, I have it as well, but never had problems nor time to investigate further. //bob On 29 Dec 2013, at 21:48, Franck Routier (perso) wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I am trying to use the QSettings wrapper, as proposed by Bob Jelica. >

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Franck Routier (perso)
Le 29/12/2013 21:53, Bob Jelica a écrit : > That’s just a warning, I have it as well, but never had problems nor time to > investigate further. Ok, thanks a lot. Franck ___ SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Thomas Tanghus
On Sunday 29 December 2013 21:48:18 Franck Routier wrote: > Everything compiles fine, but on deployment, I get these messages: > > [W] QCoreApplication::applicationDirPath:1906 - > QCoreApplication::applicationDirPath: Please instantiate the > QApplication object first I use: int main(int argc,

[SailfishDevel] RPM-packaging for Python/QML applications

2013-12-29 Thread Osmo Salomaa
Hello, Does anyone have an example of RPM-packaging for a PyOtherSide or pure QML application? I'm not familiar with RPM. In the case of PyOtherSide should I write YAML or directly a spec file? Looking at a couple non-C++ Sailfish applications on GitHub, I see them using minimal C++ ('Sail

[SailfishDevel] Order of app icons in the launcher. What controls it? Changeable?

2013-12-29 Thread Artem Marchenko
Hi all Rearranging apps manually it tedious while with three screens of apps you have to do it somehow. I am thinking about a small utility app that would sort the icons alphabetically or by some criteria (e.g. app names known to be about social networks to be close to each other). What is actual

Re: [SailfishDevel] Order of app icons in the launcher. What controls it? Changeable?

2013-12-29 Thread Thomas Perl
Hi, On 30 Dec 2013, at 02:15, Artem Marchenko wrote: > Rearranging apps manually it tedious while with three screens of apps you > have to do it somehow. I am thinking about a small utility app that would > sort the icons alphabetically or by some criteria (e.g. app names known to be > about s

Re: [SailfishDevel] RPM-packaging for Python/QML applications

2013-12-29 Thread Matt Austin
Hi Osmo, On 30 December 2013 09:01, Osmo Salomaa wrote: > Does anyone have an example of RPM-packaging for a PyOtherSide or pure QML > application? > > I'm not familiar with RPM. In the case of PyOtherSide should I write YAML or > directly a spec file? > I haven't tried this myself yet, but am i

Re: [SailfishDevel] QtLocation/Positioning Simulator plugin on Emulator

2013-12-29 Thread christopher . lamb
Hi Bob A nmeaSource would help with PositionSource ( I have one of those as well), but won't help with a SatelliteSource. PositionSource gives me location information (the GPS coordinates, altitude etc). SatelliteSource gives me information about the number of Satellites in view and in