websockify icon indicating copy to clipboard operation
websockify copied to clipboard

Relative paths doesn't work

Open srajan96 opened this issue 4 years ago • 3 comments

Websockify is unable to find files when given a relative path, say, ./run --token-plugin TokenFile --token-source tokens.list --web ../../ 6080 --verbose Gives a error: handler exception: [Errno 2] No such file or directory: 'tokens.list' exception Whereas the file exists in the same folder.

However, while giving absolute path like: ./run --token-plugin TokenFile --token-source /mnt/c/Users/Srajan/Downloads/noVNC-1.2.0/noVNC-1.2.0/utils/websockify/tokens.list --web ../../ 6080 --verbose The tokens get resolved successfully.

I have checked this for bash on windows.

srajan96 avatar Dec 30 '20 01:12 srajan96

You sure this is Windows specific, @samhed?

CendioOssman avatar Jan 05 '21 13:01 CendioOssman

Yes, specifying a relative path as token source works on Linux

samhed avatar Jan 05 '21 13:01 samhed