accept dicts with full paths (linux)

This commit is contained in:
Eric House 2020-09-28 16:12:24 -07:00
parent 2f849efe2a
commit 0f7d924a8e

View file

@ -158,7 +158,9 @@ initFromDictFile( LinuxDictionaryCtxt* dctx, const LaunchParams* params,
XP_U32 topOffset;
char path[256];
if ( !getDictPath( params, fileName, path, VSIZE(path) ) ) {
if ( file_exists( fileName ) ) {
snprintf( path, VSIZE(path), "%s", fileName );
} else if ( !getDictPath( params, fileName, path, VSIZE(path) ) ) {
XP_LOGF( "%s: path=%s", __func__, path );
goto closeAndExit;
}