Package: jdFlatpakSnapshot
jdFlatpakSnapshotA Program to create Snapshots of Flatpak AppsjdFlatpakSnapshot allows you to easily create. a Snapshot of all the Data of a Flatpak.
You can now play around and change the settings of the Flatpak or something else.
If something goes wrong, you can restore the Data from the Snapshot with one click.InstallFlatpakYou can get jdFlatpakSnapshot fromFlathubpipYou can install jdFlatpakSnapshot fromPyPIusingpip:pipinstalljdFlatpakSnapshotUsing this Method, it will not include a Desktop Entry or any other Data file, so you need to run jdFlatpakSnapshot from the Command Line.
Use this only, when nothing else works.From sourceThis is only for experienced Users and someone, who wants to package jdFlatpakSnapshot for a Distro.
jdFlatpak should be installed as a Python package.
You can usepipor any other tool that can handle Python packages.
YOu need to havelreleaseinstalled to build the Package.
After that, you should runinstall-unix-datafiles.pywhich wil install things like the Desktop Entry or the Icon in the correct place.
It defaults to/usr, but you can change it with the--prefixargument.
It also applies the translation to this files.
You need gettext installed to runinstall-unix-datafiles.py.Here's a example of installing jdFlatpakSnapshot into/usr/local:sudopipinstall--prefix/usr/local.
sudo./install-unix-datafiles.py--prefix/usr/localTranslateYou can help translating jdFlatpakSnapshot onCodeberg TranslateDevelopjdFlatpak is written in Python and uses PyQt6 as GUI toolkit. You should have some experience in both.
You can runjdFlatpakSnapshot.pyto start jdFlatpakSnapshot from source and test your local changes.
It ships with a few scripts in the tools directory that you need to develop.CompileUI.pyThis is the most important script. It will take all.uifiles injdFlatpakSnapshot/uiand compiles it to a Python class
and stores it injdFlatpakSnapshot/ui_compiled. Without running this script first, you can't start jdFlatpakSnapshot.
You need to rerun it every time you changed or added a.uifile.BuildTranslations.pyThis script takes all.tsfiles and compiles it to.qmfiles.
The.tsfiles are containing the translation source and are being used during the translation process.
The.qmcontains the compiled translation and are being used by the Program.
You need to compile a.tsfile to a.qmfile to see the translations in the Program.UpdateTranslations.pyThis regenerates the.tsfiles. You need to run it, when you changed something in the source code.
The.tsfiles are contains the line in the source, where the string to translate appears,
so make sure you run it even when you don't changed a translatable string, so the location is correct.UpdateUnixDataTranslations.pyThis regenerates the translation files indeploy/translations. these files contains the translations for the Desktop Entry and the AppStream File.
It uses gettext, as it is hard to translate this using Qt.
These files just exists to integrate the translation with Weblate, because Weblate can't translate the Desktop Entry and the AppStream file.
Make sure you run this when you edited one of these files.
YOu need to have gettext installed to use it.UpdateTranslators.pyThis uses git to get a list of all Translators and writes it tojdFlatpakSnapshot/data/translators.json.
This is used to display the translators in the About Dialog.
You need git to run this script.WriteChangelogHtml.pyThis read the Changelog fromdeploy/page.codeberg.JakobDev.jdFlatpakSnapshot.metainfo.xml, converts it to HTML and writes it tojdFlatpakSnapshot/data/changelog.html.
This is used to display the Changelog in the About Dialog.
You needappstream-pythonto be installed to use this script.