Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kootenpv opened this issue Dec 12, 2019 · 3 comments
Open

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

kootenpv opened this issue Dec 12, 2019 · 3 comments

Comments

@kootenpv
Copy link
Member

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
Copy link

jjc385 commented Feb 6, 2020

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>


  • Of course, we can include the file in the repo and just tell them where to put it
    • Though we'd need to somehow populate the startup.cmd file with the right path to the python script, so maybe we'd be better off generating the file than including it in the repo
  • We can also automate the process of copying the script into the startup folder, as it's not a write-protected folder

@kootenpv
Copy link
Member Author

kootenpv commented Feb 7, 2020

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
Copy link
Member Author

kootenpv commented Feb 7, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants