1 diff --git a/lua/Makefile.linux b/lua/Makefile.linux
2 index 9f5aa68..77660d4 100644
3 --- a/lua/Makefile.linux
4 +++ b/lua/Makefile.linux
5 @@ -37,5 +37,5 @@ nfd_zenity.o: src/nfd_zenity.c
7 rm nfd_common.o nfd_gtk.o nfd_wrap_lua.o nfd.so
10 - cp nfd.so $(INST_LIBDIR)
12 + cp nfd*.so $(INST_LIBDIR)
13 diff --git a/lua/nfd-scm-1.rockspec b/lua/nfd-scm-1.rockspec
14 index 503399d..2d0a7da 100644
15 --- a/lua/nfd-scm-1.rockspec
16 +++ b/lua/nfd-scm-1.rockspec
17 @@ -17,9 +17,6 @@ supported_platforms = { "linux", "macosx", "windows" }
18 external_dependencies = {
27 @@ -28,6 +25,7 @@ build = {
30 makefile = "lua/Makefile.linux",
31 + build_target = "nfd_zenity.so",
35 diff --git a/src/nfd_zenity.c b/src/nfd_zenity.c
36 index 43ccc6d..3fcdea0 100644
37 --- a/src/nfd_zenity.c
38 +++ b/src/nfd_zenity.c
39 @@ -109,6 +109,8 @@ ZenityCommon(char** command,
43 + // caller always sets command[0] to "zenity"
44 + command[0] = strdup("@zenity@/bin/zenity");
45 AddFiltersToCommandArgs(command, commandLen, filterList);