Replacing Qt in Reparasha ========================= Reparasha uses Qt and PySide6 (Qt for Python) under the GNU Lesser General Public License v3 (LGPL-3.txt). You may replace them with your own modified versions. Their files sit loose and unlocked inside the app, and Reparasha never checks or locks them. The source of the exact Qt and PySide6 this copy was built with is at the address About (אודות) gives. NOTICES.txt names their versions. A replacement must be built for the same Qt version, or you must replace PySide6 and Shiboken6 too, built against your Qt. The Qt files are the Qt libraries and their plugins. The PySide files are the PySide6 bindings and Shiboken6 beside them. Quit Reparasha before you change anything. Installing a new version of Reparasha puts its own Qt back. macOS ----- Inside the app, the files are in: Reparasha.app/Contents/Resources/app_packages/PySide6/Qt/lib Qt (QtCore.framework, ...) Reparasha.app/Contents/Resources/app_packages/PySide6/Qt/plugins Qt's plugins Reparasha.app/Contents/Resources/app_packages/PySide6 PySide6 (Qt*.abi3.so, ...) Reparasha.app/Contents/Resources/app_packages/shiboken6 Shiboken6 The app is universal: each library holds an Apple Silicon (arm64) and an Intel (x86_64) build. Your replacement needs at least the one for your Mac. 1. On macOS 13 or later, first let your terminal change apps: System Settings → Privacy & Security → App Management, and turn on Terminal (or the terminal you use). Without this, macOS refuses to change files inside an app. 2. Replace the files. For example, for QtCore: cd /Applications/Reparasha.app/Contents/Resources/app_packages/PySide6/Qt/lib rm -rf QtCore.framework cp -R ~/my-qt/lib/QtCore.framework . 3. Re-sign the app ad hoc. Changing a file breaks the app's signature, and macOS will not open an app whose signature is broken: codesign --force --deep --sign - /Applications/Reparasha.app 4. Clear the quarantine flag, so macOS doesn't stop the changed app as a download: xattr -dr com.apple.quarantine /Applications/Reparasha.app 5. Open Reparasha. If macOS still says it could not verify the app, open System Settings → Privacy & Security and click Open Anyway. Windows ------- Find the folder Reparasha is installed in: in the Start menu, right-click Reparasha, choose More → Open file location, then right-click the Reparasha shortcut there and choose Open file location again. The folder holds Reparasha.exe. Inside it: app_packages\PySide6\Qt6*.dll Qt (Qt6Core.dll, Qt6Gui.dll, Qt6Widgets.dll, ...) app_packages\PySide6\plugins Qt's plugins app_packages\PySide6\*.pyd PySide6 app_packages\shiboken6 Shiboken6 1. Quit Reparasha. 2. Replace the Qt DLLs, and the PySide files if you rebuilt them, with your own, keeping the same file names. 3. Open Reparasha. Smart App Control: on Windows 11 with Smart App Control on, Windows blocks a DLL that isn't signed. A Qt DLL you built yourself is blocked until Smart App Control is turned off or you sign the DLL. Repairing Reparasha from Settings → Apps puts the original files back. Linux ----- Reparasha is a Flatpak (io.github.noamdesu.reparasha). Its files are read-only once installed. To see them: ls "$(flatpak info --show-location io.github.noamdesu.reparasha)/files/briefcase/app_packages" That folder holds PySide6 (with Qt's libraries in PySide6/Qt/lib and its plugins in PySide6/Qt/plugins) and shiboken6. There are two ways to run Reparasha with your own Qt. A. Start Reparasha with a changed copy (no rebuild) 1. Copy the app_packages folder above to ~/reparasha-qt, and put your Qt libraries in ~/reparasha-qt/PySide6/Qt/lib (and your PySide6 and Shiboken6, if you rebuilt them). 2. Let Reparasha read the copy: flatpak override --user --filesystem="$HOME/reparasha-qt:ro" io.github.noamdesu.reparasha 3. Start Reparasha through its own Python, with the copy first on its path: flatpak run --command=python3 \ --env=PYTHONPATH="$HOME/reparasha-qt:/app/briefcase/app" \ io.github.noamdesu.reparasha -m reparasha PySide6 loads the Qt libraries beside it, so this Reparasha runs on your Qt. Starting Reparasha from the app menu still uses the shipped Qt, because its launcher looks only inside the app. To take back the access from step 2: flatpak override --user --reset io.github.noamdesu.reparasha B. Rebuild the Flatpak with your Qt 1. Copy the installed app to a build folder: loc="$(flatpak info --show-location io.github.noamdesu.reparasha)" mkdir ~/reparasha-build cp -a "$loc/files" "$loc/metadata" ~/reparasha-build/ 2. Replace the files under ~/reparasha-build/files/briefcase/app_packages. 3. Finish the build folder, which makes the app menu entry from the app's own files, then build a bundle from it and install that in place of the original. Your ribbon and settings stay in ~/.var/app/io.github.noamdesu.reparasha: flatpak build-finish ~/reparasha-build flatpak build-export ~/reparasha-repo ~/reparasha-build flatpak build-bundle ~/reparasha-repo reparasha-own.flatpak io.github.noamdesu.reparasha flatpak uninstall --user io.github.noamdesu.reparasha flatpak install --user reparasha-own.flatpak