Patches by Okxa

Feedback thread for some patches I maintain.

Patches on Web Catalog: Okxa projects
Sources (only diff files + extra files if patch needs them): Okxa/okxa-sfos-patches: Holds my patches for Sailfish OS. - Codeberg.org

Patches I maintain:

If you have any suggestions or bugs feel free to post here. You can also post issues on the git repo, so they stay in sync with the patches.

I will try to update the patches if they stop working, but I tend to stay on older versions quite a while, so it might be a while until I get around to updating them.

10 Likes

I’ll just add here that the new Topmenu Control Redux patch was made on SFOS 4.5.0.25, and I have not yet upgraded to 4.6, so I have no idea if it works on it. Theoretically it could if the files have not changed between.

3 Likes

Im on 4.6.0.13 and it’s not working, unfortunately. Patchmanager can’t activate it.

Thanks for all your work with this and the other patches.

Edit: 4.6.0.13 works fine - patchmanager needed to be set to convert between 32 bit and 64 bit patches for it to work.

Topmenu Control Redux works fine for me under 4.6.0.13 on both 10 III and XA2U.

Lucky you. Not sure what the issue is for me - I’d certainly love for it to work. Thanks for confirming this.

Maybe it is in conflict with some other patch. Try disabling other patches and starting from this one.

Thanks for the suggestion but it doesn’t resolve it. I’m also on a 10 III, so not sure what’s happening there. Cheers

Did you set “Version control” to “No control” in Patchmanager settings?
I’s needed because compatibility setting is on SFOS 4.5 still.

Version check is set to ‘No check’. But I hadn’t set it to convert patches between 32 bit and 64 bit, so thanks for making me check the settings again. The patch now works!

1 Like

Hello, could anybody help me. I used this patch under 4.6.0.15 for months. Today I made a restart from my Sony Xperia 10 ii and disabled all patches before. Now the TopMenu Contoll patch not work. Also if I will activate only this patch. Here the false protocoll:

----------------------------------
pm_apply 2024-12-06T21:25:31+01:00
----------------------------------

patch-topmenu-control-redux

Using patch file: /usr/share/patchmanager/patches/patch-topmenu-control-redux/unified_diff.patch

----------------------------------
Checking paths for 64-bit --> 32-bit conversion
----------------------------------

Mangle candidates: /usr/lib/qt5/qml /usr/lib/jolla-mediaplayer /usr/lib/maliit/plugins

Converting library path reference /usr/lib/qt5/qml 1 times

OK, converted 1 library path references and created: /tmp/patchmanager3/patches/patch-topmenu-control-redux/unified_diff_64bit.patch


----------------------------------
Test if already applied patch
----------------------------------

checking file usr/lib64/qt5/qml/com/jolla/settings/SettingsToggle.qml
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
3 out of 3 hunks ignored
checking file usr/share/lipstick-jolla-home-qt5/compositor.qml
Hunk #1 succeeded at 733 (offset 13 lines).
checking file usr/share/lipstick-jolla-home-qt5/topmenu/FavoriteSettingsDelegate.qml
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored
checking file usr/share/lipstick-jolla-home-qt5/topmenu/FavoriteSettingsItem.qml
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
4 out of 4 hunks ignored
checking file usr/share/lipstick-jolla-home-qt5/topmenu/TopMenu.qml
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
9 out of 9 hunks ignored
checking file usr/share/lipstick-jolla-home-qt5/topmenu/TopMenuWindow.qml
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored

----------------------------------
Dry running patch file
----------------------------------

checking file usr/lib64/qt5/qml/com/jolla/settings/SettingsToggle.qml
checking file usr/share/lipstick-jolla-home-qt5/compositor.qml
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored
checking file usr/share/lipstick-jolla-home-qt5/topmenu/FavoriteSettingsDelegate.qml
checking file usr/share/lipstick-jolla-home-qt5/topmenu/FavoriteSettingsItem.qml
checking file usr/share/lipstick-jolla-home-qt5/topmenu/TopMenu.qml
Hunk #2 succeeded at 170 with fuzz 2 (offset 22 lines).
Hunk #3 succeeded at 216 (offset 22 lines).
Hunk #4 succeeded at 229 (offset 22 lines).
Hunk #5 succeeded at 244 (offset 22 lines).
Hunk #6 succeeded at 272 with fuzz 2 (offset 21 lines).
Hunk #7 succeeded at 288 (offset 23 lines).
Hunk #8 succeeded at 340 (offset 23 lines).
Hunk #9 succeeded at 359 (offset 23 lines).
checking file usr/share/lipstick-jolla-home-qt5/topmenu/TopMenuWindow.qml
Hunk #2 succeeded at 66 with fuzz 2 (offset 1 line).

*** FAILED ***

Hello,
I could solve it. My Composite.qml file was changed or in SFOS4.6.0.15 updated. I delete in the file unified_diff.patch the lines for it and now it works again. So I learned to understand the unified_diff.patch file logic and changed also two other not working patch. And it runs also. It was the patch Always expnand Notifications and Position notifications below the status bar. Now I can also try to adapt other patches for a better undersatndig from patches…