diff --git a/urw-base35-fonts.spec b/urw-base35-fonts.spec index 8642915..bfc370e 100644 --- a/urw-base35-fonts.spec +++ b/urw-base35-fonts.spec @@ -154,7 +154,7 @@ # # NOTE: 'xset' is an utility requiring X server to be running. Because of it, # the 'xset fp rehash' will fail to udpate its font database, when the -# X server is stopped. This has been already reported: +# X server is stopped. This has been already reported (and closed): # https://bugzilla.redhat.com/show_bug.cgi?id=1466254 %global posttrans_scriptlet() \ ( \ @@ -162,7 +162,8 @@ mkfontscale %{_fontdir} \ mkfontdir %{_fontdir} \ fc-cache %{_fontdir} \ - xset fp rehash \ + export DISPLAY=:0 \ + xset fp rehash &> /dev/null || : \ \ rm -rf %{tmpdir} \ fi \