paul-nameless / tg

terminal telegram client
The Unlicense
943 stars 75 forks source link

mailcap file is being ignored #298

Open ztx-lyghters opened 1 year ago

ztx-lyghters commented 1 year ago

I have this set in my conf.py: MAILCAP_FILE = os.path.expanduser("~/.config/mailcap")

My mailcap file has only this line: audio/*; vlc "%s" &

Despite this, mp3 audio files from dialogs/groups are being opened with mpv.

hectorBrown commented 1 year ago

Yeah same issue here - mailcap entries seem to be irrelevant. Seems to be using xdg-open though, which means you can set per-mime-type defaults with xdg-mime. Should function as a workaround for now, although you may need to make your own .desktop entries depending on the setup you want.