Suppress writing to nohup.out when invoking external apps.

master
VikingKong 3 years ago
parent ecaeabf541
commit 29fceab613

@ -221,10 +221,13 @@ class Links(urwid.ListBox):
def parseLink(self, link):
ext = link.split(".")[-1]
if ext.lower() in ("jpg", "jpeg", "gif", "png", "tif", "tiff"):
os.system('nohup feh ' + link + ' 2>/dev/null &')
os.system('nohup feh ' + link + ' </dev/null >/dev/null 2>&1 &')
elif Utils.checkStreamingVideo(link):
tui.destroyOverlay()
os.system('nohup mpv --ytdl-format="bestvideo[height<=720]+bestaudio/best[height<=720]" "' + link + '" 2>/dev/null &')
os.system(
'nohup mpv --ytdl-format="bestvideo[height<=720]+bestaudio/best[height<=720]" "' +
link +
'" </dev/null >/dev/null 2>&1 &')
else:
subprocess.Popen(['firefox', '-new-tab', link])

Loading…
Cancel
Save