diff --git a/noice.c b/noice.c index 2aa32049..aa0e8723 100644 --- a/noice.c +++ b/noice.c @@ -645,7 +645,7 @@ nochange: filter = xstrdup(ifilter); goto out; case S_IFREG: - bin = openwith(name); + bin = openwith(newpath); if (bin == NULL) { printmsg("No association"); free(newpath);