diff options
author | wustho <benawiadha@gmail.com> | 2020-04-16 07:43:05 +0700 |
---|---|---|
committer | wustho <benawiadha@gmail.com> | 2020-04-16 07:43:05 +0700 |
commit | 28da704e7a4401f4a54339f79ed5ad1895c3910d (patch) | |
tree | 54141c0fa6bcf8d298c4d2bdbcf2fbd5cfad2165 | |
parent | bd1863509bee8035579427f2cc40bdf20c03b0cb (diff) | |
download | epy-28da704e7a4401f4a54339f79ed5ad1895c3910d.tar.gz |
Allow adding args in DefaultViewer config and change "define:" to " Define:" in define_word()
-rwxr-xr-x | epy.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -688,7 +688,7 @@ def find_dict_client(): def find_media_viewer(): global VWR - if shutil.which(CFG["DefaultViewer"]) is not None: + if shutil.which(CFG["DefaultViewer"].split()[0]) is not None: VWR = CFG["DefaultViewer"] elif sys.platform == "win32": VWR = "start" @@ -1151,7 +1151,7 @@ def reader(ebook, index, width, y, pctg, sect): SCREEN.bkgd(curses.color_pair(count_color+1)) return 0, width, y, None, "" elif k in K["DefineWord"] and DICT is not None: - word = input_prompt("define:") + word = input_prompt(" Define:") if word is not None: defin = define_word(word) if defin in WINKEYS: |