mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Add Clapper deamon subprocess
Daemon is responsible for starting and later watching over spawned "broadwayd" and "remote" app needed for remote playback control. We cannot use systemd n Flatpak, so we make do with running optional background subprocesses.
This commit is contained in:
@@ -296,13 +296,14 @@ class ClapperPlayerBase extends GstPlayer.Player
|
||||
if(!this.webapp)
|
||||
this.webapp = new WebApp();
|
||||
|
||||
this.webapp.startRemoteApp();
|
||||
this.webapp.startDaemonApp();
|
||||
}
|
||||
else
|
||||
this.webapp.stopRemoteApp();
|
||||
this.webapp.stopDaemonApp();
|
||||
}
|
||||
else if(this.webserver) {
|
||||
/* remote app will close too when connection is lost */
|
||||
/* remote app will close when connection is lost
|
||||
* which will cause the daemon to close too */
|
||||
this.webserver.stopListening();
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user