From c98e8b40452c21aed0b9db71b1c52f3476d67557 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 23 Jul 2020 19:05:47 +0200 Subject: Use dmenu instead of rofi, remove unused script --- open_media.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'open_media.py') diff --git a/open_media.py b/open_media.py index 4abbd77..2d333a1 100755 --- a/open_media.py +++ b/open_media.py @@ -7,12 +7,12 @@ import subprocess script_dir = os.path.dirname(os.path.realpath(sys.argv[0])) def run_dmenu(input): - process = subprocess.Popen(["rofi", "-dmenu", "-i", "-p", "Select media"], stdin=subprocess.PIPE, stdout=subprocess.PIPE) + process = subprocess.Popen(["dmenu", "-l", "15", "-i", "-p", "Select media"], stdin=subprocess.PIPE, stdout=subprocess.PIPE) stdout, stderr = process.communicate(input.encode()) if process.returncode == 0: return stdout else: - print("Failed to launch rofi, error: {}".format(stderr)) + print("Failed to launch dmenu, error: {}".format(stderr)) return None def add_seen(seen_filepath, media_name, seen_list): -- cgit v1.2.3