aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPo Lu2025-03-04 14:32:48 +0800
committerPo Lu2025-03-04 14:32:48 +0800
commitfe7a8c92be6269f8fc7933eb6c190178839d0f8a (patch)
treed985e95c6954ea7a8fedfd6415d13f05970fcdd8 /doc
parentd9f93e8fdcc00ab81b678c6f7d3f9b67cb14bd6d (diff)
parent1b80bc67aadd01de00b7911ae32bf5d91b262a8a (diff)
downloademacs-fe7a8c92be6269f8fc7933eb6c190178839d0f8a.tar.gz
emacs-fe7a8c92be6269f8fc7933eb6c190178839d0f8a.zip
Merge from savannah/emacs-30
1b80bc67aad ; * doc/emacs/android.texi (Android Software): Minor mark... dcfbf7d1863 ; * etc/PROBLEMS: Document the same problem here. b09bbf22afd Document requirements respecting XDG MIME databases on An... 365a91622e0 ; (completion-preview--try-table): Propagate extra proper... # Conflicts: # lisp/completion-preview.el
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/android.texi42
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/emacs/android.texi b/doc/emacs/android.texi
index 568fd8022d1..c318373536a 100644
--- a/doc/emacs/android.texi
+++ b/doc/emacs/android.texi
@@ -1203,3 +1203,45 @@ installation within Emacs's home directory.
1203 In addition to the projects mentioned above, statically linked 1203 In addition to the projects mentioned above, statically linked
1204binaries for most Linux kernel-based systems can also be run on 1204binaries for most Linux kernel-based systems can also be run on
1205Android. 1205Android.
1206
1207@cindex XDG MIME database, Android
1208@cindex displaying SVG images with embeds, Android
1209 Emacs can be configured with support for viewing SVG image files by
1210means of the @code{librsvg} library. In SVG files, there may be
1211references to other images on the file-system, whose format
1212@code{librsvg} cannot detect by default, and which will be rendered as
1213blank squares unless an XDG-compliant @dfn{MIME database} is installed
1214into the directory @file{.local/share/mime} within your home directory.
1215
1216 As the XDG @code{shared-mime-info} tools must be available to generate
1217such a database, it is recommended to produce this database in a
1218temporary directory on a GNU/Linux or Unix system, before transferring
1219the same to the recipient Android device. With the latest release of
1220@code{shared-mime-info} installed, create a temporary directory in which
1221to generate the MIME database, copy the default
1222@file{freedesktop.org.in} MIME catalog to a directory named
1223@file{packages}, and execute @code{update-mime-info} to generate the
1224database:
1225
1226@example
1227$ mkdir -p my-mime-database/packages
1228$ cp /usr/share/mime/packages/freedesktop.org.xml my-mime-database/packages
1229$ update-mime-info my-mime-database
1230@end example
1231
1232This may print a series of notices stating that the MIME database
1233specified is not in the search path on your host system, which are of no
1234consequence. Proceed by transferring the contents of the MIME database
1235to the recipient system, e.g., to
1236@file{/sdcard/Download/my-mime-database.tar.gz}:
1237
1238@example
1239$ cd; mkdir -p .local/share
1240$ tar xfz /sdcard/Download/my-mime-database.tar.gz
1241$ mv my-mime-database .local/share/mime
1242$ rm /sdcard/Download/my-mime-database.tar.gz
1243@end example
1244
1245If your Emacs session has already attempted to display an SVG image with
1246embeds, Emacs must be restarted before the new MIME database will enter
1247into effect.