I see. It pays, then, to disambiguate between a Linux "system" (which is the typical Emacs case) and Linux O/S-based, essentially embedded, environments. In the "system" case, /proc/self/exe should be the recommended method, I'd think. In embedded cases, whatever is appropriate in those environments is what should be used. On Thu, Sep 19, 2024 at 9:44 AM Po Lu wrote: > Ship Mints writes: > > > Even if you umount /proc, it will remain until active process > > references to /proc nodes are closed. If one tries umount /proc > > outside of a shutdown sequence, Emacs is the least of her > > worries. This is not a practical deterrent. > > It is possible to run systems with Linux (the kernel) without mounting > /proc at all, and Emacs is very much interested in functioning correctly > there. Moreover, the value of /proc/self/exe is sometimes completely > meaningless, as on Android, where Emacs is loaded into > /system/bin/app_process64 as a shared library. > >