ocrfeeder: Fix launch with patch (#179675)
This commit is contained in:
parent
ade5a53cf2
commit
9c544193df
@ -48,6 +48,11 @@ stdenv.mkDerivation rec {
|
||||
pygobject3
|
||||
]))
|
||||
];
|
||||
patches = [
|
||||
# Compiles, but doesn't launch without this, see:
|
||||
# https://gitlab.gnome.org/GNOME/ocrfeeder/-/issues/83
|
||||
./fix-launch.diff
|
||||
];
|
||||
|
||||
enginesPath = lib.makeBinPath ([
|
||||
tesseract4
|
||||
@ -64,7 +69,5 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ doronbehar ];
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
# Compiles, but doesn't launch, see: https://gitlab.gnome.org/GNOME/ocrfeeder/-/issues/83
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
|
13
pkgs/applications/graphics/ocrfeeder/fix-launch.diff
Normal file
13
pkgs/applications/graphics/ocrfeeder/fix-launch.diff
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git i/src/ocrfeeder/studio/studioBuilder.py w/src/ocrfeeder/studio/studioBuilder.py
|
||||
index 7a2ccdc..7af19d9 100644
|
||||
--- i/src/ocrfeeder/studio/studioBuilder.py
|
||||
+++ w/src/ocrfeeder/studio/studioBuilder.py
|
||||
@@ -144,7 +144,7 @@ class Studio:
|
||||
if not self.ocr_engines:
|
||||
engines = self.configuration_manager.getEnginesInSystem()
|
||||
if engines:
|
||||
- add_engines_dialog = widgetPresenter.SystemEnginesDialog(engines)
|
||||
+ add_engines_dialog = widgetPresenter.SystemEnginesDialog(self.main_window, engines)
|
||||
response = add_engines_dialog.run()
|
||||
if response == Gtk.ResponseType.ACCEPT:
|
||||
for engine in add_engines_dialog.getChosenEngines():
|
Loading…
Reference in New Issue
Block a user