diff options
author | Doron Behar <doron.behar@gmail.com> | 2022-07-01 18:21:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 15:21:36 +0000 |
commit | 9c544193df8a1e7f083a7d3261f78e71f588f3e7 (patch) | |
tree | 6008c4de5af00c7daf094515afca2d8b9fc54686 /pkgs/applications/graphics/ocrfeeder | |
parent | ade5a53cf2bb873692a7a73071acf723a67eee1a (diff) |
ocrfeeder: Fix launch with patch (#179675)
Diffstat (limited to 'pkgs/applications/graphics/ocrfeeder')
-rw-r--r-- | pkgs/applications/graphics/ocrfeeder/default.nix | 7 | ||||
-rw-r--r-- | pkgs/applications/graphics/ocrfeeder/fix-launch.diff | 13 |
2 files changed, 18 insertions, 2 deletions
diff --git a/pkgs/applications/graphics/ocrfeeder/default.nix b/pkgs/applications/graphics/ocrfeeder/default.nix index 2cd3299c6175f..9e516f211069d 100644 --- a/pkgs/applications/graphics/ocrfeeder/default.nix +++ b/pkgs/applications/graphics/ocrfeeder/default.nix @@ -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; }; } diff --git a/pkgs/applications/graphics/ocrfeeder/fix-launch.diff b/pkgs/applications/graphics/ocrfeeder/fix-launch.diff new file mode 100644 index 0000000000000..c6f10c2b11019 --- /dev/null +++ b/pkgs/applications/graphics/ocrfeeder/fix-launch.diff @@ -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(): |