From 46cb28417cff9220836e5e4aad62e54aad0b5351 Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Wed, 22 Mar 2023 15:50:09 +0600 Subject: path: Use `xdg.BaseDirectory` to get cache path Signed-off-by: Mubashshir --- src/bin/watcher | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/bin/watcher') diff --git a/src/bin/watcher b/src/bin/watcher index 0dde744..ff91167 100755 --- a/src/bin/watcher +++ b/src/bin/watcher @@ -44,7 +44,10 @@ if len(arg) == 2: help_option() elif arg[1] == "--start" or arg[1] == "-s": print("Log creations started... \nif you wanna stop it, use keyboard-shortcut (Ctrl+Shift+C or Ctrl+C)") - x.log_creation() + try: + x.log_creation() + except KeyboardInterrupt: + exit(0) elif arg[1] == "--version" or arg[1] == "-v": print("Version: 2.0.0") else: -- cgit v1.2.3