Browse code

Add x11_options to browser-wrapper.

Xavier G authored on 10/03/2016 23:04:00
Showing 1 changed files
... ...
@@ -66,6 +66,13 @@ root_dir_options="
66 66
 slash_home_options="--bind=${slash_home_dir}:/home"
67 67
 #   - the home directory is almost empty
68 68
 home_options="--bind=${home_dir}:${HOME}"
69
+#   - the X11 stuff is still there (e.g. cursors and fonts)
70
+#     Note that, as per man 5 fonts-conf, ~/.fonts.conf and ~/.fonts.conf.d are
71
+#     deprecated.
72
+x11_options="
73
+	--bind=${HOME}/.icons:${HOME}/.icons
74
+	--bind=${HOME}/.fonts:${HOME}/.fonts
75
+	--bind=${HOME}/.fontconfig:${HOME}/.fontconfig"
69 76
 #   - its configuration directory is still there
70 77
 #   - its cache directory is still there
71 78
 browser_conf_options="
... ...
@@ -137,6 +144,7 @@ if [ -x "${proot_path}" ]; then
137 144
 		${root_dir_options} \
138 145
 		${slash_home_options} \
139 146
 		${home_options} \
147
+		${x11_options} \
140 148
 		${browser_conf_options} \
141 149
 		${download_options} \
142 150
 		${upload_options} \