paul-nameless / tg

terminal telegram client
The Unlicense
932 stars 76 forks source link

Image view causes a segmentation fault #252

Open banderlog opened 2 years ago

banderlog commented 2 years ago

Opening images cause a segmentation fault on viewer closing, not in 100% cases. But you can open/close few times the same image and tg will crash.

My configuration:

# ~/.config/tg/conf.py
import os

# PHONE = 'my [hone number'
MAILCAP_FILE = os.path.expanduser("~/.mailcap")
FILE_PICKER_CMD = "ranger --choosefile={file_path}"
# ~/.mailcap
# show html content via lynx, but manualy in firefox
text/html; firefox '%s';
text/html; lynx -dump '%s' | more; nametemplate=%s.html; copiousoutput;
# for https://github.com/paul-nameless/tg
image/*; sxiv "%s"
video/*; mplayer "%s"
banderlog commented 2 years ago

UPD: Error log is empty