diff options
author | B. Watson | 2019-12-24 15:18:59 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2019-12-31 12:06:24 +0100 |
commit | dcc93ee3c92bcff39afcf54395f8b1d87b04968a (patch) | |
tree | d0fd7d1e7f87eff1456f59e6d9a4227b157037ed /system/univga-font/doinst.sh | |
parent | 481e2b420144a388d6548c4867175340ceb0cf63 (diff) | |
download | slackbuilds-dcc93ee3c92bcff39afcf54395f8b1d87b04968a.tar.gz |
system/univga-font: Update doinst.sh.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system/univga-font/doinst.sh')
-rw-r--r-- | system/univga-font/doinst.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/univga-font/doinst.sh b/system/univga-font/doinst.sh index 4316eac64c..11dff54efe 100644 --- a/system/univga-font/doinst.sh +++ b/system/univga-font/doinst.sh @@ -11,6 +11,11 @@ if [ -x /usr/bin/mkfontdir -a -x /usr/bin/mkfontscale ]; then ) fi +# If X is running... +if [ "$DISPLAY" != "" ] && [ -x /usr/bin/xset ]; then + /usr/bin/xset fp rehash >/dev/null 2>&1 +fi + # Update the X font indexes: if [ -x /usr/bin/fc-cache ]; then /usr/bin/fc-cache -f |