nostalgia-dev / nostalgia_chrome

Self tracking your browser history!
20 stars 4 forks source link

Create a way to run it on boot as service under Windows #2

Open kootenpv opened 4 years ago

kootenpv commented 4 years ago

See https://github.com/nostalgia-dev/nostalgia_chrome/blob/master/boot_as_service/nostalgia_chrome.service as an example how it's done on linux

jjc385 commented 4 years ago

It's just a matter of running a python command on startup, right? If so, as a first pass solution, we can instruct users to do the following:

On Windows:

Create a file nostalgia_chrome_startup.cmd with the following contents:

python <path-to-script>\<script-name>.py

and place the file in ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup where ~ (the user's home directory) is C:\Users\<Username>


kootenpv commented 4 years ago

If we could use this action through a command-line tool called nostalgia, then it would have access to the Python runtime, and its path, so I think we could fill in the file and place it automatically.

kootenpv commented 4 years ago

I think the part of... how to ensure it is running might be an interesting one. But maybe not the most important - it seems stable now so it shouldn't crash.