[tracker-miners/wip/carlosg/cli-improvements: 26/47] tracker: Integrate pager with "tracker3 extract" command
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/cli-improvements: 26/47] tracker: Integrate pager with "tracker3 extract" command
- Date: Wed, 19 Aug 2020 11:31:31 +0000 (UTC)
commit aea0429b028b6b30d72d89c40a4130e2a63ccde3
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Aug 17 17:25:26 2020 +0200
tracker: Integrate pager with "tracker3 extract" command
On metadata output, as it's likely to overflow the terminal size.
src/tracker/tracker-extract.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/tracker/tracker-extract.c b/src/tracker/tracker-extract.c
index d4b5220f0..07f8a42e8 100644
--- a/src/tracker/tracker-extract.c
+++ b/src/tracker/tracker-extract.c
@@ -52,6 +52,8 @@ extract_files (char *output_format)
char *tracker_extract_path;
GError *error = NULL;
+ tracker_term_pipe_to_pager ();
+
tracker_extract_path = g_build_filename(LIBEXECDIR, "tracker-extract-3", NULL);
for (p = filenames; *p; p++) {
@@ -71,6 +73,8 @@ extract_files (char *output_format)
}
}
+ tracker_term_pager_close ();
+
g_free (tracker_extract_path);
return EXIT_SUCCESS;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]