Starting developping apps for sailfish

There’s a good amount of links here:

Do you have any coding experience in e.g. Javascript, Python, Qt/C++ or any other language?

4 Likes

An immaculate boxed example may be of limited appeal to collector, but suggest sell while has any value left.

I have mine still and a spare battery. I boot it sometimes for old times sake. I’m going to keep it as one of the few of that kind of keepsake. I sold my N9s/N900s and the first google phone and sort of regret it.

1 Like

What helps me sometimes is going through the code of other people, it’s more work but you often have no choice given the scarcity of people developing for SFOS (and even fewer write about development stuff).

If you want some help, hit me up, though I don’t consider myself an expert in SFOS development.

Regarding your original Jolla phone, if you ever plan to sell it, let me know, I would be interested in buying a working original Jolla or Jolla-C.

1 Like

I sometimes refer to : Qt6 QML Book: A Detailed Guide to Using Qt . Even though it’s 6 centric, most of the techniques apply. As @Rikudou_Sennin suggests, learning from apps that exist. Pick some simple ones to start? I’ve been wanting to build tutorials from simple apps I maintain (after a cleanup!) for ages, but that’s really time consuming.

What area/type of app would you start with?

I’ll try to start with ‘Ohm’, initially by @thesignal in 2014 (still on Storeman/OpenRepos), fork by @ade (from 2021). I’ll try to add a few more formulas.

edit: like
Frequency/wavelength/velocity factor
dB calculation
cable loss

and add fields to existing formulas, like a 4th field ‘Power’ to Ohm’s law.

once an app is ready for testing and you are looking for testers, please consider @sockseight for assistance.

more info here → Volunteer available for testing apps / bug fixes

Sorry, I totally forgot this post, so if it’s against the rules to lift a year old thread, I’m sorry. I started focusing on writing a book, so I just kinda forgot about my passion for app developing and now I want to start it. I will read the links that you linked for me, but for me best way to learn is to just find out how to get started and maybe make an app following a tutorial. After that I have more knowledge to understand what I’m reading and when I start to develop my own app, I can search answers for my problems.

I really don’t have any coding experience, expect Python, very little bit of C# and thanks to those I have general understanding how coding works.

I still have my Jolla phone. It is in good condition, but I have no box for it, so I think that I won’t get much from it. I tried to find used Jolla phones on sale, but didn’t find any, so I really don’t have any idea how much I could get from it. I’m pretty broke, so if I can get like 100€ from it, I would sell it, but I doubt it. I think max that I could get is like 50€ so I rather keep it as kinda of collectable.

I would like to create a script that does something when I press the power button correct way. Like two short presses, one long press and two short presses and then the script would activate. The script’s purpose is to reset the phone to the factory defaults, I understand that problem with that is my passcode and the script should have right to completely wipe everything from the phone even without the passcode.

Another idea that I had is something that I’m sure has been done before, but app that tracks electricity prices and it sends an alert when it’s best time to wash your clothes etc. I think that would be good practice app to create, because you can add more functions to it, when you start learning more about coding.

1 Like

I don’t think so. I think it’s better to reactivate an old existing thread to a topic than creating a new one as duplicate. So I think you did right. Thank you!

2 Likes

I had a little roadblock right away. So I’m using arch on my computer and the official sailfish SDK is built for ubuntu (so debian). There are couple unsupported aur-packages, but I really don’t know what to do now. Should I just install unsupported version from aur?

I have been trying to install the official file from the website SailfishSDK-2311243.run but I cannot get it to work. I get error message saying “permission denied” even though I’m running the console as a root.
Does someone have some advice for me?

I hope those numbers were just you typing something random on the keyboard and not the actual filename you downloaded. The official installer is called SailfishSDK-3.9.6-linux64-online.run (or offline, if you prefer that). And before you can run it, you need to give it the executable permission. Please have a look at the Installation | Sailfish OS Documentation.

2 Likes

Yeah I was just typing something random on my keyboard, because I couldn’t see the whole name of the file :smiley:

And thank you, I got it finally working. It was weird to use an exe like installer thought :smiley:

Hello all,

I would like to start learning app dev as well.
I’m not programmer but I do use Python and GO in work.
I was kinda surprised that only supported languages are C++ and Python.
To be honest I don’t want to start learning C++ even though I have small experience with C.

Out of curiosity I checked Ubuntu touch page and it supports also Rust & GO.

Ubuntu Touch supports two kinds of apps: Firstly, native apps have their user interface written in QML or HTML and their business logic in JavaScript, C++, Python, Rust, or Go.

I’m reading over some documentation and I’m surprised there isn’t much information/questions on this forum about this topic (or I cannot search properly). My Q:

  • Do you know why other languages aren’t supported for SFOS ? some lib limitations ?
  • I’m big fan of using vim or nvim e.g. I’m kinda reluctant to install Sailfish IDE. Can you share what tools, IDEs do you use ? Best practises ?
  • Do you know if there is possibility to port some application from Ubuntu touch to SFOS and vice versa? It is kinda sad that most of the Linux OSes is doing something differently. It would be better if communities could cooperate more e.g. progress would be faster.
  • Is it preferable to use QML Live Coding ?

Thx

3 Likes

I have not used it - so others will provide better answers.

It is possible to build via cli, which uses a build container. Most probably it is installed with the UI.

E.g. Whisperfish is developed in Rust. And I remember that there was at least one app in GO, but can’t remember which.

1 Like

Just QML + JavaScript or QML + Python are viable ways to develop apps for Sailfish OS.

1 Like

The other app in Go was… Whisperfish, before Ruben took over :stuck_out_tongue_winking_eye:

1 Like

Supporting something means extra work. And the case of supporting a programming language in an OS means a lot of extra work. However, that fact that something isn’t supported doesn’t mean that it won’t work. Like others have already commented, we do have SFOS applications implemented in many languages. These languages include at least C++, QML (Javascript), python, go, Rust, guile and lua. There are probably others.

Qt Creator, the IDE included in Sailfish SDK is not that bad. I would recommend at least trying it out. That being said, I use also emacs. Depending on the task. Building with sfdk is easy and it’s easy to use it from emacs, and I would suppose any other editor as well.

There are quite a few applications which work on Ubuntu touch and SFOS, so I believe the answer to the question is “yes”.

When you are prototyping the UI, it can be really handy. I would say that it’s also one tool that you should check out, and if you don’t find it useful, then don’t use it.

3 Likes

There are many fashions about programming languages. And more fashions about the right way to enter the code. When you have a beloved way to create fancy programms - then do it this way! The Joillaboys and many programmers around here has found that QML, C++ and the Sailfishos SDK IDE are useful for their works but you can go your own way of course. Do it!

When you have found your way please let us know what it is.

PS.: In former times there was a list of criterias to recognize the qualification of a programmer. 10 levels was defined. To the lower levels counts the use of RPG (a programming language for non-programmer). In the middle there was the normal programmers of this days. And at the top level there was the programmer using the Unix-shell command cat to enter the code of the device driver directly in the file. And it works directly. To join this top level your first name have to start with D (like Dennis Ritchie) or K (like Ken Thompson). – You can see, we have never the one best & only way for doing a damn good job.

3 Likes