HengYeDev[m] | stupid question, onUrlchanged i think will work | 01:13 |
---|---|---|
Solrac[m] | So for developers, I found this. https://github.com/therecipe/qt Qt Bindings for Go, and it supports Sillica for Sailfish. | 03:47 |
Solrac[m] | They also have a Javascript enrty too. https://github.com/therecipe/entry | 03:47 |
Solrac[m] | But now Im curious. I've more experience as a web developer, and was considering rewriting some of my web apps as Qml for Sailfish and UT. How does Python with QML compare? I know its a different way to write stuff (ie maybe no `{{DomVariables}}` or `v-for` in the same sense Im used to) but could someone tell me their experience? Id very much appreciate it c: | 03:47 |
Nico | I found Python + Qt always pretty enjoyable, but if you are a webdeveloper, you can just use Qml + JS. | 03:48 |
Solrac[m] | Nico: Vanilla JS I assume? (ie. No TypeScript or other packages) | 03:50 |
Nico | Well, the Qt version of JS. So the runtime library has some other stuff and it isn't the latest version of JS | 03:51 |
Nico | Newer Qt versions add type annotations, but those are not available on Sailfish (yet) | 03:51 |
Solrac[m] | Interesting. Though I thought Sailfish uses Qt6 | 03:52 |
Nico | No, stuck on Qt 5.6 | 03:52 |
Nico | Afaik nothing uses Qt6 yet | 03:52 |
Solrac[m] | Oh, thanks for clearing that up c: | 03:53 |
Solrac[m] | Is there an equivalent for localStorage or IndexDB? (I assume sqlite3) | 03:53 |
Nico | But you can also start with a qml only app and add python later: https://docs.sailfishos.org/Develop/Apps/Tutorials/Creating_an_application_in_Python/ | 03:53 |
Nico | Well, the equivalent to local storage would probably be the qt settings API | 03:53 |
Solrac[m] | Is there a size limit? | 03:55 |
Solrac[m] | Mind if I talk a bit of the app I'm interested in porting? | 03:55 |
Nico | It is a single file that gets rewritten. While I don't know of any explicit limits, I wouldn't put too much into it :D | 03:56 |
Solrac[m] | Nico: aw shoot | 03:56 |
Nico | Also seems like Qml has a local storage API: https://doc.qt.io/qt-5/qtquick-localstorage-example.html | 03:56 |
Nico | Better docs: https://doc.qt.io/qt-5/qtquick-localstorage-qmlmodule.html | 03:57 |
Solrac[m] | Solrac[m]: My app uses IndexDB via LocalForage because with normal use, the more user uses the app (saving a list and maybe writing an entry), it can easily bypass the 5mb limit | 03:58 |
Nico | local storage in qml shouldn't have the 5mb limit | 03:58 |
Solrac[m] | Solrac[m]: It's a Dream Meaning and Journaling App, so the user can go to any date and store the IDs for symbol/meanings and can also write a journal entry | 03:59 |
Solrac[m] | Nico: thats a relief, I could probably do a quick test | 04:00 |
Nico | If the db turns out to be an issue, you can always move that part to python or so | 04:00 |
Solrac[m] | Nico: Maybe. Though since JSON support is a thing, it mgiht be possible to access it like a db, no? | 04:01 |
Solrac[m] | * a db or object, no? | 04:02 |
Nico | Using a 5mb json database sounds like a bad idea imo :D | 04:02 |
Solrac[m] | I totally agree. | 04:02 |
Solrac[m] | The Symbol DB is 3mb, which is pretty hefty already. | 04:03 |
Solrac[m] | But for storing user's data, is the question, since; it can grow past 5mb | 04:03 |
Nico | I'd personally go with the local storage API until it turns out to be an issue, which is when I would go with python | 04:04 |
Solrac[m] | Nico: Understandably so. I might go the python route, since most Linux Phone OSes would include it | 04:06 |
Nico | Well, it is explicitly listed as a supported option for Sailfish including examples and templates :3 | 04:07 |
poetaster | Python + QML works really well on SFOS | 07:03 |
gmc | hi, my app uses sailfish-secrets to store credentials, but ever since the last sailfish os update, it keeps forgetting the credentials. Before I dig in and debug, has anything changed that I should be aware of? | 07:34 |
poetaster | gmc, Sailjail. | 11:59 |
poetaster | https://forum.sailfishos.org/t/migrating-configuration-and-data-files-for-sandboxed-apps/8866 | 12:00 |
Mister_Magister | is there some mapplauncherd sailjail integration documentation | 19:35 |
b100dian[m] | <HengYeDev[m]> "stupid question, onUrlchanged..." <- HengYeDev I tried a couple of url changing detection here for facebook https://gitlab.com/nephros/harbour-fbjail/-/issues/5 | 20:47 |
Mister_Magister | how do you even test .desktop file? | 22:33 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!