hovancik / stretchly

The break time reminder app
https://hovancik.net/stretchly
BSD 2-Clause "Simplified" License
4.67k stars 448 forks source link

[Bug]: Stretchly closes with cmd when launching from batch script #1192

Open norimicry opened 2 years ago

norimicry commented 2 years ago

Version

Known issues

Existing issues

What operating system are you using?

Windows

Operating System Version

Windows 11 Pro 21H2

Reproduction steps

  1. start C:\Users\user\AppData\Local\Programs\Stretchly.exe in CMD (or batch script)

Reproduces how often: Every time

Expected Behavior

Stretchly should stay open and resume processes

Actual Behavior

Closing CMD stops Stretchly process

Relevant log output

13:09:42.341 > Stretchly: initializing...
13:09:42.349 > Stretchly: loading preferences
13:09:42.364 > Stretchly: starting Idle time monitoring
13:09:42.366 > Stretchly: starting Do Not Disturb monitoring
13:09:42.469 > Stretchly: loading default break ideas
13:09:42.491 > Stretchly: loading default break ideas

Preferences

No response

Additional information

No response

Code of Conduct

hovancik commented 1 year ago

I think that is expected. When you run some program in command line and you close that command line, the process is closed as well.

hovancik commented 1 year ago

I've tried few solutions mentioned here https://askubuntu.com/questions/106351/running-programs-in-the-background-from-terminal but none seems to work OK with Electron