Hello community, here is the log from the commit of package rofi-calc for openSUSE:Factory checked in at 2020-05-04 18:39:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rofi-calc (Old) and /work/SRC/openSUSE:Factory/.rofi-calc.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rofi-calc" Mon May 4 18:39:35 2020 rev:8 rq:799966 version:1.7 Changes: -------- --- /work/SRC/openSUSE:Factory/rofi-calc/rofi-calc.changes 2020-01-24 13:13:46.929496177 +0100 +++ /work/SRC/openSUSE:Factory/.rofi-calc.new.2738/rofi-calc.changes 2020-05-04 18:40:29.649048156 +0200 @@ -1,0 +2,9 @@ +Mon May 4 06:42:59 UTC 2020 - Michael Vetter <mvet...@suse.com> + +- Update to 1.7: + * Fix file descriptor leak (#42) + * Add a note about saving the result to clipboard (#43) + * Document how to change decimal separator (#44) + * Use echo -n for clipboard + +------------------------------------------------------------------- Old: ---- v1.6.tar.gz New: ---- v1.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rofi-calc.spec ++++++ --- /var/tmp/diff_new_pack.oANxJ7/_old 2020-05-04 18:40:31.021050985 +0200 +++ /var/tmp/diff_new_pack.oANxJ7/_new 2020-05-04 18:40:31.025050994 +0200 @@ -1,7 +1,7 @@ # # spec file for package rofi-calc # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: rofi-calc -Version: 1.6 +Version: 1.7 Release: 0 Summary: Calculator for rofi License: MIT ++++++ v1.6.tar.gz -> v1.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rofi-calc-1.6/.gitignore new/rofi-calc-1.7/.gitignore --- old/rofi-calc-1.6/.gitignore 2020-01-23 07:54:20.000000000 +0100 +++ new/rofi-calc-1.7/.gitignore 2020-05-03 02:43:53.000000000 +0200 @@ -2,6 +2,7 @@ *.m4 ar-lib *.cache +.clangd compile depcomp install-sh diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rofi-calc-1.6/README.md new/rofi-calc-1.7/README.md --- old/rofi-calc-1.6/README.md 2020-01-23 07:54:20.000000000 +0100 +++ new/rofi-calc-1.7/README.md 2020-05-03 02:43:53.000000000 +0200 @@ -65,7 +65,9 @@ * `{expression}`: the left-side of the equation (currently not available when using `-terse`) * `{result}`: the right of the equation -The following example copies the result to the clipboard (NOTE: `{result}` should be quoted since it may contain characters that your shell would otherwise interpret): +The following example copies the result to the clipboard upon pressing the key combination defined by `-kb-accept-custom` +(by default Control+Return). +NOTE: `{result}` should be quoted since it may contain characters that your shell would otherwise interpret: rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo '{result}' | xclip" @@ -91,6 +93,13 @@ digit_grouping=1 +To use a different output format for numeric representations (for instance, some locales use `,` instead of `.` as a decimal separator), +set `LC_NUMERIC` to a different value like this: + + LC_NUMERIC=de_DE.UTF-8 rofi -show calc -modi calc -no-show-match -no-sort + +Make sure the locale is actually available on your system! + ## Development If you're developing this, it might be helpful to start rofi directly with a locally compiled plugin like this: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rofi-calc-1.6/src/calc.c new/rofi-calc-1.7/src/calc.c --- old/rofi-calc-1.6/src/calc.c 2020-01-23 07:54:20.000000000 +0100 +++ new/rofi-calc-1.7/src/calc.c 2020-05-03 02:43:53.000000000 +0200 @@ -483,6 +483,12 @@ unsigned int line_length = strcspn(stdout_buf, "\n"); *last_result = g_strndup(stdout_buf, line_length); + g_input_stream_close(stdout_stream, NULL, &error); + + if (error != NULL) { + g_error("Process errored with: %s", error->message); + g_error_free(error); + } rofi_view_reload(); }