Dirty hack thread - Share your favorite hacks and tweaks for SFOS

As the release of a new Jolla phone will bring a lot of new users for Sailfish OS, I wanted to make a thread for the old timers and why not newcomers to share their favorite hacks and tweaks however you’ve altered the usability of your personal phone.

As a long time Android user, the control and freedom that the root shell gives feels fresh and exciting. There’s a chance that this line might not age very well but we’ll find that out after the next update.

As many of the community projects and patches have been chilling for the past years and some may be deprecated for a longer period of time, this might be an overwhelming jungle to parse as a new Jolla phone user. As updates and new forks will surely rise after the community gets their new phones, there most likely is a gap between the time a proper patch or update will land for your needed application.

As a new SFOS user, there were a few cases that popped out when I was setting up my phone, minor annoyances and just plain applications that did not work. Instead of PRs and waiting for the upstream fixes, I took the route I’m familiar with and started poking around and in the end I’ve already gathered a bunch of scripts n tweaks that I’ve used to improve the experience on SFOS. Some of the fixes have been found from the forums, some I’ve made myself. Next I want to see what the other more experienced users are doing.

Please share your hacks and tweaks, here’s mine: julmajustus/sfos_dirtydump: Various hacky scripts and fixes for Jolla's Sailfish OS 5.2 Finlayson - Codeberg.org

9 Likes

kill -9 in the first script. Nice.

FWIW that one should really be a patchmanager patch.

But that goes for many of mine, too:

4 Likes

My app for making apps think they come from Google Play would qualify, I guess: AAS Installer Patcher | OpenRepos.net — Community Repository System

Even better - it’s a dirty hack in a nice package!

6 Likes

Before AppSupport Bluetooth was available, I defined a situation in the Situations app to use a bluetooth tracker.

WHEN: Ambiance is set to Urban (the one with the bicycle)

DO: Open “Tile” and run

sudo systemctl stop bluetooth
sudo systemctl stop bluebinder
sudo systemctl start appsupport@defaultuser
sudo appsupport-attach pm enable com.android.bluetooth

DO (in the end):

sudo appsupport-attach pm disable com.android.bluetooth
sudo systemctl stop appsupport@defaultuser
sudo systemctl start bluebinder
sudo systemctl start appsupport@defaultuser
sudo systemctl restart bluetooth

This would allow me to locate my bicycle by tapping on the bicycle ambiance and give Bluetooth back to Sailfish OS by tapping on another one. Original idea: Potential Bluetooth Support in the Android App Support (AAS) - #206 by rdomschk

2 Likes

Can’t microG do that now? Although I guess this is still useful if you aren’t using microG.

AFAIK no, it’s just a google services reimplementation.

Good initiative to make a listing with handy tweaks, keep on adding them!

Regarding your tweaks for OKBoard, and Clock size:
There is a patch released on 22th of August for OKBoard in OpenRepos, that makes it work on current SFOS 5.2.0.17 release.

As for the clock font size, I have been using the “Larger clock font on homescreen” from Patchmanager:

(The patch doesn’t explicitly lists 5.2.0.17 as compatible version, but works anyway)

2 Likes

Nice! Haha, yeah no warning shots, straight to kill -9. Luckily it’s only suggestion for the user.

1 Like

It’s more of a clean (hidden) feature than a dirty hack, but there’s a patchmanager patch called ‘tracker path settings’, which let(s) you easily modify the folders that Sailfish automatically indexes. Very useful if you want to add some other folders beyond the defaults, or if you want to remove folders from ever being indexed. However, it currently isn’t working, and I suppose it is because it tries to apply the patch to ‘tracker’, but the software is now called ‘localsearch’. Maybe @nephros could take a look?

3 Likes

This was good to know. I think I tried to look for a patch for the okboard, but this patch got released right after that. Thanks for the links.

It was possible to influence tracker’s behavior with dconf keys, iirc. It should be possible here as well.

Recent SFOS versions updated the “tracker” package (now called “localsearch”), and that very likely works differently from the configurations made by the patch.

AFAICS, DBus calls can be used to configure the locations - Upstream documentation is here:

[EDIT:] The patch also seems to hardcode /home/nemo as home dir which will be wrong more often than not.

3 Likes

Yes. Good that you mention.
I read it already here in the forum somewhere.
I did not check release notes but would expect such things to be noted there?

If you are referring to tracker vs localsearch, I would not expect that to be mentioned in the Release Notes, but the ChangeLog usually lists things like this.

1 Like

Yes.
And you are right.
The change from tracker to localsearch was/is well hidden in this link/upload (linked from within release notes thread.
I thought these kind of changes are more worth to report in release notes than e.g.

Summary

Several build and development tools received major updates

gcc - 10.3.1 => 13.4.0make - 4.2.1 => 4.4.1cmake - 3.27.1 => 3.31.8meson - 1.4.1 => 1.9.1gdb - 12.1.0 => 16.3.0valgrind - 3.18.1 => 3.26.0

As did many libraries and languages…

abseil-cpp - 20230802.1 => 20250127.1curl - 8.9.1 => 8.19.0cython - 0.29.14 => 3.0.11glibc - 2.30 => 2.41glib2 - 2.78.4 => 2.86.4glslang - 14.1.0 => 15.3.0gobject-introspection - 1.72.1 => 1.86.0gstreamer1.0 - 1.24.6 => 1.26.11libphonenumber - 8.13.27 => 9.0.5linux-glibc-devel - 3.18.136 => 4.4.302lxc - 5.0.2 => 6.0.3ncurses - 6.5 => 6.6net-tools - 1.60 => 2.10openssh - 9.8p1 => 10.3p1openssl - 1.1.1v => 3.5.6openssl1.1 kept available for compatibilityperl - 5.16.3 => 5.40.3poppler - 24.08.0 => 25.12.0pulseaudio - 14.2 => 17.0python3 - 3.8.18 => 3.11.15python-pip - 19.3.1 => 23.3.2python3-fuse3 - 2.0.0 => 3.4.0python3-lxml - 4.6.5 => 5.3.0python3-setuptools - 46.1.3 => 70.3.0python3-twisted - 20.3.0 => 22.10.0sqlite - 3.46.1 => 3.50.4taglib - 1.12 => 2.0.2Changelog

Just like the change of systemd behaviour letting Defender cause a boot halt :wink:

1 Like