Make sure XDG_DATA_HOME is used, if set.
This commit is contained in:
parent
abeb18eee6
commit
f8702c6c67
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
DIRECTORY=${HOME}/.local/share/rofi/themes/
|
||||
xdg=${${XDG_DATA_HOME}:-${HOME}/.local/share}
|
||||
DIRECTORY="${xdg}/rofi/themes/}"
|
||||
|
||||
if [ ! -d "${DIRECTORY}" ]
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue