twin icon indicating copy to clipboard operation
twin copied to clipboard

Prefix not honoured by twin (server/wrapper.c)

Open vanrein opened this issue 4 years ago • 1 comments

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.

vanrein avatar Jul 31 '19 04:07 vanrein

Thanks for reporting this issue, I will check why server/wrapper.c does not see BINDIR value and try to fix it.

cosmos72 avatar Aug 01 '19 20:08 cosmos72