-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfig.sh
More file actions
executable file
·29 lines (22 loc) · 791 Bytes
/
config.sh
File metadata and controls
executable file
·29 lines (22 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
# Non writable directories are a pain in the ass since xdg-app rm -rf
# can't remove files in them
find /usr -type d -exec chmod u+w {} \;
# Configure fontconfig to look in /app
mkdir -p /app/cache/fontconfig/
mkdir -p /app/etc/fonts/conf.d/
cat >/app/etc/fonts/conf.d/50-flatpak.conf <<EOF
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<cachedir>/usr/cache/fontconfig</cachedir>
<dir>/app/share/fonts</dir>
<cachedir>/app/cache/fontconfig</cachedir>
<include ignore_missing="yes">/app/etc/fonts/local.conf</include>
<dir>/run/host/fonts</dir>
</fontconfig>
EOF
# Configure ld.so to look in /app
mkdir -p /app/etc/ld.so.conf.d/
echo "/app/lib64" > /app/etc/ld.so.conf.d/app.conf
/sbin/ldconfig