Patent Toolkit is built with the Qt toolkit, Copyright © The Qt Company Ltd, used under the GNU Lesser General Public License, version 3 through the PySide6 Python bindings. The full license texts are inside the application at Help → Acknowledgments, along with credits for every other open source component we use.
The LGPL gives you the right to replace the Qt libraries this application ships with your own build and run the application against them. This page tells you how, and where to get the source.
Nothing here is needed to use Patent Toolkit. It is for people exercising a license right.
Which version you have
We do not print a version number here, because releases carry different ones and a stale number would send you to the wrong source. Ask your own copy:
On macOS:
strings -a "/Applications/Patent Toolkit.app/Contents/Resources/app_packages/PySide6/Qt/lib/QtCore.framework/Versions/A/QtCore" | grep -m1 '^Qt 6\.'
On Windows:
$p = (Get-AppxPackage -Name *PatentToolkit*).InstallLocation
(Get-Item "$p\app_packages\PySide6\Qt6Core.dll").VersionInfo.ProductVersion
Below, <ver> means that version.
Getting the source
The Qt we ship is the unmodified binary from the official PySide6 wheels on PyPI. We compile nothing and patch nothing, so the corresponding source is the upstream release:
- Qt — open the Qt source archive and
go to your version, then
single/. For Qt 6.11.1 that is6.11/6.11.1/single/. - PySide6 — open
the PySide6 release archive
and go to the
PySide6-<ver>-srcfolder for your version.
If you would rather have it from us than from upstream, write to [email protected] and we will send it.
Replacing Qt on macOS
You will need Xcode command line tools and Python 3.12.
1. Copy the application somewhere you can write, so the original stays intact.
cp -R "/Applications/Patent Toolkit.app" ~/Desktop/
APP=~/Desktop/"Patent Toolkit.app"
AP="$APP/Contents/Resources/app_packages"
2. Save the application’s entitlements while the copy is untouched, and remove the one an ad-hoc signature cannot claim.
codesign -d --entitlements - --xml "$APP" > /tmp/ent.plist
/usr/libexec/PlistBuddy -c "Delete :com.apple.application-identifier" /tmp/ent.plist
3. Prepare your Qt.
python3.12 -m venv /tmp/qtwork
/tmp/qtwork/bin/pip install PySide6-Essentials==<ver> PySide6-Addons==<ver>
SP=/tmp/qtwork/lib/python3.12/site-packages
Then put your own Qt build into $SP/PySide6/Qt/lib/.
4. Replace both packages. PySide6 depends on the sibling shiboken6
package, and the two are released together — replace them as a pair.
rm -rf "$AP/PySide6" && cp -R "$SP/PySide6" "$AP/PySide6"
rm -rf "$AP/shiboken6" && cp -R "$SP/shiboken6" "$AP/shiboken6"
5. Sign what you added. This step is required. macOS terminates the application immediately if it runs any unsigned library, and the only symptom is the app quitting with no message.
find "$AP/PySide6" "$AP/shiboken6" -type f -print0 | xargs -0 file \
| grep Mach-O | sed 's/ (for architecture [^)]*)//' \
| cut -d: -f1 | sort -u > /tmp/macho-list.txt
tr '\n' '\0' < /tmp/macho-list.txt | xargs -0 -n1 codesign --force --sign -
Sign the individual binaries as shown, not the .framework folders — signing a
folder appears to succeed while doing nothing.
6. Re-sign the application and launch it.
codesign --force --sign - --entitlements /tmp/ent.plist --options runtime "$APP"
xattr -dr com.apple.quarantine "$APP"
open "$APP"
macOS does not recognize the new signature, so the first launch may be refused. Open it once with right-click → Open, or allow it under System Settings → Privacy & Security.
To check which Qt is loaded while it runs:
PID=$(pgrep -f "Patent Toolkit.app/Contents/MacOS")
lsof -p "$PID" -F n | sed -n 's/^n//p' | grep 'QtCore$'
Replacing Qt on Windows
You will need Developer Mode on (Settings → System → For developers — turning it on needs an administrator, nothing afterwards does) and Python 3.12.
The installed application lives in a folder Windows will not let you write to, so you make a copy, change the copy, and register it as a second application. The original is left alone and keeps working.
1. Copy the installed files.
$src = (Get-AppxPackage -Name *PatentToolkit*).InstallLocation
robocopy $src "$HOME\relink" /E
Remove-Item "$HOME\relink\AppxSignature.p7x"
Deleting AppxSignature.p7x is required. It records that the package came from
the Microsoft Store, and while it is present Windows refuses to register your
copy at all.
2. Prepare your Qt.
py -3.12 -m venv $HOME\qtwork
& $HOME\qtwork\Scripts\pip install PySide6-Essentials==<ver> PySide6-Addons==<ver>
$SP = "$HOME\qtwork\Lib\site-packages"
Use the win_amd64 wheels even on an ARM64 machine — Patent Toolkit is a 64-bit
Intel package and runs emulated on ARM64, so ARM64 libraries will not load.
3. Replace both packages.
$AP = "$HOME\relink\app_packages"
Remove-Item "$AP\PySide6" -Recurse -Force; robocopy "$SP\PySide6" "$AP\PySide6" /E
Remove-Item "$AP\shiboken6" -Recurse -Force; robocopy "$SP\shiboken6" "$AP\shiboken6" /E
Test before going further. If anything is wrong, the packaged application simply does not start — no window, no error, nothing in any log. In the virtualenv the same fault is a readable message:
& $HOME\qtwork\Scripts\python -c "from PySide6.QtWidgets import QApplication; from PySide6.QtCore import QLibraryInfo; print(QLibraryInfo.build())"
4. Give your copy its own identity. Open $HOME\relink\AppxManifest.xml and
change Publisher on the <Identity> line to any different value, for example
Publisher="CN=Your Name Here". This is what makes your copy a separate
application rather than a competing copy of ours.
5. Register and launch it.
Add-AppxPackage -Register "$HOME\relink\AppxManifest.xml"
Get-AppxPackage -Name *PatentToolkit* | Select-Object PackageFamilyName, SignatureKind
Start-Process "shell:appsFolder\<your PackageFamilyName>!PatentToolkit"
Your copy runs from $HOME\relink, so leave that folder in place. Both entries
are named "Patent Toolkit", which is why launching by identity is clearer than
clicking.
To undo everything, run Remove-AppxPackage on your package and delete the
folder.
What you give up
- On macOS, the application is no longer notarized by Apple, and it gets a fresh, empty settings container — your preferences, activity history and saved folder permissions will not carry over.
- On Windows, your copy is unsigned and will not receive updates. It shares its settings and history with the installed copy, so the two are not isolated from one another.
- We cannot support a modified build. If you hit a problem, please reproduce it on the unmodified application before contacting us.
Questions
Write to [email protected].