nixpkgs/pkgs/by-name/gn/gnome-frog/update-compatible-with-non-flatpak-env.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
532 B
Diff
Raw Normal View History

2022-07-19 05:06:10 +00:00
diff --git a/frog/language_manager.py b/frog/language_manager.py
2024-02-13 04:43:08 +00:00
index d822c44..bc289db 100644
2022-07-19 05:06:10 +00:00
--- a/frog/language_manager.py
+++ b/frog/language_manager.py
2024-02-13 04:43:08 +00:00
@@ -193,7 +193,7 @@ class LanguageManager(GObject.GObject):
2022-07-19 05:06:10 +00:00
os.mkdir(tessdata_dir)
dest_path = os.path.join(tessdata_dir, 'eng.traineddata')
- source_path = pathlib.Path('/app/share/appdata/eng.traineddata')
+ source_path = pathlib.Path('@out@/share/appdata/eng.traineddata')
if os.path.exists(dest_path):
return