Add various fixes
This is related to submitting my flatpak package to the Flathub repository:
https://github.com/flathub/flathub/pull/825
https://github.com/scx/flathub/tree/org.gnome.OCRFeeder
https://github.com/scx/ocrfeeder-flatpak
1. Update desktop file
Flatpak equivalent:
Notes:
To check StartupWMClass, you can use xprop WM_CLASS
.
2. Add AppData file
Flatpak equivalent:
Notes:
3. Rename files because of new Application ID
Flatpak equivalent:
4. Update translations
Flatpak equivalent:
None
Notes:
Reuse the translation for Comment
field from desktop file, but without dot at the end.
5. Update window icon
Flatpak equivalent:
None
Notes:
Use the org.gnome.OCRFeeder
icon from current theme for all windows.
The main advantage is that it can use a larger pixmap and there is no longer need to set an icon for each window.
6. Set automake strictness to foreign
Flatpak equivalent:
None
Notes:
Backported from Debian (Alberto Garcia)
Set automake strictness to foreign
This removes lots of warnings from dh-autoreconf.
7. Add missing options to the ocrfeeder-cli manpage
Flatpak equivalent:
None
Notes:
Backported from Debian (Alberto Garcia)
Add missing options to the ocrfeeder-cli manpage
https://bugzilla.gnome.org/show_bug.cgi?id=761590
https://bugs.debian.org/813496
8. Fix image preview
Flatpak equivalent:
Notes:
Image preview after unpapering page without this patch: https://i.paste.pics/c956a07720e9d5f14dd9d877acb78d6e.png
9. Fix OCR engine list and set Tesseract as default engine
Flatpak equivalent:
Notes:
Sorting engine list important here. Without this patch, OCRFeeder may display incorrect favorite engine in Preferences dialog window after removing the current default engine in OCR Engines dialog window. So this is actually a bugfix.
10. Set favorite engine as default engine for content area
Flatpak equivalent:
Notes:
OCRFeeder should use favorite engine as the default engine for content area.
11. Set fixed width for both panes
Flatpak equivalent:
Notes:
There is no reason to increase size of left pane when resizing window.
Left panel size without this patch: https://i.paste.pics/82d9a422fa9722916694bcbb913fe7c8.png
12. Increase window size
Flatpak equivalent:
Notes:
Default window size is just too small.
Default window size without this patch: https://i.paste.pics/c1714ea5cb857c50406b53b91a453232.png
13. Disable unpaper frame in sandbox mode
Flatpak equivalent:
Notes:
Disable unpaper frame in Preferences dialog window when running in sandbox mode. There is no reason to manually set the path to unpaper
in sandboxed environment.
Use ./configure --enable-sandbox
to enable this behavior.
Preferences dialog window without this patch: https://i.paste.pics/614f284d27c52814fe47f8aa7f664268.png