Skip to content

Commit

Permalink
Automatically add installed opendict dictionaries (/usr/share/opendict)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tvangeste committed Jul 18, 2013
1 parent af0fceb commit ba1f38b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ Class load() throw( exError )
if ( QDir( "/usr/share/dictd" ).exists() )
c.paths.push_back( Path( "/usr/share/dictd", true ) );

if ( QDir( "/usr/share/opendict/dictionaries" ).exists() )
c.paths.push_back( Path( "/usr/share/opendict/dictionaries", true ) );

if ( QDir( "/usr/share/goldendict-wordnet" ).exists() )
c.paths.push_back( Path( "/usr/share/goldendict-wordnet", true ) );

Expand Down

0 comments on commit ba1f38b

Please sign in to comment.