mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Use sys.exit to quit via system tray. Fix pip install cmd in Readme
This commit is contained in:
@@ -136,7 +136,7 @@ pip install --upgrade khoj-assistant
|
|||||||
``` shell
|
``` shell
|
||||||
git clone https://github.com/debanjum/khoj && cd khoj
|
git clone https://github.com/debanjum/khoj && cd khoj
|
||||||
python -m venv .venv && source .venv/bin/activate
|
python -m venv .venv && source .venv/bin/activate
|
||||||
pip install
|
pip install .
|
||||||
```
|
```
|
||||||
##### 2. Configure
|
##### 2. Configure
|
||||||
- Set `input-files` or `input-filter` in each relevant `content-type` section of `khoj_sample.yml`
|
- Set `input-files` or `input-filter` in each relevant `content-type` section of `khoj_sample.yml`
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ def create_system_tray():
|
|||||||
menu_actions = [
|
menu_actions = [
|
||||||
('Search', lambda: webbrowser.open('http://localhost:8000/')),
|
('Search', lambda: webbrowser.open('http://localhost:8000/')),
|
||||||
('Configure', lambda: webbrowser.open('http://localhost:8000/config')),
|
('Configure', lambda: webbrowser.open('http://localhost:8000/config')),
|
||||||
('Quit', quit),
|
('Quit', sys.exit),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Add the menu actions to the menu
|
# Add the menu actions to the menu
|
||||||
|
|||||||
Reference in New Issue
Block a user