Re: [SailfishDevel] ContextKit not installed?
On Monday, 4 May 2020 15.30 Martin Kampas wrote: > > it isn't recognized in the > > editor, "QML module does not contain information about components > > contained in the plugins". > > I checked that now and I confirm this is a bug - the package does not > provide the QML type information. > > You can work this around by using qmlplugindump on your device to generate > a plugins.qmltypes file and copy it into the corresponding plugin > directory under ~/ SailfishOS/mersdk/targets//usr/lib/qt5/qml/. I'm not sure I follow: The file missing on my PC is ~/SailfishOS/mersdk/targets//usr/lib/qt5/qml/org/freedesktop/contextkit/plugin.qmltypes ? I should run qmlplugindump on the device? From which folder? -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ContextKit not installed?
On Monday, 4 May 2020 07.12 Ville Nummela wrote: > On 1.5.2020 10.24, Thomas Tanghus wrote > > > [C] expression for network:71 - > > file:///usr/share/harbour-dktv/qml/components/Network.qml:30 module > > "org.freedesktop.contextkit" is not installed > Maybe the error message is correct, and you don't have the > org.freedesktop.context plugin installed? Without seeing your project > this is just guessing, but my guess is that you don't have "Requires: > contextkit-declarative-qt5" line in your .spec file. You would be right in guessing so. I'm still not really familiar with the build system, so I wasn't aware it was needed, AND I have been developing on an app using it for years without that "Requires:" line. So ;) https://github.com/tanghus/currency-converter-qml/blob/master/rpm/harbour-currencyconverter.spec#L19 https://github.com/tanghus/currency-converter-qml/blob/master/qml/components/Network.qml#L30 https://openrepos.net/content/tanghus/currency-converter-sailfishos Anyways, it's working now - \o/ - except that it isn't recognized in the editor, "QML module does not contain information about components contained in the plugins". Great, btw, that ViewPlaceholder, PageHeader etc. are properly recognized in the IDE -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Sailfish SDK 3.1 has been released to Early Access
On Friday, 1 May 2020 14.04 Martin Kampas wrote: > > Now I just have to figure why some QML modules can't be imported... > If you mean that there are red highlights etc. in the source code opened > in Qt Creator, then this is likely because the QML modules are not > installed in the (active) build target. > > If the QML modules are provided by packages pulled in as BuildRequires in > .spec, all you should need to do is rebuilding the project (or just > running qmake). > > If the QML modules are not pulled in as BuildRequires, you need to install > them manually into the build target using Options > Sailfish OS > Build > Engine > Manage Build Targets > Manage Packages under Qt Creator or from > command line using `sfdk tools package- install`. > > Should you still have troubles fixing that, it would be nice to get more > info about the modules and the content of your .spec at least. I have two issues: One is that I can't import org.freedesktop.contextkit. In attached screen shot it seems to be installed in the SDK, so it must be missing on device? The error (in separate email about ContextKit) comes when running it on the device. It flees my memory if I have had to install anything extra when I started using it. The other issue is ... is a non-issue after a rebuild and deploy ;) Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Sailfish SDK 3.1 has been released to Early Access
On Friday, 1 May 2020 13.19 Martin Kampas wrote: > Right after your first email I thought it was just a temporary error in > your download location, but now that you write about reading release > notes properly I am curious what was the issue more specifically? Maybe > it was something we should highlight more there. You have actually made it quite clear in in the linked notes. Reading them does help ;) https://sailfishos.org/wiki/Application_SDK_Early_Access#Installing_the_Early_Access_SDK 1. Open the Sailfish OS SDK Installer 2. Click Settings 3. Go to the Repositories page 4. Uncheck (Disable) the updates repository 5. Check (Enable) the updates-ea repository 6. Click OK and continue with the installation instructions > > libtinfo5 is in Ubuntu 19.10 described as "legacy version", so maybe the > > SDK should link against a newer version; at least when Ubuntu 20.04 LTS > > is released. Isn't it by now, btw? > > Sailfish SDK links against older libraries in order to support older > operating systems, which is often the case of corporate users. Listed > here https://sailfishos.org/wiki/Application_SDK_Known_Issues[1] . I had not seen that. Thanks. > > Anyways, I installed the legacy version and it seems to work, but I > > don't even know what Clang does to start with ;) > > You can start by reading e.g. > https://www.qt.io/blog/2018/06/05/qt-creators-clang-code-model[2] . Yes, I was being lazy ;) Julien also explained. Thanks to both. Now I just have to figure why some QML modules can't be imported... -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Sailfish SDK 3.1 has been released to Early Access
On Friday, 1 May 2020 13.16 Julien Blanc wrote: > > I don't even know what Clang does to start with > > clang code model brings far superior auto completion than the old qt > creator integrated language model. Thanks for the explanation. It does sound as a welcomed addition. -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Sailfish SDK 3.1 has been released to Early Access
On Friday, 1 May 2020 12.38 Thomas Tanghus wrote: > I first tried the online installer, but the repository couldn't be found. Because I didn't read the release notes properly... -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ContextKit not installed?
On Friday, 1 May 2020 09.24 Thomas Tanghus wrote: > Another of my apps now can't find the custom QML plugin packaged with it. > > I haven't updated the SDK yet, so still on 2.2.4, but shouldn't it be > backwards compatible? Upgrading to SDK 3.1 didn't help. Is it just me, or is the whole SDK install, update, configure *extremely" fragile? It feels like it breaks each time there's an update, which is partly why I hadn't updated it earlier. Should I use Docker for the build engine instead? Maybe setup a cli based build/install process? Or would that make no difference in this context? -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Sailfish SDK 3.1 has been released to Early Access
On Thursday, 30 April 2020 12.49 Martin Kampas wrote: > Today (Apr 30th) at 10:00 UTC the Sailfish SDK 3.1 was released to Early > Access users. Please, check out the release notes from > https://together.jolla.com/question/226423/[1] . > > The installers for this SDK release are now available at > https://sailfishos.org/wiki/ > Application_SDK_Early_Access#Latest_Early_Access_SDK_Release[2] . If you > have an older Early Access release of the SDK installed, you should see > an update notification in the Sailfish IDE. I first tried the online installer, but the repository couldn't be found. The offline installer succeeded, but it seems Clang is having problems: ~/SailfishOS/lib/qtcreator/plugins/libClangTools.so: Cannot load library / home/thomas/SailfishOS/lib/qtcreator/plugins/libClangTools.so: (libtinfo.so. 5: cannot open shared object file: No such file or directory) I have libtinfo.so.5 installed, but not in /usr/lib $ locate libtinfo.so. /snap/core/9066/lib/x86_64-linux-gnu/libtinfo.so.5 /snap/core/9066/lib/x86_64-linux-gnu/libtinfo.so.5.9 /snap/core18/1705/lib/x86_64-linux-gnu/libtinfo.so.5 /snap/core18/1705/lib/x86_64-linux-gnu/libtinfo.so.5.9 /snap/core18/1754/lib/x86_64-linux-gnu/libtinfo.so.5 /snap/core18/1754/lib/x86_64-linux-gnu/libtinfo.so.5.9 /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1 libtinfo5 is in Ubuntu 19.10 described as "legacy version", so maybe the SDK should link against a newer version; at least when Ubuntu 20.04 LTS is released. Isn't it by now, btw? Anyways, I installed the legacy version and it seems to work, but I don't even know what Clang does to start with ;) -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] ContextKit not installed?
I updated to 3.3.0.16 last night, and now I get this error when trying to run any of my apps that uses it: [C] expression for network:71 - file:///usr/share/harbour-dktv/qml/components/Network.qml:30 module "org.freedesktop.contextkit" is not installed I have this import: import org.freedesktop.contextkit 1.0 which - still - is in https://github.com/sailfishos/sdk-harbour-rpmvalidator/blob/master/allowed_qmlimports.conf Normally when encountering such an error, the app would end up with a "White Screen of Death", wouldn't it? First thing that got me wondering, was that when installing an app as RPM from the SDK, the device asked for confirmation to install? Another of my apps now can't find the custom QML plugin packaged with it. I haven't updated the SDK yet, so still on 2.2.4, but shouldn't it be backwards compatible? -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Solved: Re: Dialog/ListView/Menu/Search
On Saturday, 4 January 2020 17.54.19 CET you wrote: > How about this? > > Dialog { > SilicaListView { > anchors.fill: parent > PullDownMenu { /* MenuItems */ } > header: Column { > width: parent.width > DialogHeader { > title: "Title" > } > SearchField { > width: parent.width > } > } > } > } Yes (below), but not with "width: parent.width" in the header column, which turned out to be crucial to have. If not the header didn't show at all. Thanks! Now I will make that repo read-only and save it for eternity ;) The only practical issue here, is that the search field and the menu indicator are hidden behind the header until you scroll back, meaning that you could scroll all the way to the end of the list and back, before you noticed you could search instead. But that can probably be fixed with some top margin. > > > > or: > > > > Dialog { > > SilicaListView { > > PullDownMenu { /* MenuItems */ } > > header: Column { > > DialogHeader {} > > SearchField {} > > } > > } > > } > > > > Neither works, but as coderus wrote to me in a PR 4-5 years ago, I do > > weird stuff ;) > > > > I could write all the variations I've tried, but that would just be a > > parade of more weird stuff with variations over missing or misplaced > > header, menu, search field or list. > > > > > > _______ > > SailfishOS.org Devel mailing list > > To unsubscribe, please send a mail to > > devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Dialog/ListView/Menu/Search
On Saturday, 4 January 2020 16.10 Thomas Tanghus wrote: > Yes. Annoyingly DialogHeader.extraContent doesn't work like e.g. > ListView.header/footer, so the above was how I tried. Forgot to write that it resulted in the search field being *inside* the header, which is somewhat logical, but not what I was aiming for. -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Dialog/ListView/Menu/Search
On Saturday, 4 January 2020 16.04 Michael Fuchs wrote: > did you try extraContent? > > Dialog { > > SilicaListView { > > PullDownMenu { /* MenuItems */ } > > header: DialogHeader { > > id: dialogHeader > > } > > SearchField { > > parent: dialogHeader.extraContent > > } > > } > > Yes. Annoyingly DialogHeader.extraContent doesn't work like e.g. ListView.header/footer, so the above was how I tried. -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Dialog/ListView/Menu/Search
I must be possible to do, but maybe my head is just wired wrong - well, I do have that one paper already, so... :D How to have a SilicaListView with a SearchField inside a Dialog with a DialogHeader and a menu, where the SearchField is below the DialogHeader, the list starts below both? Every even semi-logical way to do this ends up, for me at least, with an unholy mess. What for me would seem logical is be a variation of: Dialog { SilicaListView { PullDownMenu { /* MenuItems */ } header: DialogHeader { id: dialogHeader } SearchField { parent: dialogHeader.extraContent } } } or: Dialog { SilicaListView { PullDownMenu { /* MenuItems */ } header: Column { DialogHeader {} SearchField {} } } } Neither works, but as coderus wrote to me in a PR 4-5 years ago, I do weird stuff ;) I could write all the variations I've tried, but that would just be a parade of more weird stuff with variations over missing or misplaced header, menu, search field or list. -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Slilica.Clipboard
On Wednesday, 11 December 2019 16.17 Thomas Tanghus wrote: > But since KWin is moving > to Wayland, maybe they have found a way to circumvent that restriction, > else one of my favorite utility apps Klipper would seize working? But I had my hopes up too early: https://phabricator.kde.org/T4449 -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Slilica.Clipboard
On Wednesday, 11 December 2019 14.34 Pekka Vuorela wrote: > > So basically the only way to monitor the clipboard is to poll it > > regularly? > > Wayland offers clipboard content only to active windows / apps, so not > sure how feasible your intention is. You're probably right. Even polling doesn't help. But since KWin is moving to Wayland, maybe they have found a way to circumvent that restriction, else one of my favorite utility apps Klipper would seize working? -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] settings through Settings > Apps > application
On Wednesday, 11 December 2019 13.42 E.S. Rosenberg wrote: > The question is as the title, if I want to add settings the "official" > SFOS way how do I do it? > I didn't see any examples of this in the sfos/silica documentation. > Thanks, Currently it's not allowed in Harbour, don't know if it'll ever be, but some apps have apparently done it e.g Depecher: https://github.com/blacksailer/depecher -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Slilica.Clipboard
On Wednesday, 11 December 2019 12.53 Thomas Tanghus wrote: > My idea was to make an app like the Plasma Klipper app And apparently I'm not the only one: https://together.jolla.com/question/50637/clipboard-paste-ring/ -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Slilica.Clipboard
On Tuesday, 10 December 2019 21.54 Thomas Tanghus wrote: > I was playing a bit with the Clipboard module, just to see how it works, > > So: How can it be that it's triggered by Sailfish Connect and not any > other apps? Answering myself: The onTextChanged is only triggered when the app is in the foreground, which in itself makes it impossible on a phone. Sailfish Connect listens for network packages and injects into the clipboard, but the event is only triggered when the app is in the foreground. So basically the only way to monitor the clipboard is to poll it regularly? I'm guessing this is old news for most; I just haven't tried to use it before now :) My idea was to make an app like the Plasma Klipper app, which I use all the time: https://docs.kde.org/stable5/en/kde-workspace/klipper/index.html -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Slilica.Clipboard
I was playing a bit with the Clipboard module, just to see how it works, and did something similar to: ApplicationWindow { id: app property string text Binding { target: app property: 'text' value: Clipboard.text } onTextChanged: console.log("Clipboard:", text) } And then tried to copy some text from different apps. Nothing happened. Looking at the code, wondering if that couldn't be done in QML, suddenly it got triggered and showed a piece of the code...? Now totally baffled thinking, if the SDK shared some..., nah; when I realized I had Sailfish Connect[*] running and connected to my Plasma desktop, and I had been copying text in QtCreator So: How can it be that it's triggered by Sailfish Connect and not any other apps? [*] https://openrepos.net/content/r1tschy/sailfish-connect -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] SDK again, again...
Sorry if this mail comes several times. Had some problems with kmail. On Monday, 18 November 2019 07.34.25 CET you wrote: > Hi Thomas, > > The error messages in the tool tip shown when the *-armv7hl kit is hovered > tell you the device selected in kit configuration is architecture > incompatible with the kit. The kit supports armv7hl devices while the > device (Sailfish OS Emulator) is an x86 device. You can still use the kit > to build RPM packages for the armv7hl architecture, you will just not be > able to run those directly from Qt Creator. For that you need to provide > a hardware device with that architecture and configure the kit to use > that instead of the emulator. Use the *- i486 kit if you want to run your > software under the Sailfish OS Emulator. Thanks a lot for the detailed explanation, and sorry for the late reply. I got access to my desktop pc, and got side-tracked elsewhere. I will try to install again on my laptop. I was sure I had set the kit to arm and the device to run on to be my phone, but you're right that it doesn't look like it in the screenshot. > The installation log currently contains information that is mostly useful > to someone with knowledge of SDK installer internals. An error message > appearing there is not necessary meaning something wrong. The installer > would complain verbosely if an installation error really occurred. Good to know, I'll focus on the relevant parts. -- /Thomas ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] SDK again, again...
On Sunday, 17 November 2019 15.24.18 CET szo...@gmail.com wrote: > Actually, downgrading to 1.0 might work as qtcreator 5.6 requires it > according to > https://forum.qt.io/topic/97098/install-qt-creator-5-6-0-on-ubuntu-mate-18-> > 04-1/2 seems weird but could be worth a try and reupdating after install Good find! It does look like it could at least solve the "cannot resolve" errors, I'm just baffled that no one else is having this problem? But how would one approach this. Preferably having both v.1.0 and v.1.1 side by side. Maybe it's possible to set an env variable saying which to use? I have no idea :P Hmm. Now I just checked my desktop PC. I has the same openssl version. I'll investigate some more. Thanks for the suggestions :) -- /Thomas ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] SDK again, again...
On Sunday, 17 November 2019 14.29.11 CET szo...@gmail.com wrote: > Have you tried updating openssl on your laptop and reinstalling? Seems like > this was the problem during install so it probably installed incorrectly? Good suggestion, but I can't believe that to be the problem. It's a freshly installed Kubuntu 19.10 with an updated openssl: Package: openssl Version: 1.1.1c-1ubuntu4 Priority: important Section: utils Origin: Ubuntu Maintainer: Ubuntu Developers Original-Maintainer: Debian OpenSSL Team Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1.282 kB Depends: libc6 (>= 2.15), libssl1.1 (>= 1.1.1) -- /Thomas ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] SDK again, again...
On Sunday, 17 November 2019 14.05.16 CET Thomas Tanghus wrote: > A picture says more... and so on: > > https://cloud.tanghus.net/apps/sharingpath/tanghus/Documents/SDK-installation.txt > > The "interesting" parts of the install log: > > https://cloud.tanghus.net/apps/sharingpath/tanghus/Pictures/Screenshots/SailfishOS/SailfishOS-SDK-kit-no-cmake.png And of course the links were supposed to be the other way around ;) -- /Thomas ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] SDK again, again...
Apparently the SDK and I are not on the best of terms. After having gotten it to work on my desktop PC, I am now trying to install it on an older laptop. Every time I try to install it, I end up with a broken kit, where cmake settings are missing/broken. Maybe because of: SOFT ASSERT: "kitInfo.isValid()" in file ../../../../sailfish-qtcreator/src/plugins/qmakeprojectmanager/qmakeproject.cpp, line 268 I have no idea whatsoever what to do from here without breaking more than I fix. A picture says more... and so on: https://cloud.tanghus.net/apps/sharingpath/tanghus/Documents/SDK-installation.txt There were quite a few errors at the end of the installation. Among those: - Device Sailfish_OS-Emulator-latest not found. - Installing component Sailfish OS Build Target latest-i486 (3.2.0.12) Integration for Sailfish OS IDE Error: Id was not found. - Installing component Sailfish OS Build Target latest-armv7hl (3.2.0.12) Integration for Sailfish OS IDE Error: Id was not found. The "interesting" parts of the install log: https://cloud.tanghus.net/apps/sharingpath/tanghus/Pictures/Screenshots/SailfishOS/SailfishOS-SDK-kit-no-cmake.png -- /Thomas signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Correct way to implement an import/export dialog
On tirsdag den 22. oktober 2019 22.29.25 CEST E.S. Rosenberg wrote: > Hi all, > I would like to build a dialog that allows both import and export on the > same page or at least accessible from the same pulley menu item. > > that seems to be the "wrong" way. > > So I wondered is there a "right" way to implement this while trying to > stay within the SFOS UX paradigms? I'd say a pulley menu would be to hidden in this case. The UI/UX paradigms shouldn't be cast in stone, and buttons are used also in the Jolla apps, i.e. Settings->Apps->Browser. -- /Thomas signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Binding singleton values and network availablity
On 8/30/19 2:22 PM, Thomas Tanghus wrote: > Binding { > target: app > property: 'isOnline' > value: Env.isOnline > } > > Is there a way to have this binding without creating it explicitly? Having worked a bit with it, it's actually a handy way to wait for a variable, that takes some time to initialize. Sorry for the noise :P -- /Thomas A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: OpenPGP digital signature ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Binding singleton values and network availablity
With kind and subtle help from Coderus, I found ways to monitor network availability. To use it in different places of the project, I'm trying to make a singleton which holds relevant variables and states. That part actually works - almost. The singleton module(/object/class?): ;) Env.qml: pragma Singleton import QtQuick 2.6 QtObject { property bool isOnline: network.isOnline onIsOnlineChanged: console.log('Env.isOnline:', isOnline) property var network: { var component = Qt.createComponent(Qt.resolvedUrl('Network.qml')); return component.createObject(); } } This instantiates: Network.qml: import QtQuick 2.6 import org.freedesktop.contextkit 1.0 QtObject { id: network property bool isOnline: state.value === 'connected' property ContextProperty state onIsOnlineChanged: console.log('Env.Network.isOnline:', isOnline) state: ContextProperty { id: networkOnline key: 'Internet.NetworkState' onValueChanged: { console.log('Env.Network.state', value, isOnline) } } } Both 'onIsOnlineChanged' triggers successfully, but not so much actually using them: harbour-myapp.qml: ApplicationWindow { property bool isOnline: Env.isOnline // Creates no binding // This isn't triggered onIsOnlineChanged: { console.log('App.onIsOnlineChanged', isOnline) } // Until I make this binding Binding { // This does create a binding target: app property: 'isOnline' value: Env.isOnline } } Is there a way to have this binding without creating it explicitly? Next question: I need the binding to work, because I don't want to fire off any request before I know if the network is up. Is there anything that can be done to shorten the relatively long time it takes for the ContextProperty to register network connectivity? -- /Thomas A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: OpenPGP digital signature ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Importing my own QML plugin. Take two...
On 8/21/19 3:01 PM, Martin Kampas wrote: >> On the other hand, I couldn't even explain how I did it 4 years ago[2] :P > > This way > https://github.com/tanghus/kitchen-timer-qml/blob/master/src/harbour-kitchentimer.cpp#L74 Thank you!!! I need to write this stuff down :D -- /Thomas signature.asc Description: OpenPGP digital signature ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Importing my own QML plugin. Take two...
This is juuust a bit embarrassing. I'm trying to import a plugin, just as I did years ago in my tiny app Kitchen Timer[1]. On the other hand, I couldn't even explain how I did it 4 years ago[2] :P With the best of my weary eyes, I can't see what I'm missing, but I have changed the build setup more logically sane, thanks to advice from Martin Kampas :) The main project file[3] links to two other: app.pro[4] and a QML plugin (skeleton)[5]. # harbour-currencyconverter.pro: TEMPLATE = subdirs SUBDIRS += app \ lib/fileproxy # app.pro: TARGET = harbour-currencyconverter TEMPLATE = app CONFIG += sailfishapp CONFIG += sailfishapp_i18n QT += dbus quick # And some other stuff # lib/fileproxy/fileproxy.pro: TEMPLATE = lib PROJECT = currencyconverter TARGET = fileproxy QT += quick QT -= gui CONFIG += qt plugin TARGET = $$qtLibraryTarget($$TARGET) target.path = /usr/share/harbour-$$PROJECT/lib/harbour/$$PROJECT/$$TARGET uri = harbour.$$PROJECT.TARGET # SOURCES and HEADERS OTHER_FILES = qmldir qmldir.files += $$_PRO_FILE_PWD_/qmldir qmldir.path += $$target.path INSTALLS += target qmldir Everything builds and installs fine: $ ls /usr/share/harbour-currencyconverter/lib/harbour/currencyconverter/fileproxy/ libfileproxy.so qmldir $ ls /usr/share/harbour-currencyconverter/ flags lib qml translations $ ls /usr/bin/harbour-currencyconverter /usr/bin/harbour-currencyconverter Exactly the same way as [1]. So, everything is fine until the import of the module[6], which off course exits with "module "harbour.currencyconverter.fileproxy" is not installed" :/ I am as good as certain, that I'm just missing some copy/paste error, but I have been thru the code a gazillion times now, and I just can't find it. Sorry for the broken lines. How do you disable line-breaks in Thunderbird? [1] https://github.com/tanghus/kitchen-timer-qml/ [2] https://lists.sailfishos.org/pipermail/devel/2015-September/006533.html [3] https://github.com/tanghus/currency-converter-qml/blob/master/harbour-currencyconverter.pro [4] https://github.com/tanghus/currency-converter-qml/blob/master/app.pro [5] https://github.com/tanghus/currency-converter-qml/blob/master/lib/fileproxy/fileproxy.pro [6] https://github.com/tanghus/currency-converter-qml/blob/master/qml/harbour-currencyconverter.qml#L34 -- /Thomas signature.asc Description: OpenPGP digital signature ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error installing .desktop file
On 8/20/19 11:00 AM, Martin Kampas wrote: > The .desktop file must exist in the same directory where the .pro file > that uses CONFIG+=sailfishapp exists. > > Note that the subdirs template does not require you actually put stuff > to subdirectories - you can specify a .pro file that exists in the same > directory instead of a subdirectory > https://doc.qt.io/qt-5/qmake-variable-reference.html#subdirs. This way > you should be able to keep the standard layout with .desktop and other > files in the root directory and yet use the subdirs template to split > the build. This mostly works: TEMPLATE = subdirs SUBDIRS += app.pro \ lib/fileproxy Now there's an error about the icons, but it looks like I have switched some statements ;) Should be easily solvable. This actually makes it a lot easier to set up sub-projects - and sub-repositories. -- /Thomas signature.asc Description: OpenPGP digital signature ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error installing .desktop file
"Martin Kampas" – 20. august 2019 11:18 > On úterý 20. srpna 2019 11:11:57 CEST Thomas Tanghus wrote: > > "Martin Kampas" – 20. august 2019 11:00 > > > The .desktop file must exist in the same directory where the .pro file > > > that uses CONFIG+=sailfishapp exists. > > It is. > It isn't :) You've got a point there ;) I'll follow up on your previous answer about the location and report back with the result. Thanks, this just may get me past this hassle :) ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error installing .desktop file
"Martin Kampas" – 20. august 2019 11:00 > The .desktop file must exist in the same directory where the .pro file that > uses CONFIG+=sailfishapp exists. It is. > Note that the subdirs template does not require you actually put stuff to > subdirectories - you can specify a .pro file that exists in the same directory > instead of a subdirectory > https://doc.qt.io/qt-5/qmake-variable-reference.html#subdirs. This way you > should be able to keep the standard layout with .desktop and other files in > the root directory and yet use the subdirs template to split the build. Excellent! That I didn't know. I'll try and see if it makes a difference. /Thomas A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error installing .desktop file
"Thomas Tanghus" – 20. august 2019 09:24 > It's in the underlying 'src' directory: > Maybe this isn't the best way to organize it? It has worked for me in another > app, but I thing there has been a new SDK release since that. This is the current state of the app (bear with me, it's in a deconstructive state. First app I wrote so it's much of a rewrite.) https://github.com/tanghus/currency-converter-qml This is the app with a very similar build setup, and which actually builds and deploys ok with the newest SDK. https://github.com/tanghus/kitchen-timer-qml -- /Thomas A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error installing .desktop file
Some how this from coderus only arrived in my inbox: > there is a CONFIG += sailfishapp which is doing magic by installing qml, > png and desktop files. Seems you missing that. It's in the underlying 'src' directory: TEMPLATE = app TARGET = harbour-currencyconverter # App version DEFINES += APP_VERSION=\"\\\"$${VERSION}\\\"\" CONFIG += sailfishapp QT += dbus quick #declarative SOURCES += \ $${TARGET}.cpp #HEADERS += qmlsettings.h CONFIG(release, debug|release) { DEFINES += QT_NO_DEBUG_OUTPUT } Maybe this isn't the best way to organize it? It has worked for me in another app, but I thing there has been a new SDK release since that. -- /Thomas A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error installing .desktop file
Wrong quoting, mea culpa. I hate webmail "Андрей Кожевников" – 20. august 2019 08:40 > So, where is your pro file with relevant desktop file entry? I didn't mention it being in the .pro file: > These settings are copied (and modified to fit the project) from a fresh > skeleton made by the SDK. And that fresh project builds and deploys just find > (as opposed to the plugin library skeleton) I did subsequently try to add it as it was in the skeleton project in the DISTFILES section, but to no avail  Just to clarify: Between each build I run Build->Clean Project, delete leftover Makefiles and make sure there are no leftovers of the app on the device. -- /Thomas A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error installing .desktop file
"Андрей Кожевников" – 20. august 2019 08:40 > So, where is your pro file with relevant desktop file entry? > вт, 20 авг. 2019 г., 9:28 Thomas Tanghus : > > On 20.8.2019 2.23, Thomas Tanghus wrote: > > > The .pro and .yaml file are at > > gist.github.com/tanghus/840ce2ad46ea691f2b932e796dade0d8 > > > > "Ville Nummela" – 20. august 2019 06:47 > > I think the post you found from 2013 is actually quite relevant. > > > > Your .yaml file contains a line mentioning a .desktop file, while your > > .pro file doesn't. I didn't mention it being in the .pro file: > These settings are copied (and modified to fit the project) from a fresh > skeleton made by the SDK. And that fresh project builds and deploys just find > (as opposed to the plugin library skeleton) I did subsequently try to add it as it was in the skeleton project in the DISTFILES section, but to no avail :( Just to clarify: Between each build I run Build->Clean Project, delete leftover Makefiles and make sure there are no leftovers of the app on the device. -- /Thomas A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error installing .desktop file
"Thomas Tanghus" – 20. august 2019 08:28 > > On 20.8.2019 2.23, Thomas Tanghus wrote: > > > The .pro and .yaml file are at > > gist.github.com/tanghus/840ce2ad46ea691f2b932e796dade0d8 > > > > "Ville Nummela" – 20. august 2019 06:47 > > I think the post you found from 2013 is actually quite relevant. > > Your .yaml file contains a line mentioning a .desktop file, while your > > .pro file doesn't. > These settings are copied (and modified to fit the project) from a fresh > skeleton made by the SDK. And that fresh project builds and deploys just find > (as opposed to the plugin library skeleton) > > > Do you actually have a .desktop file? > > Yes ;) I tried to remove the line in the .pro and .spec files, and it gets me to: error: File not found: /home/deploy/installroot/usr/share/harbour-currencyconverter/icons RPM build errors: error: File not found: /home/deploy/installroot/usr/share/icons/hicolor/*/apps/harbour-currencyconverter.png File not found: /home/deploy/installroot/usr/share/harbour-currencyconverter/icons File not found: /home/deploy/installroot/usr/share/icons/hicolor/*/apps/harbour-currencyconverter.png And yes, they are there as well. -- /Thomas ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error installing .desktop file
> On 20.8.2019 2.23, Thomas Tanghus wrote: > > I am adding a subproject to my project, and since I did, the build stops > with: > > > > + desktop-file-install --delete-original --dir > /home/deploy/installroot/usr/share/applications > '/home/deploy/installroot/usr/share/applications/*.desktop' > > Error on file "/home/deploy/installroot/usr/share/applications/*.desktop": > No such file or directory > > error: Bad exit status from /var/tmp/rpm-tmp.dspzIi (%install) > > > > I've been through google, duckduckgo and the list archive, and the only > thing I could find, that was slightly interesting is: > lists.sailfishos.org/pipermail/devel/2013-November/001118.html and that > doesn't really apply here? > > > > The .pro and .yaml file are at > gist.github.com/tanghus/840ce2ad46ea691f2b932e796dade0d8 > > "Ville Nummela" – 20. august 2019 06:47 > I think the post you found from 2013 is actually quite relevant. > > Your .yaml file contains a line mentioning a .desktop file, while your > .pro file doesn't. These settings are copied (and modified to fit the project) from a fresh skeleton made by the SDK. And that fresh project builds and deploys just find (as opposed to the plugin library skeleton) > Do you actually have a .desktop file? Yes ;) -- /Thomas A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Error installing .desktop file
I am adding a subproject to my project, and since I did, the build stops with: + desktop-file-install --delete-original --dir /home/deploy/installroot/usr/share/applications '/home/deploy/installroot/usr/share/applications/*.desktop' Error on file "/home/deploy/installroot/usr/share/applications/*.desktop": No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.dspzIi (%install) I've been through google, duckduckgo and the list archive, and the only thing I could find, that was slightly interesting is: https://lists.sailfishos.org/pipermail/devel/2013-November/001118.html and that doesn't really apply here? The .pro and .yaml file are at https://gist.github.com/tanghus/840ce2ad46ea691f2b932e796dade0d8 /Thomas I hope this gets thru. Kmail has decided not to send emails, so I'm using Nextclouds web mail. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error starting build Engine
On Tuesday, 6 August 2019 08.39.07 CEST Martin Kampas wrote: > Hi Thomas, > > All the errors in the log you shared are expected errors, they do not > cause any issue. > > The error "Another instance for VM "Sailfish OS Emulator 3.1.0.12" already > exists" is also unrelated to your issues. > > The errors from qt.network.ssl are something I would be worry about, but > again it is not related to your issues. > > What I bet is (was) the source of your issues is the content of your > VirtualBox.xml. > >> > > src="/home/tol/SailfishOS/mersdk/Sailfish OS Build > > Engine/Sailfish > > OS Build Engine.vbox"/>> > > > >> > > src="/home/tol/SailfishOS/emulator/Sailfish OS Emulator/Sailfish > > OS > > Emulator.vbox"/>> > > > >> > > src="/home/thomas/SailfishOS/mersdk/MerSDK/MerSDK.vbox"/> > > > >> > > src="/home/thomas/SailfishOS/mersdk/Sailfish OS Build > > Engine/Sailfish OS Build Engine.vbox"/>> > > > >> > > src="/home/thomas/SailfishOS/emulator/Sailfish OS Emulator > > 3.1.0.12/Sailfish OS Emulator 3.1.0.12/Sailfish OS Emulator > > 3.1.0.12.vbox"/>> > > > > > > Did you change your user name in past or so? Yes. I have just reinstalled - long time overdue - but kept my $HOME. And for historical reasons that used to be 'tol' ;) The weird thing is, that this error occurred *after* I had had wiped ~/.config/SailfishOS-SDK and ~/.config/VirtualBox, so I don't know how it would have retained info about that installation..? > Qt Creator uses VM names instead of UUIDs Well, isn't that just plain stupid? ;) > so which VM would it be trying to start with `vboxmanage startvm > 'Sailfish OS Build Engine'`? The existing one under /home/thomas or the > unavailable one under /home/tol? Probably the latter. Anyhow, now it seems to be working perfectly. > BR, > Martin Thank you so much to you and deloptes. -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error starting build Engine
After having reinstalled one more time, I was just about to throw in the towel - when, lo and behold, it was working!!! Except for having to authorize the device, it was out-of-the-box. Anyways, this was what I had written, and warnings in the installation log were quite frightening. Link included. On mandag den 5. august 2019 16.33.12 CEST deloptes wrote: > I do not see these machines in the list > > Try the maintenance tool to remove or clean up manually. I ended with cleaning it up manually and reinstall from scratch. This time I followed the details, and they left me to believe there's something wrong with the installation file. The log was something like 25,000 lines; I managed to cut it down, but still too long for a mailing list, so here's a link: https://cloud.tanghus.net/s/ crxomHnHXQnZs6r -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Error starting build Engine
On mandag den 5. august 2019 13.22.09 CEST deloptes wrote: > Thomas Tanghus wrote: > > Regarding "Another instance for VM "Sailfish OS Emulator 3.1.0.12" already > > exists": > > > > I had to install/remove several times to get it in a semi-working state. > > One of those times I manually removed the ~/SailfishOS and > > ~/.config/SailfishOS- SDK and ~/.config/VirtualBox directories, but > > apparently that wasn't enough..? > > > > Any idea on how to get this thing movin' will be much appreciated. > > In .config/VirtualBox/VirtualBox.xml - do you have under MachineRegistry > entry with "Sailfish OS Emulator 3.1.0.12"? > > Does the directory exist? > > Perhaps it is better to use the SDKMaintenanceTool and try to repare or > manually fix entry/directory in the MachineRegistry. > Yes, I do. I have these: I have no idea about what to keep and what to remove. Trying with the maintenance tool doesn't really get me any further. In the Add/Remove I don't really see what to do, and when trying "Update components" it prints "Cannot retrieve remote tree. No package source set for this applications" -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Error starting build Engine
Hi, I finally got the newest SDK installed, but the build stops with: 'Error while building/deploying project harbour-kitchentimer (kit: SailfishOS-3.1.0.12-armv7hl (in Sailfish OS Build Engine)) When executing step "Start Build Engine"' In the console it prints: ---[snip] MerConnection: Another instance for VM "Sailfish OS Emulator 3.1.0.12" already exists Unknown debugger id {b69ce3fb-2375-4f3a-8b48-8706f37a3a40} in kit SailfishOS-3.1.0.12-i486 (in Sailfish OS Build Engine) Unknown debugger id {8cb7bb7b-818d-4143-83bc-381d48275160} in kit SailfishOS-3.1.0.12-armv7hl (in Sailfish OS Build Engine) qt.network.ssl: QSslSocket: cannot resolve CRYPTO_num_locks qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_id_callback qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_locking_callback qt.network.ssl: QSslSocket: cannot resolve ERR_free_strings qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_cleanup qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_init qt.network.ssl: QSslSocket: cannot resolve sk_new_null qt.network.ssl: QSslSocket: cannot resolve sk_push qt.network.ssl: QSslSocket: cannot resolve sk_free qt.network.ssl: QSslSocket: cannot resolve sk_num qt.network.ssl: QSslSocket: cannot resolve sk_pop_free qt.network.ssl: QSslSocket: cannot resolve sk_value qt.network.ssl: QSslSocket: cannot resolve SSL_library_init qt.network.ssl: QSslSocket: cannot resolve SSL_load_error_strings qt.network.ssl: QSslSocket: cannot resolve SSL_get_ex_new_index qt.network.ssl: QSslSocket: cannot resolve SSLv3_client_method qt.network.ssl: QSslSocket: cannot resolve SSLv23_client_method qt.network.ssl: QSslSocket: cannot resolve SSLv3_server_method qt.network.ssl: QSslSocket: cannot resolve SSLv23_server_method qt.network.ssl: QSslSocket: cannot resolve X509_STORE_CTX_get_chain qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf qt.network.ssl: QSslSocket: cannot resolve SSLeay qt.network.ssl: QSslSocket: cannot resolve SSLeay_version qt.network.ssl: QSslSocket: cannot call unresolved function SSLeay qt.network.ssl: Incompatible version of OpenSSL VBoxManage: error: Locking of attached media failed. A possible reason is that one of the media is attached to a running VM VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component SessionMachine, interface IMachine MerConnection: "Failed to start virtual machine \"Sailfish OS Build Engine\"" VBoxManage: error: Locking of attached media failed. A possible reason is that one of the media is attached to a running VM VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component SessionMachine, interface IMachine MerConnection: "Failed to start virtual machine \"Sailfish OS Build Engine\"" VBoxManage: error: Locking of attached media failed. A possible reason is that one of the media is attached to a running VM VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component SessionMachine, interface IMachine MerConnection: "Failed to start virtual machine \"Sailfish OS Build Engine\"" ---[snip] Regarding "Another instance for VM "Sailfish OS Emulator 3.1.0.12" already exists": I had to install/remove several times to get it in a semi-working state. One of those times I manually removed the ~/SailfishOS and ~/.config/SailfishOS- SDK and ~/.config/VirtualBox directories, but apparently that wasn't enough..? Any idea on how to get this thing movin' will be much appreciated. -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] How to use Insomniac?
On Wednesday 14 October 2015 23:29:22 Thomas Tanghus wrote: > Sorry, no docs at all but it works mostly like a Timer component. OK, a little documentation ;) https://github.com/tanghus/kitchen-timer-qml/blob/master/src/insomniac/insomniac.cpp#L99 -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] SDK version 1510 (1.1.9) is released
On Friday 09 October 2015 10:22:25 Martin Kampas wrote: > SDK IDE (Qt Creator): > - Updated icon reference documentation > - Updated Notification API documentation > - Updated DBus API documentation > - Added Configuration (DConf) API documentation Somehow the "unfoldability" of the Silica reference has gone AWOL in the process. As in you can't unfold the reference to see the different entries, but only go directly to the main page. If it doesn't get scrubbed by the mailing list software, you can see it in the attached screenie. -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] How to use Insomniac?
On Wednesday 14 October 2015 10:39:40 Andrey Kozhevnikov wrote: > i think just one day nemomobile-keepalive qml plugin will be allowed for > harbour. That would indeed be ideal. > >On Saturday 03 October 2015 10:46:05 jollail...@gmail.com wrote: > >> Thank you! I'll try that when I get on the computer. I think I > >> > >>misunderstood > >> > >> the whole "drop-in replacement"-thing, seems like I have a lot to > >> > >>learn. > > > >I would also prefer to make libinsomniac a real "drop-in > >replacement"-thing ;) > >as apparently quite a few people are using it by now, but I don't think > >that's > >possible with the current Harbour rules? > > -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] How to use Insomniac?
On Saturday 03 October 2015 10:46:05 jollail...@gmail.com wrote: > Andrey Kozhevnikov kirjoitti la lokakuuta 3 12:32:09 2015 GMT+0300: > > > You can just check sources one more time and more carefully :) > > > > https://github.com/tanghus/kitchen-timer-qml/blob/master/rpm/harbour-kitch > > entimer.spec#L9-L11 > > > > > Thank you! I'll try that when I get on the computer. I think I misunderstood > the whole "drop-in replacement"-thing, seems like I have a lot to learn. I would also prefer to make libinsomniac a real "drop-in replacement"-thing ;) as apparently quite a few people are using it by now, but I don't think that's possible with the current Harbour rules? PS: I wish I'd named it better now that others are using it, but I couldn't find a better name from the top of my head ;) -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] How to use Insomniac?
On Friday 25 September 2015 15:58:28 jollail...@gmail.com wrote: > Maybe I am just too tired, but I don't understand what I should be looking > for in the kitchentimer.pro file. I'll look at it more tomorrow I'm not quite sure how this works, but in /rpm/harbour-simplestopwatch.yaml try to add under "Files:": - '%{_datadir}/%{name}/lib/harbour/simplestopwatch/insomniac' - '%{_datadir}/%{name}/lib/harbour/simplestopwatch' - '%{_datadir}/%{name}/lib/harbour' At least that's how it looks in my setup. -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] How to use Insomniac?
On Friday 25 September 2015 14:21:36 jollail...@gmail.com wrote: > I tried to import Insomniac to my Simple Stopwatch by copying the files from > https://github.com/tanghus/kitchen-timer-qml/tree/master/insomniac to > simplestopwatch/src/insomniac, replacing kitchentimer in the files with > simplestopwatch and finally using 'Add Existing Files...' in the IDE (plus > writing 'import harbour.simplestopwatch.insomniac 1.0' to the QML file). > Well, it doesn't work, building the project fails. How do I correctly > import the plugin to my project? In harbour-simplestopwatch.pro remove or comment out the line "CONFIG += sailfishapp". From the top of my head I can't see any other errors, other than that you don't need to also add folderlistmodel, display.h/cpp and qmlsettings.h/cpp unless you need need them. The Insomniac plugin doesn't need them. -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Notifications API
On Monday 30 June 2014 08:30:38 Thomas Amler wrote: > Be aware, that nemomobile notifications API ist not allowed in harbour > at the moment. At https://together.jolla.com/question/107684/changelog-119eineheminlampi/ under *sdk-harbour-rpmvalidator*: * [conf] Allow Nemo notifications, fixes JB#15014 * [conf] Allow org.nemomobile.notifications > Am 29.06.2014 17:54, schrieb Jonni Rainisto: > > https://github.com/nemomobile/mlite/blob/master/src/mnotification.h > > https://github.com/nemomobile/nemo-qml-plugin-notifications > > -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Apps own icon?
This may be a total n00b question, but I couldn't find anything about it: I want to show my apps icon in the About page - how do I access it? -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Apps own icon?
Hi Michael On Wednesday 22 July 2015 15:04:16 Michael Neufing wrote: You can access the icon using something like image://theme/harbour-yourapp as source. Excellent! Hope this helps. Indeed it does :) -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Flattr support enabled in Jolla Harbour and Jolla Store!
On Thursday 18 June 2015 12:09:37 Iekku Pylkka wrote: Ahoy, Kind reminder from Harbour QA team: If you are only adding your flattr user name, there's no need to upload binary. All incoming binaries will be tested and it will slow down approvals a lot. Same applies to all information changes, no need to upload binary. Thank you :) I only added my flattr user name and submitted it. Didn't upload a binary, but still got my apps rejected: App rejected Hi, If you are only adding your flattr user name, there's no need to upload binary. All incoming binaries will be tested and it will slow down approvals a lot. Same applies to all information changes, no need to upload binary. Thank you :) Best regards, Jere and: Hello, It seems the only update here is the flattr username. If you are only adding your flattr user name, there's no need to upload binary. All incoming binaries will be tested and it will slow down approvals a lot. Same applies to all information changes, no need to upload binary. However, the app got rejected because it has the same RPM version number as the previous one, which has to be incremented. Please find more information in our faq at https://harbour.jolla.com/faq#2.17.0. If you have any question don't hesitate to contact us at developer- c...@jolla.com. Best regards, Aida Have a nice Juhannus! [0] Br, Iekku from Developer Care [0] https://en.wikipedia.org/wiki/Midsummer -Original Message- From: devel-boun...@lists.sailfishos.org [mailto:devel- boun...@lists.sailfishos.org] On Behalf Of Karl Granström Sent: 18. kesäkuuta 2015 11:38 To: Sailfish OS Developers Subject: [SailfishDevel] Flattr support enabled in Jolla Harbour and Jolla Store! Dear Developers, We are happy to introduce Flattr in Jolla Store and Jolla Harbour! Some of you have already noticed the implementation of Flattr in our development roadmap [0]. The Jolla Store backend and client support have been released in the latest OS update Aaslakkajärvi [1], and we have just deployed Jolla Harbour support for Flattr earlier today. In case you aren't familiar with Flattr [2], it is a micro donation service where consumers can donate money to content creators, e.g. app developers. With the Flattr icon prominently displayed in the description of your app [3], your users and fans can easily reach your Flattr profile and show their support through donations. To enable this, you need to first register for a Flattr account [4]. After that, please add your Flattr username and link to your app website to harbour application submission page, and submit the changes to QA. Setting up the Flattr account is free. For each donation, Flattr keeps 10% and you receive 90%. Jolla does not take any of the funds. For more details, please refer to the FAQ in Jolla Harbour [5], as well as the Flattr FAQ [6]. We hope you will find this a useful and flexible way to support your Sailfish OS development work. Thank you for your continued contributions to the Sailfish OS platform and community! On behalf of Jolla Store/Harbour team [0] https://sailfishos.org/developmentroadmap/ [1] https://together.jolla.com/question/95125/changelog-116aaslakkajarvi/ [2] https://flattr.com/ [3] https://twitter.com/capricotwi/status/611188750505373696/photo/1 [4] https://flattr.com/register [5] https://harbour.jolla.com/faq#Flattr [6] https://flattr.com/support/faq ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ApplicationWindow.activate() does nothing
On Tuesday 16 June 2015 10:51:29 Simo Piiroinen wrote: On Tuesday, June 16, 2015 12:25:09 AM Thomas Tanghus wrote: On Friday 12 June 2015 12:47:42 coderusin...@gmail.com wrote: check mce dbus. There is should be a method bot unblanking screen. Been away since Friday, but req_display_state_on looks like the one. Hi, the rule of thumb is: User turns display on, apps can keep it from turning off. Now, if you still absolutely need to turn display on, then note that: Thanks a lot for preventing me from pursuing the wrong path, Simo. When I get the time to work on it again, I guess it will be 2) in lieu of 4) - but first I have to make a successful dbus call :D * Explicit display state requests like req_display_state_on, should be avoided - they can cause subtle problems and/or easily end up ignored altogether * Getting display to turn on does not mean the ui can be shown if the display/device is locked Least problematic way depends on what the app is/does - terms of similarity to sw existing on the device: 1) Just show something on screen if applicable, no user interaction i.e. notification banners and such Start notification type blanking policy exception for relatively short period that is not extended due to touch interaction - display comes up during that period when/if sensor states etc allows it com.nokia.mce.request.notification_begin_req(context, 2500, 0) The context needs to be a string that is unique enough within the process that is using it. If process exits, the exception state is automatically canceled, so these can't really be tested with dbus-send like. The mcetool utility can be instructed not to exit when done, so something like mcetool --begin-notification=foo,5000,1000 --block works. Note that the app should do this even if the display happens to be on to make overlapping notifications work as expected (mce blanks display only if it was off at start of the 1st notification). 2) Prompt something simple from user i.e. likes of usb mode selection, headset volume warning, etc Start notification exception with long enough time for user to understand what is happening, optionally extend the duration on touch interaction (if user needs to type lock code or something) com.nokia.mce.request.notification_begin_req(context, 15000, 2500) When done, terminate exception but (optionally) keep the display on for a while longer to give user a chance to continue with something else without display blanking in between com.nokia.mce.request.notification_end_req(context, 2500) 3) Novel call like ui incoming call: com.nokia.mce.request.req_call_state_change(ringing,normal) answered/outgoing call: com.nokia.mce.request.req_call_state_change(active,normal) call ended: com.nokia.mce.request.req_call_state_change(none,normal) The display should turn on/off just like with normal calls. The call state tracking uses sender identification too, so several processes can at least in theory do this without interfering with each other. And state gets canceled automatically when process drops from system bus, so dbus-send co will not work. 4) Novel alarm like ui I guess to get this working properly it would need some new logic in timed and/or mce. But the notifiction methods should work to some extent. Hope this helps. simo -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ApplicationWindow.activate() does nothing
On Tuesday 16 June 2015 15:27:15 Richard Grooff wrote: Apps can keep it from turning off: req_display_blanking_pause and when app closes: req_display_cancel_blanking_pause. Thanks Richard, but I don't want it to stop blanking, as the alarms can be up to 1 hour; I rather want it to unblank when the time has passed. Otherwise it would drain too much on the battery. I use it in harboud-hud version openrepos. Do you have your code publicly available, so I could see an example on how to use it? Regards, Richard /Thomas On Tue Jun 16 17:01:13 2015 GMT+0200, Thomas Tanghus wrote: On Tuesday 16 June 2015 10:51:29 Simo Piiroinen wrote: On Tuesday, June 16, 2015 12:25:09 AM Thomas Tanghus wrote: On Friday 12 June 2015 12:47:42 coderusin...@gmail.com wrote: check mce dbus. There is should be a method bot unblanking screen. Been away since Friday, but req_display_state_on looks like the one. Hi, the rule of thumb is: User turns display on, apps can keep it from turning off. Now, if you still absolutely need to turn display on, then note that: Thanks a lot for preventing me from pursuing the wrong path, Simo. When I get the time to work on it again, I guess it will be 2) in lieu of 4) - but first I have to make a successful dbus call :D * Explicit display state requests like req_display_state_on, should be avoided - they can cause subtle problems and/or easily end up ignored altogether * Getting display to turn on does not mean the ui can be shown if the display/device is locked Least problematic way depends on what the app is/does - terms of similarity to sw existing on the device: 1) Just show something on screen if applicable, no user interaction i.e. notification banners and such Start notification type blanking policy exception for relatively short period that is not extended due to touch interaction - display comes up during that period when/if sensor states etc allows it com.nokia.mce.request.notification_begin_req(context, 2500, 0) The context needs to be a string that is unique enough within the process that is using it. If process exits, the exception state is automatically canceled, so these can't really be tested with dbus-send like. The mcetool utility can be instructed not to exit when done, so something like mcetool --begin-notification=foo,5000,1000 --block works. Note that the app should do this even if the display happens to be on to make overlapping notifications work as expected (mce blanks display only if it was off at start of the 1st notification). 2) Prompt something simple from user i.e. likes of usb mode selection, headset volume warning, etc Start notification exception with long enough time for user to understand what is happening, optionally extend the duration on touch interaction (if user needs to type lock code or something) com.nokia.mce.request.notification_begin_req(context, 15000, 2500) When done, terminate exception but (optionally) keep the display on for a while longer to give user a chance to continue with something else without display blanking in between com.nokia.mce.request.notification_end_req(context, 2500) 3) Novel call like ui incoming call: com.nokia.mce.request.req_call_state_change(ringing,normal) answered/outgoing call: com.nokia.mce.request.req_call_state_change(active,normal) call ended: com.nokia.mce.request.req_call_state_change(none,normal) The display should turn on/off just like with normal calls. The call state tracking uses sender identification too, so several processes can at least in theory do this without interfering with each other. And state gets canceled automatically when process drops from system bus, so dbus-send co will not work. 4) Novel alarm like ui I guess to get this working properly it would need some new logic in timed and/or mce. But the notifiction methods should work to some extent. Hope this helps. simo -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ApplicationWindow.activate() does nothing
On Friday 12 June 2015 12:47:42 coderusin...@gmail.com wrote: check mce dbus. There is should be a method bot unblanking screen. Been away since Friday, but req_display_state_on looks like the one. Hard to find any real documentation on mce other than searching github etc. I've never tried programming anything using dbus. I've read a bit up on it now :) -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ApplicationWindow.activate() does nothing
It still does nothing. And anyways when being in ApplicationWindow context it shouldn't be necessary? On Friday 12 June 2015 02:20:15 coderusin...@gmail.com wrote: you should call app.activate() The documentation says: activate() Brings the application in full-screen mode to the foreground. But absolutely nothing happens when I call it. Is anybody using it successfully? https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/harbour-kitchen timer.qml#L271 -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Problem with playing sounds in first application
I did ;) On Friday 12 June 2015 10:45:59 coderusin...@gmail.com wrote: You check it first. Implementation may vary in different OSes On Friday 12 June 2015 02:21:10 coderusin...@gmail.com wrote: Please use SoundEffect class for that: I did that originally, but on request I have added the option to select a custom sound file, and I don't wanna limit users to wav files. Also the SoundEffect docs says: If low latency is not important, consider using the MediaPlayer or Audio types instead, since they support a wider variety of media formats and are less resource intensive. -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ApplicationWindow.activate() does nothing
On Friday 12 June 2015 10:04:18 coderusin...@gmail.com wrote: Works for me flawlessly. Weird. Do you have a link to an example? If you’re using Emulator just ignore bugs you founding. I always deploy as RPM on the phone. Sent from Windows Mail It's really not good for mailing lists. I spend more time formatting the reply than actually replying :P It still does nothing. And anyways when being in ApplicationWindow context it shouldn't be necessary? On Friday 12 June 2015 02:20:15 coderusin...@gmail.com wrote: you should call app.activate() -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ApplicationWindow.activate() does nothing
Firstly: *Sorry for the noise* On Friday 12 June 2015 10:46:56 coderusin...@gmail.com wrote: What example you want? For me just appWindow.activate() works. Forget it. I haven't touched the code for over a year, so I had forgotten that there are two places where the alarm could be triggered depending on the precision of libiphb. Sadly it only works when the display is on, not when waking up from deep sleep. I wonder if there's a way to activate the display? Again, sorry for bothering you with my own bad memory :P And I have no idea what wrong with my mail. Using builtin Win8.1 mail client. The HTML mails doesn't support proper quoting as seen in this reply. I can probably get around that by setting my MUA up to only show HTML for certain addresses. I recently had to do a fresh install on a new PC, as my cheap ALDI PC decided to die an untimely death; just haven't gotten around to do the final setup. Sent from Windows Mail From: Thomas Tanghus Sent: Friday, June 12, 2015 3:17 PM To: devel@lists.sailfishos.org On Friday 12 June 2015 10:04:18 coderusin...@gmail.com wrote: Works for me flawlessly. Weird. Do you have a link to an example? If you’re using Emulator just ignore bugs you founding. I always deploy as RPM on the phone. Sent from Windows Mail It's really not good for mailing lists. I spend more time formatting the reply than actually replying :P It still does nothing. And anyways when being in ApplicationWindow context it shouldn't be necessary? On Friday 12 June 2015 02:20:15 coderusin...@gmail.com wrote: you should call app.activate() -- Med venlig hilsen / Best regards Thomas Tanghus -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Problem with playing sounds in first application
On Friday 12 June 2015 02:21:10 coderusin...@gmail.com wrote: Please use SoundEffect class for that: I did that originally, but on request I have added the option to select a custom sound file, and I don't wanna limit users to wav files. Also the SoundEffect docs says: If low latency is not important, consider using the MediaPlayer or Audio types instead, since they support a wider variety of media formats and are less resource intensive. On Tuesday 03 February 2015 23:13:44 Luis Manuel Ramos Da Costa wrote: Audio { id : whipSound loops : Audio.Infinite source:qrc:/sounds/resources/sounds/whipSound.flac } That can teach me to read the ml regularly ;) The loops property isn't documented in the documentation in the SDK, so I made an ugly hack to emulate it: Audio { id: alarm; source: Qt.resolvedUrl(selectedSound); property bool forceStopped: false; function forceStop() { forceStopped = true; stop(); } onStopped: { if(loopSound !forceStopped) { play(); } else { forceStopped = false; } } } -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ApplicationWindow.activate() does nothing
Thanks, that will keep me occupied for a while :D I've never tried programming anything using dbus. On Friday 12 June 2015 12:47:42 coderusin...@gmail.com wrote: check mce dbus. There is should be a method bot unblanking screen. Sadly it only works when the display is on, not when waking up from deep sleep. I wonder if there's a way to activate the display? -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] PullDownMenu in a Dialog?
Hmm, I'm pretty sure I've already tried that. Gimme a sec and I'll try again :) On Thursday 11 June 2015 05:05:24 Kimmo Lindholm wrote: Similar things as earlier. Don't give y to Pulldownmenu, breaks. Dialogheader not in Dialog, but in child. https://gist.github.com/kimmoli/626c838174682c1f6f20 This uses SilicaFlickable as first child of dialog. -kimmo Thomas Tanghus kirjoitti to kesäkuuta 11 05:14:07 2015 GMT+0300: Hi I have a Dialog with a SilicaListView as a file picker. Now I want to have a PullDownMenu with a single MenuItem to go one level up. It kinda works, but the positioning is all messed up. Problem 1: The indicator is placed a tad below the header, so I made an ugly hack setting y: - Theme.paddingLarge;, but that's not a viable solution. Problem 2: When the menu is pulled down it appears at the height of the DialogHeader below the DialogHeader - if that makes sense? :P Is a PullDownMenu in a Dialog not supported, or am I doing something wrong? https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundSe lectDialog.qml#L58 -- Med venlig hilsen / Best regards Thomas Tanghus -- Lähetetty Jollastani ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] PullDownMenu in a Dialog?
On Thursday 11 June 2015 15:26:00 Andrey Kozhevnikov wrote: You did some weird stuff... LOL yeah probably I sent PR: https://github.com/tanghus/kitchen-timer-qml/pull/6 Thanks. It works perfectly. But imho it's better to use /[..]/ folder to navigate up and not use PullDown menu for this. So do I, but I the The Average User(TM) doesn't... P.S. I personally prefer using this: var picker = pageStack.push(Sailfish.Pickers.MusicPickerPage, {title: qsTr(Select timer ringtone)}) picker.selectedContentChanged.connect(function() { console.log(picker.selectedContent) }) Yes I saw you used a similar example here. I've marked your msg for future reference :) 11.06.2015 07:14, Thomas Tanghus пишет: Hi I have a Dialog with a SilicaListView as a file picker. Now I want to have a PullDownMenu with a single MenuItem to go one level up. It kinda works, but the positioning is all messed up. Problem 1: The indicator is placed a tad below the header, so I made an ugly hack setting y: - Theme.paddingLarge;, but that's not a viable solution. Problem 2: When the menu is pulled down it appears at the height of the DialogHeader below the DialogHeader - if that makes sense? :P Is a PullDownMenu in a Dialog not supported, or am I doing something wrong? https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundSe lectDialog.qml#L58 ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Problem with playing sounds in first application
On Tuesday 03 February 2015 23:13:44 Luis Manuel Ramos Da Costa wrote: Audio { id : whipSound loops : Audio.Infinite source:qrc:/sounds/resources/sounds/whipSound.flac } That can teach me to read the ml regularly ;) The loops property isn't documented in the documentation in the SDK, so I made an ugly hack to emulate it: Audio { id: alarm; source: Qt.resolvedUrl(selectedSound); property bool forceStopped: false; function forceStop() { forceStopped = true; stop(); } onStopped: { if(loopSound !forceStopped) { play(); } else { forceStopped = false; } } } -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Sailfishos.org site renewal!
On Friday 30 January 2015 08:04:08 Developer Care wrote: If you find any broken links, please inform us. Also kindly note that your bookmarks for the old site may have change locations or may not exist anymore. At the bottom of the Silica Reference Documentation [1] there's a link to Full list of QtQuick 2.0 types[2] which redirects to doc.qt.io[3] which gives a 404. The error is obviously in the redirect, but why not link directly? We hope you like the new SailfishOS.org! I certainly do, especially after the return of the API docs :) [1] https://sailfishos.org/develop/docs/silica/ [2] http://qt-project.org/doc/qt-5.0/qtquick/qtquick-qmltypereference.html [3] http://doc.qt.io/qt-5/qtquick-qmltypereference.html -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Dialog doesn't register taps
Hi I have a weird issue: A Dialog with two TextSwitches and a Background area, and none of them registers tapping. I've been staring myself blind for several days, so now I've gotta ask here for some more eyes ;) Link to github as it's easier to read: https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundDialog.qml#L34 -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Dialog doesn't register taps
On Wednesday 10 June 2015 16:21:24 Peter Kovacs wrote: console.log('NoSound', checked) missing ;? They are optional in Ecma/JavaScript, but I also normally use them. Especially if you are minifying JS files you have to use them or everything will break :P sound = !checked; Am 10.06.2015 16:03 schrieb Thomas Tanghus tho...@tanghus.net: Hi I have a weird issue: A Dialog with two TextSwitches and a Background area, and none of them registers tapping. I've been staring myself blind for several days, so now I've gotta ask here for some more eyes ;) Link to github as it's easier to read: https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundDi alog.qml#L34 -- Med venlig hilsen / Best regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Dialog doesn't register taps
On Wednesday 10 June 2015 16:11:14 Michael Fuchs wrote: you dont need to set the property sound (Line 70), when you are binding it to the property checked (Line 65). Are the binding two-way when assigning the value this way? maybe this helps... Sadly no, but thanks for the suggestion. Am 10.06.2015 um 16:03 schrieb Thomas Tanghus: Hi I have a weird issue: A Dialog with two TextSwitches and a Background area, and none of them registers tapping. I've been staring myself blind for several days, so now I've gotta ask here for some more eyes ;) Link to github as it's easier to read: https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundDi alog.qml#L34 -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Dialog doesn't register taps
On Wednesday 10 June 2015 19:30:09 Kimmo Lindholm wrote: my 5 cents... SilicaFlickable had no width and no contentHeight, that’s why it propably didn’t work. That sounds reasonable. For now it's so short that it still fits in landscape, but I'll mark this msg for reference if it grows :) top-anchors don’t work inside a column. Yup, found out and removed them. Haven't touched QML for a year, and then it was the first time, so kinda re-learning the basics. images with img inside label text ? Yeah, it's ugly, but didn't know what else to use. Maybe bc I only looked in the Silica reference as Image seems to be the obvious choice *facepalm* Thanks for your input :) put DialogHeader inside flickable (AFAIU) and anchor column to its bottom. https://gist.github.com/kimmoli/1286171768835306ec6a -kimmo (Tested with gistpud) -Original Message- From: devel-boun...@lists.sailfishos.org [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Thomas Tanghus Sent: 10. kesäkuuta 2015 18:31 To: Sailfish OS Developers Subject: Re: [SailfishDevel] Dialog doesn't register taps On Wednesday 10 June 2015 16:46:15 Michael Fuchs wrote: After removing SilicaFlickable (do you need it?) it works. Your the Man! :) I honestly can't remember why I thought I needed it :P Am 10.06.2015 um 16:03 schrieb Thomas Tanghus: Hi I have a weird issue: A Dialog with two TextSwitches and a Background area, and none of them registers tapping. I've been staring myself blind for several days, so now I've gotta ask here for some more eyes ;) Link to github as it's easier to read: https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/S oundDi alog.qml#L34 ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Dialog doesn't register taps
On Wednesday 10 June 2015 16:46:15 Michael Fuchs wrote: After removing SilicaFlickable (do you need it?) it works. Your the Man! :) I honestly can't remember why I thought I needed it :P Am 10.06.2015 um 16:03 schrieb Thomas Tanghus: Hi I have a weird issue: A Dialog with two TextSwitches and a Background area, and none of them registers tapping. I've been staring myself blind for several days, so now I've gotta ask here for some more eyes ;) Link to github as it's easier to read: https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundDi alog.qml#L34 ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] PullDownMenu in a Dialog?
Hi I have a Dialog with a SilicaListView as a file picker. Now I want to have a PullDownMenu with a single MenuItem to go one level up. It kinda works, but the positioning is all messed up. Problem 1: The indicator is placed a tad below the header, so I made an ugly hack setting y: - Theme.paddingLarge;, but that's not a viable solution. Problem 2: When the menu is pulled down it appears at the height of the DialogHeader below the DialogHeader - if that makes sense? :P Is a PullDownMenu in a Dialog not supported, or am I doing something wrong? https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundSelectDialog.qml#L58 -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] QML arrays and memory leak
On Monday 04 May 2015 22:20:17 Kim Foder wrote: Hi For some time I have been battling a memory leak in my pedometer app, after a lot of experimentation, I have found the problem to be my use of arrays (probably)! Whenever I receive an acceleration measurement, some statistical calculations are made, which results in one float pr. measurement. As I need the measurements for a certain time for further statistical analysis, the results are stored in an array, used as an traveling window like this: accarr.shift(); // the array is pre-initialized with empty elements. accarr.push(float); This works great, but it leaks memory fast, and after some time (between 1 2 hours) the OS kills all running apps! Any ideas how I can solve this? Do you remove the obsolete values from the array? You don't show that in the code snippet. -- Med venlig hilsen / Best regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] How to get feedback from Harbour users ?
On Friday 05 December 2014 16:36 Franck Routier wrote: Hi, I just realized a comment was made on my app by a user 3 months ago. I just missed it. I don't have so many users :-) so I have to be reactive ! So here is my question: is there an option to get comments made on my apps forwarded to an email address (or at least an alert telling me there is something to read) ? Really a must have! Who goes thru the comments on the store each day? I don't wanna seem unresponsive, but to give my users the impression I'm improving my apps - and actually get hints for doing it - shouldn't require going thru comments regularly. Also an integration with various VCS/issue (bug) tracking systems would greatly improve apps. Or at least a standardized way of committing issues/requests/bug reports. I link to the github issue trackers in my apps, but without a standardized way of doing that, ppl don't realize the option. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Qt 5.2 in devel
On Monday 07 July 2014 20:37 Robin Burchell wrote: This might sound strange and all, but do realize that we are probably one of the most extensive users of the Qt stack (in that we literally use pretty much all of it) and certainly one of the most extensive users of QtQuick QML. We¹re a pretty good stress-test for finding corner cases, so we need to be careful. Next to KDE Frameworks 5 :) Not officially released yet though. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Follow up on faenil's topics in Community meeting 24.04.2014 @ 10:00 UTC
On Thursday 26 June 2014 07:35 Eric Le Roux wrote: Hence my point... Cheers, Eric Eric, you *really* need to use a MUA that can do proper quoting. I have no idea what was you answer here. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] was Acceptable Behaviour.. -- Forum
On Monday 26 May 2014 10:18 Luca Donaggio wrote: +1 for keeping this ML and (eventually) improving TJC. Personally, TJC currently suffers of one big drawback, which is not even technical: it is perceived more as a generic issue-reporting / feature-requesting tool than anything else. Developer related questions have always been reported on this ML first, and later on TJC mainly when it resulted in a bug of some sort. I'm not against forums, I just can't afford following another on-line source, two is more than enough for my (limited I must admit) spare time :-) Also a +1 from me. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Acceptable Behaviour Guidelines - you decide
On Thursday 22 May 2014 15:18 David Greaves wrote: There's been enough noise on this mailing list recently that some people have felt they don't want to participate. We need to be careful about over-policing discussions but there is such a thing as under-policing too. How would we (community, not Jolla) determine the line? and what measures do we think should be taken? Lorn pointed to this as a useful document: http://www.kde.org/code-of-conduct/ FWIW I personally don't think there's anything happened recently that I would actually take action over. My delete key works fine and history shows that sometimes cries for help come in strange forms. David/lbt PS This thread is for generic guidelines - please keep any specific issues out of it. I think grievances about the community or Jolla should be allowed to a certain degree. Non-relevant personal attacks and/or trolling should not be allowed though. These things won't happen often - if they do there is something wrong that should solved instead. Communication is vital for a community to survive. Personally I've just left another community, that has been very important for me for 2½ years, for the lack of same. KDEs CoC is an excellent skeleton to use btw. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Acceptable Behaviour Guidelines - you decide
On Saturday 24 May 2014 15:25 Thomas Tanghus wrote: PS This thread is for generic guidelines - please keep any specific issues out of it. I forgot to mention that I much prefer a mailing list instead of a forum. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] was Acceptable Behaviour.. -- Forum
On Saturday 24 May 2014 17:32 Thomas B. Rücker wrote: That sounds like you don't have a good grip on your mailbox. But let me pick apart your arguments below, one by one, just because I'm in the mood. OK, one down-side to mailing lists: there are no Like, Thanks, +1 or the likes of it buttons - I would really have used that now :D -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Acceptable Behaviour Guidelines - you decide
On Saturday 24 May 2014 21:30 Stefano Mosconi wrote: PS This thread is for generic guidelines - please keep any specific issues out of it. I think grievances about the community or Jolla should be allowed to a certain degree. Non-relevant personal attacks and/or trolling should not be allowed though. Hi, I believe that when there is something wrong (anywhere in the world) it's good to point that out and discuss it as much as possible. Only by analyzing what went wrong and how it could have gone better we (as human beings, community, companies) can improve. Discussing means (to me) trying to understand the facts, the emotions, and the assumptions on how it should have been and then find a way forward. Discussion implies an exchange of information (so it's not a I talk when you are done talking but a I listen while you talk and then I will talk back on the same topic (but stay with me please)). Personal attacks or trolling are of course not constructive discussion and usually just because personal attacks and trolling are not a discussion at all (you need at least 2 to tango). Goes without saying. These things won't happen often - if they do there is something wrong that should solved instead. Communication is vital for a community to survive. And when they happen they are halting the whole community for a long amount of time and focusing the eyes of the community on that. The community gets halted even longer without proper communication, meanwhile drying out a barely budding ecosystem - did that nature analogy go too far? ;) From the recent event - after reading endless emails, tweets, IRC logs etc. - I can only deduct, based on what was revealed, that it was personal issues. Still I don't think Jolla has handled it very well. Let me give you an example of dealing with such matters. I am aware that you don't have the resources to be as thorough, but you should - must - have the resources to be as open (github may have their flaws, but non-disclosure doesn't seem to be one of them): https://github.com/blog/1826-follow-up-to-the-investigation-results I refrain from proposing (even without a Jolla hat) how I would generally handle trolling. I let you guys figure it out, it's a pretty well known problem with well known solutions tested for centuries. As I am very new in this community I don't even know if this ml has a moderator, but obviously there should be one. In general moderation should be off, and only turned on when really needed. In such situations it is not an easy and often not appreciated role to have. It should preferably be a well-trusted and of course non-partisan community member, but in a community with a commercial backing such a person is even harder to find. As per the tools I think the tools are not so relevant as long as the community finds its way to discuss. Personally I don't love forums but that is only my preference, as I don't like pizza with pineapple. I loathe both of them ;) -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Discrimination and abuse from Jolla employee Thomas Perl
On Thursday 22 May 2014 21:24 Ove Kåven wrote: On 22. mai 2014 15:05, Jarko Vihriala wrote: This is not about sweeping dust but please take your epistola to some other channel. I would rather this thread continued right here. As an owner of a preordered Jolla phone, and as an app developer, I'm quite interested in the behaviour and ethics of the company I have been supporting with both my money and my programming efforts. Seconded You could argue that this kind of thing should be on a mailing list without devel in its name, and that I could subscribe to that. This is a developer list, and an independent developer is having an issue with Jolla Oy/a Jolla employee and have had insufficient response going through the official channels, so I believe this is the proper place. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] App rejected...
Last time I tried linking to libiphb wasn't allowed, so I made a qml plugin including it instead: https://github.com/tanghus/kitchen-timer-qml/tree/master/src/insomniac Not sure if the harbour rules have changed since that. On Monday 28 April 2014 23:41:47 Arvid Fahlström Myrman wrote: I have been strugeling to find a way to get Qt5SystemInfo to expose me when the device is locked so I could stop the timer and then start it again when the device is unlocked. nemo-keepalive (https://github.com/nemomobile/nemo-keepalive) exposes a DisplayBlanking.status property with which you can detect when the device is locked. If you're interested, I've written a custom qmake project file to make it possible to install the plugin to a custom location without having to make any changes to the actual nemo-keepalive project. You can find it here: https://gist.github.com/BeholdMyGlory/9662866. If you want to use it, make sure that you've checked out the nemo-keepalive repository as well as libiphb (https://github.com/nemomobile/libiphb), and place the project file in the directory directly above the two repositories. Then set your main project file to use the subdirs template and add nemo- keepalive.pro to the SUBDIRS variable. Don't forget to substitute PROJECT_NAME_HERE with your own project's name (sans 'harbour-') at lines 8 and 14 in nemo-keepalive.pro as well as the first line in the qmldir file. You may need to install libiphb separately to your build environment in order for some header files to be found properly. Regards, Arvid ___ SailfishOS.org Devel mailing list -- Best regards / Med venlig hilsen Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Warning: File `Makefile' has modification time 0.51 s in the future
On Monday 14 April 2014 14:49 Chris Walker wrote: I installed the ntp client and it now picks up network time. I'm assuming therefore that there is some time 'slip' between the host machine and VBox. I had the same problem and now run ntpdate from cron.daily. Turns out my PCs clock loses ~5 seconds(sic!) for every 24h :( -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] app OrganizationName and harbour
On Saturday 05 April 2014 18:02 Kaj-Michael Lang wrote: Hi Got denied application update as I set my org name properly with app-setOrganizationName() but that lead to a application update rejection as then the path given from QStandardPaths::writableLocation(QStandardPaths::CacheLocation) is not in the format harbour likes. After much digging and finally looking into SailfishApp sources it seems that I'm not even supposed to set the orgname myself, as it sets, unlogicaly, the orgname to appname, and in my mind that feels a a bit strange. Anyway, this took a while for me to find out and it is not mentioned in the harbour FAQ, might be good to add it. This sounds to me like yet another example of the consequences of moving from the reverse FQDN to the 'harbour-*' prefix. I have ranted about this decision before; it really seemed like a rushed let's ship this decision which ends up biting you in your behind on so many unforeseen areas. People are talking about banning apps with 'harbour-*' prefix, and the original issue that it's a first to the mill approach. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] app OrganizationName and harbour
On Saturday 05 April 2014 17:57 Thomas Perl wrote: So yeah, the 1990s called and want their directory name restrictions back - and that is the reason why a non-dotted naming scheme was chosen, and a prefix used for namespacing instead (having a separate RPMDB for third party apps or a separate package system would of course also be a possibility, but you can’t just pull that out of thin air, so of course time pressure was also a factor there). In the end, I’m now very content with the “harbour-“ prefix, it lets you immediately spot third party app data in your $HOME by “find”ing harbour-* directories, and on the command line, typing harbour-tab lists all third party apps, plus “rpm -qa | grep ^harbour-“ lists all installed third party RPMs, grep for “harbour-“ in the process list, etc, etc… (this wouldn’t have been possible in such a convenient way with FQDNs). I realize it's not up for discussion at this point, but I must admit that I find the argumentation to be ... questionable, so I'll vent my frustrations nonetheless. Qt is - as far as I understand - much more open for changes nowadays, otherwise KDE Frameworks 5 wouldn't have dropped so many of their own implementations that they have now gotten integrated in Qt. I'm pretty confident they would be open for stepping into the current millennium regarding directory naming, and process table grepping/tab-expansion is hardly an argument for implementing a naming scheme which I consider fundamentally flawed. Directory path resolving for cleaning up is of course an issue, and XDG compliance is a must, but that should be fairly easily solved by enforcing the naming scheme - as it is now, just not very cleverly. I don't know much (anything) about android apps, but they seem to have a well defined policy for this. I addressed this in[1] with no response; probably because I only saw that thread after the decision had been enforced. As usual a disclaimer: I know next to nothing about packaging, and I'm just an amateur and not very skilled coder. In fact this is the first time I'm made mobile apps (counting out WAP eons ago). [1] https://lists.sailfishos.org/pipermail/devel/2013-November/001523.html -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Harbour rules: request loading libraries from own folders, do not impose rules on the *source code*
On Thursday 27 February 2014 22:21 Martin Kolman wrote: 27.2.2014 22:10, Artem Marchenko: - Let's not mandate the source code to use particular import form - You can still keep the warning as information for the developer and alert for the Harbour tester to check that this or that plugin is loaded exactly from app folders, but it shouldn't fail the validation. +1 from me on this! BTW, I'll just add another usecase - QML only modules. You might not want to use absolute paths in every QML file using a set of components (import ../my-shiny-module), so you make it to a proper module with qmldir and everything and add the folder it is in to QML import path. Voila, you can just use import shiny 1.0 I am *very* much for this proposal. That way I don't have to maintain several copies of the same qml module, but can use a git submodule and just update it when needed. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Starting point for building packages
On Friday 28 February 2014 00:20 Artem Marchenko wrote: Also sailfish has quite strict rules on what can be used from where and what can be deployed where Jolla Harbour has very strict rules would be more correct ;) -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] how can I translate the application name
On Wednesday 19 February 2014 12:38 itviewer wrote: Hi all, If I want my application to be Internationalization ,how can I translate the application name? I know the “Name”defined in the .desktop-Files is shown in the application launcher as the application name, But how can I translate it for Internationalization ? As example for Danish translations for one of my apps: Name=Currency Converter Name[da]=Valutaomregner -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] how can I translate the application name
On Wednesday 19 February 2014 12:39 Andrey Kozhevnikov wrote: Wow! What a silly man? Please, even when answers are wrong, let's keep a decent tone here. http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-lates t.html On 19.02.2014 11:20, maledictusdema...@gmail.com wrote: You should not translate application name Wed Feb 19 2014 07:38:48 GMT+0300 (FET) получено от itviewer: Hi all, If I want my application to be Internationalization ,how can I translate the application name? I know the “Name”defined in the .desktop-Files is shown in the application launcher as the application name, But how can I translate it for Internationalization ? -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to hide pushup menu?
On Tuesday 11 February 2014 15:16 Timur Kristóf wrote: If setting the PushUpMenu's visible to false doesn't work, that sounds like a bug to me. That's also what the docs say: https://sailfishos.org/sailfish-silica/sailfish-application-pitfalls.html#disabled-pulley-menus On Thu, Jan 23, 2014 at 11:35 AM, Tero Siironen izer...@gmail.com wrote: I have PushUpMenu in my app which currently has only one item, and in some situations also that item should not be visible. How can I hide the menu? I tried to set MenuItem's visibility to false, but that lead to weird behaviour; PushUpMenu is still there and empty, but the empty menu can be pushed up about screen height. I also tried to use visible property in PushUpMenu, but that doesn't seem to hide the menu. Disabling the MenuItem could be one option, but as it still shows the item's label it would be a bit misleading for the user in my situation. I would prefer to hide the whole PushUpMenu when there's no items that could be used. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Preventing deep sleep for a few seconds?
On Wednesday 05 February 2014 08:16:32 Valerio Valerio wrote: Hi, On 05/02/14 02:58, Thomas Tanghus wrote: On Monday 03 February 2014 22:58:42 Ove Kåven wrote: But for scheduled wakeups (say I want the next synchronization to occur after 6 hours), I suppose the best option is to use timed? I made a QML plugin including libiphb for that, and it did pass the harbour master ;) https://github.com/tanghus/kitchen-timer-qml/tree/master/src/insomniac Didn't checked your code carefully but this is probably not sufficient, if the device enters late suspend the timers will stop unless you use the keepalive apis (unfortunately not suited for harbour yet): https://github.com/nemomobile/nemo-keepalive As I use it in the kitchen-timer app any normal QML timers are stopped when the app is no longer visible, and the Insomniac timer (using the libiphb included) is set to wake up a few seconds before the timeout, restart timers and adjust the UI. Works flawlessly (in my tests) for waking up from deep sleep. -- Best regards / Med venlig hilsen Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Harbour compliant way to read contacts
On Sunday 26 January 2014 20:48 Bernd Wachter wrote: Our plans for contacts are to first make all local contacts available to your applications, and then fine-tune how we're dealing with contacts from 3rd party services. Sounds like a reasonable approach. You shouldn't be blocked from your own data. But 3rd parties of course shouldn't block development of standards like CardDAV - nudge-nudge ;) -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Receiving notifications
On Saturday 18 January 2014 10:08 marko.kosc...@tisno.de wrote: That is exactly what I am looking for. I want to show errors in my ownKeepass app if the user gave e.g. a wrong password. Currently I have implemented my own banner component which should look like those from the system. - https://github.com/jobe-m/ownkeepass/blob/master/Sailfish/qml/common/InfoPo pup.qml Thanks, I'll use that for a start But having an API would be very convenient ;) Indeed, but apparently it hasn't been exposed to normal apps - yet Marko PS My first email sent from my jolla:) Revealed by the empty CC and missing In-Reply-To ;) On Fri Jan 17 2014 22:57:28 GMT+0100 (CET), Thomas Tanghus wrote: Did you ever get an answer to this? I'm mostly interested in showing app notifications on errors - I guess that's what you call banner notifications? On Wednesday 18 December 2013 15:54 Gabriel Böhme wrote: I think I need some clearification at all, what is, or better: is there a recommended way to show notifications in EventFeed and what about the banner messages? Is there an offical API yet, that I overlooked, or will there one be offered in the future? Because the question is: is this MNotification compatibility API stable/will it work/offered in the future? Thank you very much! Gabriel. -- Von meinem Nokia N9 gesendet Mike Sheldon schrieb am 18.12.13 16:30: Ah, excellent, thanks very much! On Wed, Dec 18, 2013 at 3:26 PM, Andrey Kozhevnikov coderusin...@gmail.comwrote: There is mlite5 library providing MNotification compability for lipstick, it have all features MeeGo have. On 18.12.2013 21:24, Mike Sheldon wrote: Hi, I'm currently in the process of porting Rockwatch, my Pebble smart watch application, from MeeGo to Sailfish. I've got the basics working with it communicating correctly with the watch over bluetooth, however I'm running into a bit of a problem with notifications. From what I can tell from a bit of poking around, Sailfish's notification system is based around the org.freedesktop.Notifications standard. However from what I can see looking at the documentation for this it doesn't really make any provision for multiple notification sinks/servers like MeeGo's MNotificationManager did. Is there something I'm overlooking? Or is there some other mechanism by which an application can register an interest in receiving notifications? -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] SailfishOS SDK January update available today.
On Wednesday 15 January 2014 15:24 Jarko Vihriala wrote: Provide a tool to verify that basic submission criterias are fulfilled with Harbour intake requirements. This is done from the new view called 'Harbour Tools' in Control Center. This is a really helpful addition! I assume it will be kept in sync with Harbours verification tool? -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Receiving notifications
Did you ever get an answer to this? I'm mostly interested in showing app notifications on errors - I guess that's what you call banner notifications? On Wednesday 18 December 2013 15:54 Gabriel Böhme wrote: I think I need some clearification at all, what is, or better: is there a recommended way to show notifications in EventFeed and what about the banner messages? Is there an offical API yet, that I overlooked, or will there one be offered in the future? Because the question is: is this MNotification compatibility API stable/will it work/offered in the future? Thank you very much! Gabriel. -- Von meinem Nokia N9 gesendet Mike Sheldon schrieb am 18.12.13 16:30: Ah, excellent, thanks very much! On Wed, Dec 18, 2013 at 3:26 PM, Andrey Kozhevnikov coderusin...@gmail.comwrote: There is mlite5 library providing MNotification compability for lipstick, it have all features MeeGo have. On 18.12.2013 21:24, Mike Sheldon wrote: Hi, I'm currently in the process of porting Rockwatch, my Pebble smart watch application, from MeeGo to Sailfish. I've got the basics working with it communicating correctly with the watch over bluetooth, however I'm running into a bit of a problem with notifications. From what I can tell from a bit of poking around, Sailfish's notification system is based around the org.freedesktop.Notifications standard. However from what I can see looking at the documentation for this it doesn't really make any provision for multiple notification sinks/servers like MeeGo's MNotificationManager did. Is there something I'm overlooking? Or is there some other mechanism by which an application can register an interest in receiving notifications? Thanks, Mike. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML Timer stops running
I case you're interested I've written a QML plugin including libiphb (my first attempt was rejected from harbour because I linked dynamically) that has the same properties and methods as the Timer component. In lack of a better name, I named it Insomniac ;) It's still part of my timer app[1], but I plan to factor it out, clean-up code and document it eventually. An example of it's use can be seen in my main QML file[2]. It's based on libalignedtimer[3], but I've removed any platform specific code to keep it lean. I only got it in a working state in the wee hours this morning, so it's by no means documented and I have to sort out license issues, credits etc. If you follow the harbour naming scheme it should be an almost drop-in replacement; all you have to do is change the module name in qmldir and the PROJECT variable in insomniac.pro. [1] https://github.com/tanghus/kitchen-timer-qml/tree/master/src/insomniac [2] https://github.com/tanghus/kitchen-timer-qml/blob/v0.1.2-2/qml/harbour-kitchentimer.qml#L119 [3] https://github.com/lpotter/libalignedtimer Thomas On Thursday 16 January 2014 23:24 Jens Persson wrote: So, I switched my shutdown logic to qml timers and they work just fine when the gstreamer pipeline is in paused state. And I got a bit curious so I also tested with the qml multimedia plugin and it worked just fine too. So basically all you need is one line (and one import) to make timers work in qml: Audio { source: file.mp3 } That's it. I don't know which way is the best but I know which is the laziest. Just throw in a few cool sounds to complement the obnoxious beeper. :) Greets Jens On Tue, Jan 14, 2014 at 12:32 PM, Thomas Tanghus tho...@tanghus.net wrote: That's an interesting approach :) I just might try that if it doesn't pass QA. On Tuesday 14 January 2014 07:28 Jens Persson wrote: Ok, did some fast checking now. Yes you were right, QTimer doesn't work, singleShot or not. :( But ... it works for my app because it plays audio and it works even if the gstreamer pipeline is in paused state. My app uses gstreamer directly but you can try some other (easier) way, I think there's quite a few of them. Just load an audio file and set it to paused state and timers will hopefully work just fine. Hopefully you will make it to the harbour this way. :) -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML Timer stops running
On Wednesday 15 January 2014 08:26 Jonni Rainisto wrote: Hi, For the love of ***, :D dont use libiphb every 5 seconds, that will kill batterylife for suspend (store QA will reject apps that eat battery). Its more meant to be triggered every 10, 15, 30 etc. minutes. So if you want to make 25 minute timer that works even while suspended, then you should do libiphb to wake up after 25 minutes. The reason for the 5-10 second wakeup is that I want to update cover until screen goes black, and I haven't found a way to detect that, and applicationActive doesn't do it. Maybe my search-foo looked for the wrong keywords. Or if you want to make libiphb to wake up device every 10 minutes, you can make your application to check how much time has really passed since last wakeup by checking hw clock (as that is the only clock which is updated even while beeing suspended) timestamps like this: static void tv_get_monotime(struct timeval *tv) { #if defined(CLOCK_BOOTTIME) struct timespec ts; if (clock_gettime(CLOCK_BOOTTIME, ts) 0) if (clock_gettime(CLOCK_MONOTONIC, ts) 0) qFatal(Can't clock_gettime!); TIMESPEC_TO_TIMEVAL(tv, ts); #endif } Thanks for the snippet. That will come in handy. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML Timer stops running
On Wednesday 15 January 2014 12:48 Oleksii Serdiuk wrote: On 15/01/14 11:54, Thomas Tanghus wrote: On Wednesday 15 January 2014 08:26 Jonni Rainisto wrote: dont use libiphb every 5 seconds, that will kill batterylife for suspend (store QA will reject apps that eat battery). Its more meant to be triggered every 10, 15, 30 etc. minutes. So if you want to make 25 minute timer that works even while suspended, then you should do libiphb to wake up after 25 minutes. The reason for the 5-10 second wakeup is that I want to update cover until screen goes black, and I haven't found a way to detect that, and applicationActive doesn't do it. Maybe my search-foo looked for the wrong keywords. Use Cover.status property: https://sailfishos.org/sailfish-silica/qml-sailfishsilica-cover.html#status- prop Cover.Active - the cover is visible, and the user can interact with it So (saying my covers id is 'cover') I could do: property bool visible: cover.active || applicationActive; However, when user is peeking, status property is Cover.Inactive: Minor issue compared to the code you don't have to write ;) Cover.Inactive - the cover is not active, the user cannot interact with the cover, and it is not visible unless the user is peeking -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML Timer stops running
On Wednesday 15 January 2014 18:33 Oleksii Serdiuk wrote: On 15/01/14 18:31, Oleksii Serdiuk wrote: On 15/01/14 13:16, Thomas Tanghus wrote: The reason for the 5-10 second wakeup is that I want to update cover until screen goes black, and I haven't found a way to detect that, and applicationActive doesn't do it. Maybe my search-foo looked for the wrong keywords. Use Cover.status property: https://sailfishos.org/sailfish-silica/qml-sailfishsilica-cover.html#sta tus- prop Cover.Active - the cover is visible, and the user can interact with it So (saying my covers id is 'cover') I could do: property bool visible: cover.active || applicationActive; Yes, this should work. However, I wouldn't recommend naming a property `visible` because this will hide `visible` property of core QML Item component and might lead to weird behavior. Good point. One correction, though: property bool visible: cover.status == Cover.Active || applicationActive Didn't even see that. Thanks. property bool someName: cover.status === Cover.Active || applicationActive; is a good trade-off for not seeing the time changing when peeking :) I wonder if onSomeNameChanged is being triggered when waking up from deep sleep. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list