Patchmanager 2.3.3 & 3.0 legacy

Rating: 
0
No votes yet

IMPORTANT

On SailfishOS 4 do install Patchmanager ≥ 3.1.0.

Patchmanager 3.0.x does not work properly on SailfishOS 4.

-----------

Patchmanager 3.0

Make sure to unapply patches before upgrade from Patchmanager 2. Installation will fail if any patch is applied.

If you have installed prepatch, please remove it before Patchmanager3 installation.

Changes between version 2 and version 3:

  • Not changing original files. Patches applied to fakeroot located at /tmp/patchmanager
  • OS update friendly. Patchmanager3 automatically detects when user start downloading an update and unapplying all patches
  • Patches can be reordered to be applied in correct order. Just drag to left and drop at required position
  • Collect information about possible conflicting patches. Visit patch info page.
  • Automatic check for updates for online catalog patches. Notificaiton will popup if new version of patch will be released
  • Patchmanager settngs are located inside Settings application as entry

Patchmanager daemon acts like proxy, filtering open calls and decide if application should open original file or fake one.

Target application translations

Add to your patch new import:

import org.SfietKonstantin.patchmanager 2.0

Add property to the root object:

property bool pmTranslationLoaded: PatchManagerTranslator ? PatchManagerTranslator.installTranslator("name-of-your-patch") : false

Change most visible text to:

pmTranslationLoaded ? qsTr("Normal text if all is okay") : "Please update patchmanager!"

Useful environment variables:
NO_PM_PRELOAD=1 disables preload plugin from filtering calls
PM_PRELOAD_DEBUG=1 enables additional stderr output for preload plugin

Keep in mind this is beta version and should contain a lot of bugs. However it was tested for a while.

Please report all bugs to: https://talk.maemo.org/showthread.php?t=92935

You can collect patchmanager logs by running:
devel-su journalctl -al _COMM=jolla-settings + _EXE=/usr/sbin/patchmanager + _EXE=/usr/bin/patchmanager-dialog > patchmanager.log

Sources available here: https://github.com/sailfishos-patches/patchmanager/tree/patchmanager3

Translate project: https://www.transifex.com/coderus/patchmanager3

 

Big thanks jakibaki for Prepatch. This was very good idea to create such way for applying patches. You can review my plugin here: https://github.com/sailfishos-patches/patchmanager/blob/patchmanager3/sr...

See this TMO thread for more information.

 

Source at Wayback

 

License:
BSD-3-clause

Category:

Application versions: 
AttachmentSizeDate
File patchmanager-2.3.3-10.41.1.jolla_.i486.rpm240.99 KB23/01/2023 - 05:01
File patchmanager-2.3.3-10.41.1.jolla_.armv7hl.rpm234.42 KB23/01/2023 - 04:48
File patchmanager-3.0.62-1.136.1.jolla_.i486.rpm357.76 KB23/01/2023 - 05:01
File patchmanager-3.0.62-1.136.1.jolla_.armv7hl.rpm346.03 KB23/01/2023 - 05:01
File patchmanager-3.0.63-1.137.1.jolla_.i486.rpm357.62 KB23/01/2023 - 05:01
File patchmanager-3.0.63-1.137.1.jolla_.armv7hl.rpm345.99 KB23/01/2023 - 05:01
File patchmanager-3.0.64-1.144.1.jolla_.i486.rpm359.16 KB23/01/2023 - 05:01
File patchmanager-3.0.64-1.144.1.jolla_.armv7hl.rpm347.1 KB23/01/2023 - 04:25
File patchmanager-3.0.65-1.149.1.jolla_.i486.rpm359.6 KB23/01/2023 - 04:48
File patchmanager-3.0.65-1.149.1.jolla_.armv7hl.rpm347.8 KB23/01/2023 - 04:25
Changelog: 

3.0.65
Added support for main-light.png patch icons for light ambiences

3.0.64
Added plugin class to inject translate strings to target applications. Read description.

3.0.63
Fixed check for updates scheduler

3.0.62
Removed freeze when opening patch info