Browse Source

Small changes for README and to allow building

Kristian Vos 1 year ago
parent
commit
f116f26201
2 changed files with 6 additions and 2 deletions
  1. 5 1
      README.md
  2. 1 1
      aw_watcher_mpv/main.py

+ 5 - 1
README.md

@@ -12,8 +12,12 @@ Based of off [aw-watcher-spotify](https://github.com/ActivityWatch/aw-watcher-sp
 4. `python main.py --testing`
 
 ## Building
+Make sure you have pyinstaller installed before you start.  
+`pip install -U pyinstaller`
 1. make clean
-2. make package
+2. make package  
+
+`dist/aw-watcher-mpv` is your outputted folder
 
 ## Installing (Linux)
 To install aw-watcher-mpv, first build it, then follow the below steps to install and automatically start the watcher when ActivityWatch starts.

+ 1 - 1
aw_watcher_mpv/main.py

@@ -21,7 +21,7 @@ logging.basicConfig(level=logging.WARN)
 parser = argparse.ArgumentParser("A watcher for MPV")
 parser.add_argument("--testing", action="store_true",
                     help='run in testing mode')
-args = parser.parse_args()
+args, unknown = parser.parse_known_args()
 
 logger = logging.getLogger("aw-watcher-mpv")
 DEFAULT_CONFIG = """