While using x11
module for node.js
, application must be detached from the console from within the application. It is possible to start node
in background with node myapp.js > /dev/null &
but how to detach from within the program itself?
Asked
Active
Viewed 209 times
0

exebook
- 32,014
- 33
- 141
- 226
-
why should it be detached? I saw quite a lot of x11 apps that don't – alex Feb 02 '14 at 13:23
1 Answers
0
I'm author of node-x11, but your questions seems to be generic and not related to x11.
Example where you might want to detach from terminal is implementing xclip in js ( see this discussion )
Lots of possible solutions here tl;dr - if you don't want to detach it from outside with nohup
you can use module like daemon

Community
- 1
- 1

Andrey Sidorov
- 24,905
- 4
- 62
- 75