mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-16 01:41:55 +00:00
Comply with the XDG Base Directory Specification
This commit is contained in:
@@ -6,7 +6,7 @@ unset SDCV_PAGER
|
||||
have=`"$PATH_TO_SDCV" --data-dir /tmp/bugagaga -l | wc -l`
|
||||
#do not count header
|
||||
have=$(($have-1))
|
||||
ndicts=`find "${HOME}"/.stardict/dic -name "*.ifo" -print | wc -l`
|
||||
ndicts=`find "${XDG_DATA_HOME:-$HOME/.local/share}"/stardict/dic -name "*.ifo" -print | wc -l`
|
||||
#ndicts=$(($ndicts+1))
|
||||
if [ $have -ne $ndicts ]; then
|
||||
ndicts=$(($ndicts-1))
|
||||
|
||||
Reference in New Issue
Block a user