Comments (2)
Sorry, no idea -- I don't use Windows really. It must be possible, since Windows has services (or even simpler 'autostart' shortcuts)
from promnesia.
I was able to setup a Task Scheduler in Windows and trigger it to automatically run on Windows Startup using the below script:
cmd /c ""C:\Program Files\Git\bin\bash.exe" --login -i -- %USERPROFILE%\Downloads\promnesiaServe.sh"
Note that I was only able to get it work using
Git Bash
. running command directly incmd
orpowershell
did not work
Below are the steps:
- Create a bash file with the below script
#!/bin/bash cd /D/Source_Code/GitHub/promnesia # this is the path to my local clone of the promnesia repo # echo Change Directory done ./scripts/promnesia serve
- Save the file in your PC. I saved it here:
%USERPROFILE%\Downloads\promnesiaServe.sh
- Then open the Task Scheduler in Windows from the start menu
- Click "Create a Basic Task"
- Provide a name to the task - I used
Run Promnesia Serve
- in the Next Scree, choose a Trigger - I chose
When computer starts
and click Next - In the Next Screen, choose
Start a Program
and click Next - Then enter the below values in the respective input fields:
a. Program/Script: use eithercmd
orC:\Windows\System32\cmd.exe
b. Add arguments (optional): input/c ""C:\Program Files\Git\bin\bash.exe" --login -i -- %USERPROFILE%\Downloads\promnesiaServe.sh"
- Click Next and Finish to create a task. This will be automatically run when you restart your Windows
Note that sometimes the Task Scheduler doesn't start the task on Windows Start, so its better to add a 5 mins delay in the Trigger, which will ensure the task to be run.
Reference:
from promnesia.
Related Issues (20)
- extension/indexers: ensure less 'span' in visited marks HOT 2
- find alternative to dataset library?
- Build fails in OpenBSD HOT 7
- "do not mark this link" interacts badly with fragments
- Add the possibility to index the .mm format
- Visited marks repeat to fill region HOT 1
- "422 Unprocessable Entity" on every page. HOT 2
- Sidebar doesn't show up on firefox HOT 3
- Not opened sidebar - Firefox HOT 2
- Not a directory: 'xdg-mime' while promnesia index HOT 1
- promnesia config create error HOT 1
- Extension error due to duplicated backslash HOT 1
- unable to build extension in Windows HOT 3
- raise CachewException(f"{tp}: doesn't look like a supported type to cache HOT 1
- POST /visits 500 Internal Server Error HOT 3
- fastapi/pydantic breaking versions HOT 2
- running multiple indexers simulatneously blocks the database
- Sidebar does not show in Firefox HOT 2
- Filters in config.py to exclude websites
- How to control the length of context while indexing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promnesia.