I am building an electron app and I need to make a decision depending on if the app is an AppImage. The image itself is mounted in a directory, so sys.argv contains nothing that helps. Any ideas?
Asked
Active
Viewed 485 times
1 Answers
4
If the app is an AppImage, process.env.APPIMAGE
contains the path to the .AppImage file, otherwise it is undefined.
Some of the other properties of process.env
can be helpful, such as APPDIR
which contains the path of the temporary directory where the actual image is mounted.

Sage comme une image
- 56
- 1
-
Thanks so much! That what I needed – HelloWorld Jun 24 '21 at 21:35