fontconfig: fix smack issue from /opt/share/fonts, ~/.fonts/, ~/.fontconfig 58/182158/1 accepted/tizen/unified/20180629.154141 submit/tizen/20180628.080817
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 22 Feb 2018 05:18:51 +0000 (14:18 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Thu, 21 Jun 2018 03:33:32 +0000 (12:33 +0900)
Change-Id: Ia43e2119b95c02882cbb83baf8ddfffbac1215bd

fonts.conf.in
packaging/fontconfig.spec

index 2019923..7991405 100644 (file)
@@ -32,7 +32,7 @@
        @FC_FONTPATH@
        <dir prefix="xdg">fonts</dir>
        <!-- the following element will be removed in the future -->
-       <dir>~/.fonts</dir>
+       <dir>~/share/fonts</dir>
 
 <!--
   Accept deprecated 'mono' alias, replacing it with 'monospace'
@@ -80,7 +80,7 @@
        <cachedir>@FC_CACHEDIR@</cachedir>
        <cachedir prefix="xdg">fontconfig</cachedir>
        <!-- the following element will be removed in the future -->
-       <cachedir>~/.fontconfig</cachedir>
+       <cachedir>~/.cache/fontconfig</cachedir>
 
        <config>
 <!--
index ed42479..7ab9ae2 100644 (file)
@@ -104,6 +104,12 @@ chmod 755 %{TZ_SYS_VAR}/cache/fontconfig
 chsmack -t %{TZ_SYS_VAR}/cache/fontconfig
 chsmack -a User::App::Shared %{TZ_SYS_VAR}/cache/fontconfig
 
+mkdir -p %{TZ_SYS_SHARE}/fonts
+chown app_fw:users %{TZ_SYS_SHARE}/fonts
+chmod 755 %{TZ_SYS_SHARE}/fonts
+chsmack -t %{TZ_SYS_SHARE}/fonts
+chsmack -a User::App::Shared %{TZ_SYS_SHARE}/fonts
+
 # Skip making fontconfig cache folder for users. (/opt/home/app/.cache)
 # The path will be changed according to a name of user.
 #rm -rf %{TZ_USER_CACHE}/fontconfig