twin
twin copied to clipboard
Prefix not honoured by twin (server/wrapper.c)
Twin is nice :)
I installed it with --prefix=/opt/twin
and found only one problem: the twin
wrapper does not find twin_server
because it insists on /usr/local/bin/twin_server
.
This is caused by the prefix BINDIR
which is not defined for server/wrapper.c
and not relative like in client/dm.c
. A simple workaround that worked for me was to replace twin
with a symbolic link to twin_server
in the targeted prefix,
rm /opt/twin/bin/twin
ln -s twin_server /opt/twin/bin/twin
It would of course also be possible to parse argv[0]
in server/wrapper.c
replace the last component, but that's more work.
Thanks for reporting this issue,
I will check why server/wrapper.c
does not see BINDIR
value and try to fix it.