[SailfishDevel] Saving state/config
I couldn't find any standard way of saving an apps config. Is there such a standard, or is it up to the developer to choose format and location? I'm making a *very* simple app, so only using QML/JS, and only have to save 3-4 values. As far as I could see the location should be /home/nemo/.config/appname[.ext] which could probably be accomplished better using QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) but is that possible in QML? And which format should it be in? -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Saving state/config
On Friday 15 November 2013 20:26 Andrey Kozhevnikov wrote: use QSettings as Jonni said and register own component to use in qml, if need, or export single class instance via setContextProperty The latter sounds like the easiest approach. Thanks both for your good advice. On 15.11.2013 20:24, Thomas Tanghus wrote: On Friday 15 November 2013 05:44 Jonni Rainisto wrote: import org.nemomobile.configuration 1.0 My n00bness shows again :P Will I have to add this module to my project? The SailfishOS-i486-x86 target only comes with org.nemomobile.ngf -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Saving state/config
On Friday 15 November 2013 20:50 Andrey Kozhevnikov wrote: both are easy. check Qt Assistant. examples and api reference are inside your Qt Creator ;) Forgive me for non-SailfishOS questions, but I must be doing something wrong, even if it's easy ;) My main is now: int main(int argc, char *argv[]) { QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); QSettings *settings = new QSettings(Tanghus, net.tanghus.currencyconverter.sailfish); view-rootContext()-setContextProperty(settings, settings); view- setSource(SailfishApp::pathTo(qml/net.tanghus.currencyconverter.sailfish.qml)); view-showFullScreen(); return app-exec(); } And in ApplicationWindow I can see it's instantiated: Component.onCompleted: { console.log('Ready', settings); } Prints: Ready QSettings(0x70b633a0) But if I use it like: refreshInterval = settings.value('refreshInterval', 3600).toInt(); I get: file:///opt/sdk/net.tanghus.currencyconverter.sailfish/usr/share/net.tanghus.currencyconverter.sailfish/qml/net.tanghus.currencyconverter.sailfish.qml:64: TypeError: Object [object Object] has no method 'value' I'm sure this is very trivial - but atm I'm stuck :P On 15.11.2013 20:48, Thomas Tanghus wrote: On Friday 15 November 2013 20:26 Andrey Kozhevnikov wrote: use QSettings as Jonni said and register own component to use in qml, if need, or export single class instance via setContextProperty The latter sounds like the easiest approach. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Saving state/config
Ah OK. I had missed that. It would also have been almost too easy ;) Thanks a lot for your thorough help On Friday 15 November 2013 23:39 Andrey Kozhevnikov wrote: unfortunately you cant use QSettings class this way. It have no public slots to be used from QML side. You need to write some QmlSettings class wrapper for QSettings: class QmlSettings: publicQObject ... public slots: QVariant value(const QString key); void setValue(const QString key, const QVariant value); ... private: QSettings *_settings; ... in class constructor: _settings = new QSettings(Tanghus, net.tanghus.currencyconverter.sailfish); and QVariant QmlSettings::value(const QString key){ return _settings-value(key); } void QmlSettings::setValue(const QString key, const QVariant value){ _settings-setValue(key, value); } and then you can use QmlSettings class in QML On 15.11.2013 23:32, Thomas Tanghus wrote: On Friday 15 November 2013 20:50 Andrey Kozhevnikov wrote: both are easy. check Qt Assistant. examples and api reference are inside your Qt Creator ;) Forgive me for non-SailfishOS questions, but I must be doing something wrong, even if it's easy ;) My main is now: int main(int argc, char *argv[]) { QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); QSettings *settings = new QSettings(Tanghus, net.tanghus.currencyconverter.sailfish); view-rootContext()-setContextProperty(settings, settings); view- setSource(SailfishApp::pathTo(qml/net.tanghus.currencyconverter.sailfish .qml)); view-showFullScreen(); return app-exec(); } And in ApplicationWindow I can see it's instantiated: Component.onCompleted: { console.log('Ready', settings); } Prints: Ready QSettings(0x70b633a0) But if I use it like: refreshInterval = settings.value('refreshInterval', 3600).toInt(); I get: file:///opt/sdk/net.tanghus.currencyconverter.sailfish/usr/share/net.tangh us.currencyconverter.sailfish/qml/net.tanghus.currencyconverter.sailfish.q ml:64: TypeError: Object [object Object] has no method 'value' I'm sure this is very trivial - but atm I'm stuck :P On 15.11.2013 20:48, Thomas Tanghus wrote: On Friday 15 November 2013 20:26 Andrey Kozhevnikov wrote: use QSettings as Jonni said and register own component to use in qml, if need, or export single class instance via setContextProperty The latter sounds like the easiest approach. ___ SailfishOS.org Devel mailing list -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Saving state/config
On Friday 15 November 2013 14:27 Jonni Rainisto wrote: Yes your .spec file should have following line if you want to use the plugin: Requires: nemo-qml-plugin-configuration-qt5 I went with the QSettings wrapper as proposed by Andrey, but this is certainly good to know for further development. I've learned from the community a lot since I decided to awake my dormant Plasma widget Wednesday night :) QML/Silica makes creating apps a breeze once you know your way around it :) From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Thomas Tanghus [tho...@tanghus.net] Sent: Friday, November 15, 2013 4:24 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Saving state/config On Friday 15 November 2013 05:44 Jonni Rainisto wrote: import org.nemomobile.configuration 1.0 My n00bness shows again :P Will I have to add this module to my project? The SailfishOS-i486-x86 target only comes with org.nemomobile.ngf -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
[SailfishDevel] Built-in icon theme?
In the example in the SDK, there are two examples of built-in icon, theme/icon-cover-next and theme/icon-cover-pause. Are there any other built-in cover icons that can be used? -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] ContextMenu inside a PullDownMenu
I'd make a page for that: PullDownMenu { MenuItem { text: 'Settings' onClicked: pageStack.push(Qt.resolvedUrl('Campuses.qml')) } } And then have a SilicaListView with the campuses in Campuses.qml. On Tuesday 26 November 2013 20:32 Lauri Lavanti wrote: Okay. The use case is, that I have a simple setting (the campus the user's on) and I'd like to have him be able to change it on the fly from a simple list, even though it doesn't need to be visible all the time -- Lauri Lavanti laurilava...@gmail.com -- Lähettäjä: Martin Jones Lähetetty: 27.11.2013 3:28 Vastaanottaja: Sailfish OS Developers Aihe: Re: [SailfishDevel] ContextMenu inside a PullDownMenu Hi, This will not work and I can’t imagine this case being made to work in the future. The pulley menus are designed to be pulled down to highlight an option and released to select. A ContextMenu/ComboBox inside a pulley menu is incompatible with the interaction design of the pulley menu. Perhaps you could explain the use case you’re trying to accomplish and we could suggest an alternative, or pass some feedback on to our designers. Best Regards, Martin. On 26 Nov 2013, at 10:07 pm, Lauri Lavanti laurilava...@gmail.com wrote: Hi, I’m hoping I’m not the only one who’s been trying something like this and even more so I hope there’s a solution for it: I’ve been trying to get a ContextMenu inside the PullDownMenu with code like this: PullDownMenu { MenuItem { ComboBox { width: *page*.width label: Kampus: menu: ContextMenu { id: *menu* Repeater { model: [Kaikki, Otaniemi, Töölö, Arabia , Kumpula, Keskusta, Kallio, Viikki] MenuItem { text: modelData onClicked: { *kampus* = modelData } } } } } } Buut, it doesn’t do anything when selected, another thing I did was try to replace the MenuItem with the ComboBox straight, but of course that didn’t do squat. I’ve also tried to insert the ContextMenu straight to the MenuItem buuut that keeps telling me I can’t (surprise). So, any pointers/tips/solutions? -- Lauri Lavanti laurilava...@gmail.com -- http://www.avast.com/ Tässä sähköpostiviestissä ei ole viruksia eikä haittaohjelmia, koska avast! Antivirus http://www.avast.com/ suojaus on käytössä. ___ SailfishOS.org http://sailfishos.org/ Devel mailing list -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] working on apps?
Thanks for testing. Both my apps failed to work on the updated SDK, and I haven't had time to look at getting them working again. On Sunday 15 December 2013 21:56 Kimmo Lindholm wrote: Thomas, I pulled your kitchen-timer, built and deployed as rpm, and tested it on device, it gives me just white screen when started. -kimmo -Original Message- From: devel-boun...@lists.sailfishos.org [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Thomas Tanghus Sent: Sunday, December 15, 2013 8:49 AM To: Sailfish OS Developers Subject: Re: [SailfishDevel] working on apps? Currency Converter: https://github.com/tanghus/currency-converter-qml Kitchen Timer: https://github.com/tanghus/kitchen-timer-qml The capcha for your site is ridiculous, so posting it here instead :) On Saturday 14 December 2013 11:41 AL13N wrote: if there are people who are working on apps, and want to let it know, so that no other devs will waste time making the same apps, you can add these here: http://elinux.org/Jolla in the appriopriate section. Thanks! ___ SailfishOS.org Devel mailing list -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] working on apps?
On Sunday 15 December 2013 18:41 AL13N wrote: Currency Converter: https://github.com/tanghus/currency-converter-qml Kitchen Timer: https://github.com/tanghus/kitchen-timer-qml The capcha for your site is ridiculous, so posting it here instead :) It's not my site (it's for embedded linux), but that captcha _is_ ridiculous... i couldn't answer one question, after dozens of reloads, i ended up researching the Linus Torvalds question and cycle the captcha until i got that one... :-( ROFL. Thanks for adding my - still half-baked - apps :) Since we don't have anything yet, this is a place where we can put some documentation until there might be a better place... though, otoh, since this is about embedded Linux, it's not exactly a wrong place either... -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] working on apps?
On Tuesday 17 December 2013 20:20 Kimmo Lindholm wrote: Kimmo, I just pushed an update. TimePicker apparently doesn't support showRangeIndicator anymore..? Works nicely! - something I was already looking for.. Great to hear. Then I can soon - well after Christmas - submit it to Harbour. functionality should be added to the Jolla native clock (which timer can adjust only hours and minutes) He, I simply alias hours to minutes and minutes to seconds ;) -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
On Friday 20 December 2013 07:07 christopher.l...@thurweb.ch wrote: Hi Sylvain Thanks of the tip on zypper not being installed (on the Emulator). That seems to be a feature of the latest SDK release, I am 99% sure that on earlier releases zypper was on the Emulator by default. I wonder if this omission from the Emulator is by design or by mistake. Note that the zypper package manager is only available in the build engine virtual machine and in the Scratchbox 2 environment, not in the emulator or on a real device. The equivalent command in the emulator virtual machine or on a device is pkcon. These two commands have slightly different options and one may not support all the functionality the other has. https://sailfishos.org/develop-packaging-apps.html under Tips and Tricks -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QtMultimedia SoundEffect Vs Audio
On Friday 20 December 2013 11:21 Kimmo Lindholm wrote: My app was rejected... Reason for rejection: The application does not respond to volume control. In the phone the volume is muted, but in the application is not muted. Br Dorota That's a weird cause for rejection. There are *many* use cases where you want the phone to be muted, but not other apps. First I used QtMultimedia Audio component which seems to follow system volume setting, but after the sound is played, there is glitch in animations running on the screen. Then I switched to SoundEffect component, but it plays always with full volume regardless of system volume settings (or muting). I can 'manually' adjust the volume through with SoundEffect.volume -property. Is there any way that I can pass system volume/muted value to SoundEffect.volume? Last night I made a simple test application, but I forgot to push sources it to github. The armv7hl rpm can be downloaded from https://www.dropbox.com/s/s5x1wbnr3qgqs6o/tonetest-0.1-1.armv7hl.rpm When playing with Audio, you can see the glitch in spinning logo. This is not happening with SoundEffect. The sliders are mapped relevant component volume property import QtMultimedia 5.0 as Media Media.SoundEffect { id: playSoundEffect source: ../wavs/test.wav volume: SYSTEM VOLUME HERE ?? } -kimmo -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Jolla owner - day 1
On Saturday 21 December 2013 22:05 Markus Svensson wrote: Hi guys, I also received my device yesterday. I was able to both register in the Yandex store as well as register my Google account. I did perform both activities before applying the OTA software update, IIRC. That may be of importance. I did the update right away before anything else. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Jolla owner - day 1
On Sunday 22 December 2013 00:37 Ville Tiensuu wrote: Yeah, i also updated the device before doing anything. OK, so it's not a regression. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Jolla owner - day 1
On Sunday 22 December 2013 20:06 AL13N wrote: i would not like that, cause i have 78325 unread emails ... Clean up you inbox man ;) Notes: - When sharing a note by email it gets sent as an attached VNOTE with the body base64 encoded and with a vcf extension which I thought was reserved for vCards?. I for one don't have any applications that can handle that format. I believe that's called carddav ... something that people have been asking support for with caldav... Cal- and CardDAV are WebDAV extensions for calendars and address books [*]. I just meant that VNOTE is not very widely used, and making it base64 encoded doesn't make it easier ;) When sharing a Note it should just be plain text. [*] http://tools.ietf.org/html/rfc6352 -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Jolla owner - day 1
On Saturday 21 December 2013 20:56 Martin Kolman wrote: 21.12.2013 20:44, Thomas Tanghus: - Twitter: Says »Creating account« then nothing. Doesn't ask for credentials. - XMPP: Silently fails on certificate error. Doesn't show up as an option in messages. I can confirm having both of those issues. But the weird thing is that when a friend was showing me his Jolla, I'm quite sure he had Twitter account showing up on the notification screen stuff from Twitter on it. Magically XMPP started working, but there still are some quirks. - Under Notifications-Show presence details it lists the two different accounts as jabber and jabber instead of showing the XMPP address. - Under [1] it says: Tapping on the word Type lets you switch between SMS and IM. I see no Type anywhere in the app? [1] http://jolla.com/guide/#sec-10 -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Jolla owner - day 1
On Monday 23 December 2013 01:25 Thomas Tanghus wrote: On Saturday 21 December 2013 20:56 Martin Kolman wrote: 21.12.2013 20:44, Thomas Tanghus: - Twitter: Says »Creating account« then nothing. Doesn't ask for credentials. - XMPP: Silently fails on certificate error. Doesn't show up as an option in messages. I can confirm having both of those issues. But the weird thing is that when a friend was showing me his Jolla, I'm quite sure he had Twitter account showing up on the notification screen stuff from Twitter on it. Magically XMPP started working, but there still are some quirks. Inspired by the belated success I decided to give Twitter account a go again, and now it works properly and opens browser for oAuth authorization \o/ It's nice for a quick overview, and their mobile web app works OK, but a native client that integrates with the OS/UX would be nicer. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Jolla owner - day 1
On Monday 23 December 2013 00:44 Kimmo Lindholm wrote: - Under [1] it says: Tapping on the word Type lets you switch between SMS and IM. I see no Type anywhere in the app? [1] http://jolla.com/guide/#sec-10 This is shown only when started to enter a message (and before you have entered anything) to a person whos account has both SMS and IM contact info. I have seen this at least with google and SMS. It is in place of send. Mysteriously now it shows..? Even says Change type instead of just Type. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to handle app settings?
On Sunday 29 December 2013 21:48:18 Franck Routier wrote: Everything compiles fine, but on deployment, I get these messages: [W] QCoreApplication::applicationDirPath:1906 - QCoreApplication::applicationDirPath: Please instantiate the QApplication object first I use: int main(int argc, char *argv[]) { QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); QmlSettings *settings = new QmlSettings(); view-rootContext()-setContextProperty(settings, settings); view-setSource(SailfishApp::pathTo(qml/net.tanghus.currencyconverter.sailfish.qml)); view-showFullScreen(); return app-exec(); } This way you don't get the warning. -- Best regards / Med venlig hilsen Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] No inbox?
On Wednesday 01 January 2014 12:34 Chris Walker wrote: Bad form replying to one's own postings, but I've searched on together and the elinux site and come up with nothing of any help. Have you tried to post a question at https://together.jolla.com/ ? The audience is much wider there. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] SailfishSDK: bugs ( probadly known)
On Saturday 04 January 2014 14:04 Mikael Hermansson wrote: Emulator: Lipstick crashing * lipstick randomly get black screen of dead. seems related to screensaver activates? restart lipstick doingpkill lipstick fixes the issue but annoying. And you can't just hold-and-drag with the mouse to get it going? -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Using mailing lists on the Jolla
On Saturday 04 January 2014 15:31 Oskari Tulonen wrote: Hi, This is already reported on together.jolla.com, as you can see here: https://together.jolla.com/question/1087/bug-email-app-cant-reply-to-mailing -list-messages-properly/ And https://together.jolla.com/question/591/email-honour-reply-to-header/ https://together.jolla.com/question/596/email-insert-in-reply-to-header/ :) ~Oskari On 01/04/2014 03:18 PM, Timur Kristóf wrote: Has anyone else also encountered these bugs? Can someone from Jolla confirm that there're people working on fixing them? -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] ContextMenu with repeater
I've noticed that if the model changes you can't depend on index except if you cache it, so something like this *should* work: onClicked: { var idx = index; console.log(selected: + modelData) console.log(selected: + idx) } On Friday 03 January 2014 21:21 Andrey Kozhevnikov wrote: Hello I can't get context menu index if using repeater inside ComboBox { id: languageCombo label: Language currentIndex: 0 menu: ContextMenu { id: languageMenu Repeater { width: parent.width model: localeNames delegate: MenuItem { text: modelData onClicked: { console.log(selected: + modelData) console.log(selected: + index) } } } onActiveChanged: { console.log(index: + languageCombo.currentIndex) } } onCurrentIndexChanged: { if (languageMenu.active) { console.log(index: + currentIndex) } } } No output is produced when i selecting item, but item in repeater changed. ___ SailfishOS.org Devel mailing list -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] AAC support
On Monday 06 January 2014 00:46 Damien Tardy-Panis wrote: Hi all, I've been testing a bit different music file/stream formats on the phone Everything seems fine for flac/ogg/mp3, however I got some problems with AAC format I've tried several AAC/AAC-HE samples: - some found on the Internet - some converted from my collection - some streaming links And some files are played correctly, some not... It seems like no .aac file can be played and only some .m4a (with AAC) can (but still not all) Launching a AAC stream with gstreamer from command line like gst-launch-0.10 -v playbin2 uri=http://sfstream1.somafm.com:3000 is telling me among other things Missing element: MPEG Audio decoder Can someone tell me what is going on? And what to do if possible (any extra plugin/package to install?...) Missing codec? https://together.jolla.com/question/7364/crowdfunding-licensed-software-for-jolla-sailfishos/ mentions it. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Is pragmatically taking a screenshot possible?
On Monday 06 January 2014 00:48 James Mugford wrote: Great, this sounds hopeful. Do you know if there are there any permission issues surrounding this? I doubt so. As mentioned in https://together.jolla.com/question/9670/api-security-model/ the current security model is QA, Unix permissions and general rep ;) And you can do it as user nemo so it *should* work. For example, do you think this would work as a regular application on end consumer devices? I can't give a qualified answer to that, sorry. On 05/01/14 23:21, Thomas Tanghus wrote: On Sunday 05 January 2014 13:42 James Mugford wrote: Is it technically possible to create an app that can take a screenshot of the home screen or device viewport? It is for the purpose of creating something technologically similar to a water screen saver. I've no big knowledge of the subject, but I guess the easiest approach is to use dbus to grab the screenshot. From the grabscreen script on the device, the cli command is something like: dbus-send --type=method_call --dest=org.nemomobile.lipstick \ /org/nemomobile/lipstick/screenshot org.nemomobile.lipstick.saveScreenshot string:$filename Where $filename is the file to save to. Maybe other methods than saveScreenshot is available? I have no idea how to query for available -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Undocumented Silica components
On Monday 06 January 2014 01:16 Martin Jones wrote: Hi, As a general rule, if it’s not documented then it isn’t public API. The GlassItem API hasn’t been reviewed for public use. It will probably change and is not safe for use. So apps using GlassItem will be rejected from harbour? -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] xdg folder stuff: howto? more info
On Wednesday 08 January 2014 09:22 Jonni Rainisto wrote: IMHO applications that use QStandardPaths should be always accepted, there must be something wrong with the process or rules if that is the cause for rejection. If QStandardPaths points to wrong directory then its a bug which should be fixed. Can we consider this as a (semi-)official answer? I would also say that harbour applications should not be rejected because of a (seemingly) Qt-bug that should be easily patchable i.e. that QStandardPaths.data doesn't reflect XDG-* standards. WRT user(nemo) specific data isn't StandardPaths.data[1]|genericData[2] available in C++? [1] https://sailfishos.org/sailfish-silica/qml-sailfishsilica-standardpaths.html#genericData-prop [2] https://sailfishos.org/sailfish-silica/qml-sailfishsilica-standardpaths.html#data-prop -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] xdg folder stuff: howto? more info
On Thursday 09 January 2014 02:14 Robin Burchell wrote: On Wednesday 08 January 2014 09:22 Jonni Rainisto wrote: If QStandardPaths points to wrong directory then its a bug which should be fixed. On 09 Jan 2014, at 00:37, Thomas Tanghus tho...@tanghus.net wrote: Can we consider this as a (semi-)official answer? I would also say that harbour applications should not be rejected because of a (seemingly) Qt-bug that should be easily patchable i.e. that QStandardPaths.data doesn't reflect XDG-* standards. I’m not sure I understand what bug you’re talking about. See the source: On Thursday 09 January 2014 09:38 Wim de Vries wrote: I am not sure, but maybe I caused the misunderstanding. My app (code) uses QStandardPaths, but was rejected. Harbour stated that I should use the XDG- based rules. So, I thought: what is wrong with QStandardPaths? Now -thanks to the comments up here- I understand that harbour was talking about the .yaml/rpm stuff, not the directory references in the app itself. My bad, I misunderstood. It looked like the app was being rejected because QStandardPaths returned empty|invalid paths. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Adding localization to sailfish app
On Thursday 09 January 2014 16:16 Pekka Vuorela wrote: On Thu, 2014-01-09 at 14:59 +0100, Thomas Tanghus wrote: On Thursday 09 January 2014 14:36 Luciano Montanaro wrote: From the shipped application desktop files it looks like that is the way. Didn't even think of looking there. It seems only a few apps are translated that way: $ grep Name\[ /usr/share/applications/* /usr/share/applications/jolla-contacts.desktop:Name[zh_CN]=人物 /usr/share/applications/jolla-fileman.desktop:Name[zh_CN]=文件 /usr/share/applications/sailfish-office.desktop:Name[zh_CN]=文档 Shipped application localization is a bit different, and in that context those are leftovers. For third parties, however, that's the recommended way. Great, thanks -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Harbour: Allow more libraries to link against
On Thursday 02 January 2014 11:43 Reto Zingg wrote: If not then we reject it. Most likely you have still some timer running? Stop them when your app is not active. What if your app is a timer app? I disable animation if !applicationActive except updating a label on the cover. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
[SailfishDevel] QML Timer stops running
Just after having my tiny Kitchen Timer app approved I realized that the timer slows down and eventually stops running - burned food as result :( The timer is set to trigger each 1000 ms. When applicationActive becomes false the timer slows down to being triggered appr. each 5000 ms and after about a minute more it stops running all together. Am I missing something obvious? The timer is defined at: https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/harbour-kitchentimer.qml#L76 -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
[SailfishDevel] Release versioning best practice?
When packaging a bugfix release what is the best practice? 1. Just bumping the release number so the package name goes from harbour- appname-0.1-1.armv7hl to harbour-appname-0.1-2.armv7hl 2. Bump minor version from e.g. harbour-appname-0.1-1.armv7hl to harbour- appname-0.1.1-1.armv7hl 3. Both version and release from harbour-appname-0.1-1.armv7hl to harbour- appname-0.1.1-2.armv7hl -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML Timer stops running
On Monday 13 January 2014 23:23 Martin Kolman wrote: 13.1.2014 23:13, Gabriel Böhme: As far as I know the Jolla switches in some kind of deep sleep standby, when s.reen goes off, which slows down timers extremly. Don't know if there is some workaround. Some workarounds can be found in this TMO thread: http://talk.maemo.org/showthread.php?t=92183 It also explains what's going on and why. Thanks, that does indeed explain it. Would be nice if something like AlignedTimer[1] was included. And it makes previous discussions about stopping timers to get through harbour approval hypothetical as Sailfish effectively does that already... [1] https://github.com/lpotter/libalignedtimer/ -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML Timer stops running
On Tuesday 14 January 2014 05:20 Jens Persson wrote: I have a QTimer that is used as a timed shutdown for my app and I control it with a class method and that works. Just checked with 5 minutes and it worked perfectly, as clockwork. :) Do you have some code to show? :) Greets Jens On Tue, Jan 14, 2014 at 4:38 AM, Thomas Tanghus tho...@tanghus.net wrote: On Tuesday 14 January 2014 01:48 Jens Persson wrote: Have you tried timers from QtCore? They seem to work fine for me. At least with timers used in QML via view-rootContext()-setContextProperty() they seem to stop even faster than QML Timers. I guess I have to implement something like libiphb as rainisto mentioned in http://talk.maemo.org/showpost.php?p=1401321postcount=4 Just seems like overkill for such a simple app. -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Release versioning best practice?
On Tuesday 14 January 2014 10:28 Luciano Montanaro wrote: As far as I understand, the notation used is major.minor.patch-packageversion, with the packageversion reserved for the packager (changes to spec/yaml/ files). Since you are both the packager and the developer, you can always leave it to 0. Maybe, if you only fix packaging issues without touching the code, you could bump it instead of the patch version. I would bump the patch version number, and reset the packaging number to 0. Yes, that sounds reasonable. Thanks Best regards, Luciano On Mon, Jan 13, 2014 at 11:15 PM, Thomas Tanghus tho...@tanghus.net wrote: When packaging a bugfix release what is the best practice? 1. Just bumping the release number so the package name goes from harbour- appname-0.1-1.armv7hl to harbour-appname-0.1-2.armv7hl 2. Bump minor version from e.g. harbour-appname-0.1-1.armv7hl to harbour- appname-0.1.1-1.armv7hl 3. Both version and release from harbour-appname-0.1-1.armv7hl to harbour- appname-0.1.1-2.armv7hl -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML Timer stops running
On Tuesday 14 January 2014 13:05 Graham Cobb wrote: On 14/01/14 01:14, Thomas Tanghus wrote: On Tuesday 14 January 2014 01:53 Ove Kåven wrote: No matter what OS or platform you're on, counting the number of times your timer callback is called is *never* a good idea, even on desktop PCs. Timer callbacks can be skipped for any number of reasons (heavy system load, laptop suspend, etc). Good point. That will also at least work around the issue when in pre-deep- sleep. I agree with Ove (that is how every timer function I have ever worked on works, from interrupt handlers in embedded system kernels through to the GPE Calendar app) -- repeating timers are a convenience, but are never treated as accurate. But I would also suggest that for any apps that do timing, when the app is not being displayed (and so the screen doesn't need to be updated), the code should switch to using a single-shot timer set to the time when the next event happens, instead of using repeating timers. If the kitchen timer is set for 25 minutes and the screen is blank you don't want your app waking up every second. Of course, it is a little bit tedious to write the code to cancel the long timer and restart short timers when the screen is turned back on but the user will thank you for it. It sounds like a good idea, and should be fairly easy to implement. I just don't know how to detect when the screen is off (this is my first baby-steps in mobile coding). We have the applicationActive property, but the cover can still be active and visible while it is false. Unfortunately, I have no idea how you actually set up a single shot timer that will fire correctly in deep sleep from the Qt environment (the last time I implemented that logic was on Maemo). Rainisto pointed to libiphb[1] which I have now implemented with a crude wakeup every 5-10 seconds. Not optimal, but I'm OK with it for v 0.1.1 ;) [1] http://talk.maemo.org/showpost.php?p=1401318postcount=2 -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to translate (lupdate) ?
On Monday 13 January 2014 16:28 Timur Kristóf wrote: Not sure what you mean by already performs all the checks you do - it doesn't check LANG, nor does it check QLocale::system().name() It does check LANG. That's how I test the translations: $ LANG=da_DK harbour-myapp On Mon, Jan 13, 2014 at 1:21 PM, Thomas Tanghus tho...@tanghus.net wrote: On Monday 13 January 2014 12:52 Timur Kristóf wrote: Here is how I do it: 1. Check the LANG environment variable 2. Check QLocale::system().name() Take a look at the code here: https://github.com/Venemo/puzzle-master/blob/master/helpers/util.cpp#L24 QTranslator::load()[1] already performs all the checks you do, so is there really a need to do more than this? QTranslator* translator = new QTranslator; QString locale = QLocale::system().name(); if(!translator-load(SailfishApp::pathTo(translations).toLocalFile() + / + locale + .qm)) { qDebug() Couldn't load translation; } [1] http://qt-project.org/doc/qt-5.0/qtcore/qtranslator.html#load -- 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
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] 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] 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] 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] 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] 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] 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] 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] 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 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] 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] 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] 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] 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] 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] 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] 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
[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] 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] 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
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] 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
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] 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] 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] 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
[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] 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] 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
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] 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
[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 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
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
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
"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
"Андрей Кожевников" – 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