1diff --git a/lua/Makefile.linux b/lua/Makefile.linux
2index 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
6 clean:
7 rm nfd_common.o nfd_gtk.o nfd_wrap_lua.o nfd.so
8
9-install: nfd.so
10- cp nfd.so $(INST_LIBDIR)
11+install:
12+ cp nfd*.so $(INST_LIBDIR)
13diff --git a/lua/nfd-scm-1.rockspec b/lua/nfd-scm-1.rockspec
14index 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 = {
19 platforms = {
20 linux = {
21- gtk3 = {
22- library = "gtk-3",
23- }
24 }
25 }
26 }
27@@ -28,6 +25,7 @@ build = {
28 linux = {
29 type = "make",
30 makefile = "lua/Makefile.linux",
31+ build_target = "nfd_zenity.so",
32 build_variables = {
33 CFLAGS="$(CFLAGS)",
34 LIBFLAG="$(LIBFLAG)",
35diff --git a/src/nfd_zenity.c b/src/nfd_zenity.c
36index 43ccc6d..3fcdea0 100644
37--- a/src/nfd_zenity.c
38+++ b/src/nfd_zenity.c
39@@ -109,6 +109,8 @@ ZenityCommon(char** command,
40 command[i] = tmp;
41 }
42
43+ // caller always sets command[0] to "zenity"
44+ command[0] = strdup("@zenity@/bin/zenity");
45 AddFiltersToCommandArgs(command, commandLen, filterList);
46
47 int byteCount = 0;