Skip to content

No such file or directory, /storage/emulated on Android with org-roam #1425

@mcrocker

Description

@mcrocker

Expected behavior

M-x org-roam-node-find followed by selection of a node stored on the Android sdcard should open the selected node.

M-x org-roam-capture should open a capture buffer.

Actual behavior

M-x org-roam-node-find followed by selection of a node stored on the Android sdcard produces a message that includes:

no such file or directory, /storage/emulated

However, a buffer for the node is opened, but not presented.

If the Acton is repeated, there is no error message, and the buffer is presented.

M-x org-roam-capture should open a capture buffer, but the message above is generated, and no capture buffer is created. Repeating the process does not produce any different results.

Steps to reproduce the problem

Install the Emacs signed version of Termux and Android Emacs as described by the README at the bottom of https://sourceforge.net/projects/android-ports-for-gnu-emacs/files/termux/

It is very important to include the steps about creating early-init.el and external document storage.

If org-roam is installed using package-install, at this point and the org-roam-directory set to point to a directory on the sdcard, it works as expected:

  • Note: some dependencies need to be installed in termux,

If, however, prelude is installed, using the curl method, and then org-roam is installed, and the org-roam-directory set to point to a directory on the sdcard, then the problem behavior results:

  • Note: curl puts . emacs.d in the termux home, so it has to be moved to Emacs home before prelude will work,
  • early-init should be moved to .emacs.d/personal/preload/

Environment & Version information

Pixel tablet, and Pixel Fold

Emacs version

termux-app_apt-android-7-release_universal.apk and emacs-30.0.92-29-arm64-v8a-termux.apk.

Operating system

GrapheneOS build 2024120900 based on Android Open Source version 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions