rmkit icon indicating copy to clipboard operation
rmkit copied to clipboard

Fix matching of Proc::check_args if cmdline contains non-exe path

Open JanLuca opened this issue 3 years ago • 1 comments

In the current version Proc::check_args matches all arguments of the cmdline to the needle to check if a program is already running. This check returns wrong result if for example the path /home/root/.local/share/remarkable/xochitl is somewhere in the cmdline arguments.

The new version just matches the first argument of the cmdline and only checks for further args if the first program is a known interpreter (sh, bash, python).

Fixes #127.

Signed-off-by: Jan Luca Naumann [email protected]

JanLuca avatar May 25 '21 06:05 JanLuca

thank you for the patch, I will review it this coming weekend

raisjn avatar May 27 '21 18:05 raisjn