Open Mavyre opened 3 years ago
I can look into it.
On macOS you could just run it from terminal as a background process, something like
> ./discord-np-macos > /dev/null 2>&1 &
[1] 11257
> disown %1
and then close the terminal
You can kill it later by killing the pid
> ps | grep discordnp
> kill 11257
I run mine as a systemd service on Linux. I don't know if macOS has something similar you could configure...
The other (possibly simpler) alternative is to just run it in a tmux or screen session, then you can disconnect from that and come back to it any time
> tmux
> ./discordnp-macos
Then disconnect from tmux and close the terminal. Later you could open a new terminal and run tmux a
to re-attach to the session in progress.
Windows will require me to do some learning.
I researched on my side too: using NSSM (http://nssm.cc/) to create a Windows service seems to work like a charm!
I have to find out how to create them on MacOS now. Is this an issue if two computers run DiscordNP at the same time?
Thanks again!
It's only an issue if they are both running a low interval setting and you start hitting the Last.FM API too often. Otherwise there shouldn't be any issue running multiple copies, though I'm not sure why you'd want to do that outside of testing.
Is there a reason you want to run it on both?
(It doesn't have to be running on the computer you're listening to music from as long as the music is being scrobbled to Last.FM you can run Discord-NP from anywhere)
Sometimes, I leave my Desktop PC (long processing tasks) on while working with my laptop at work. Putting DiscordNP on both computers into services will make both running automatically at the same time; I just wanted to check for any issues before trying.
Hello,
Is it possible to make the app work in background and automatically?
On Windows and MacOS?
Thanks for the great app!