Mutt, Mailcap, Cygwin, Chrome: HTML-Anhänge in Mutt öffnen

656
ChaimKut

Ich kann HTML-Anhänge in Chrome nicht öffnen, wenn Mutt unter Cygwin ausgeführt wird. Ich sehe die Nachricht an, gebe die Liste der Anhänge ein ( v), wähle den text/htmlAnhang aus und drücke m, um die Behandlung von mailcap auszuführen. Das Chrome-Fenster wird erfolgreich geöffnet, aber es ist nichts drin. Ich sehe stattdessen die folgende Ausgabe im Terminalfenster:

[15132:12492:0717/120514.152:ERROR:cache_util_win.cc(20)] Unable to move the cache: 5 [15132:12492:0717/120514.152:ERROR:cache_util.cc(134)] Unable to move cache folder C:\Users\UserName\AppData\Local\Google\Chrome\User Data\ShaderCache\GPUCache to C:\Users\kutnic\AppData\Local\Google\Chrome\User Data\ShaderCache\old_GPUCache_000 [15132:12492:0717/120514.152:ERROR:disk_cache.cc(132)] Unable to create cache [15132:12492:0717/120514.152:ERROR:shader_disk_cache.cc(604)] Shader Cache Creation failed: -2 [15132:12492:0717/120514.210:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process. 

Einige relevante Konfigurationen:

~/.muttrc

auto_view text/html # view html automatically alternative_order text/html text/plain text/enriched # show html first,for testing 

~/.mailcap

text/html; "/cygdrive/c/Program Files (x86)/Google/Chrome/Application/chrome.exe" '%s'; description=HTML Text; nametemplate=%s.html text/html; w3m -I % -T text/html; copiousoutput; 

$ mutt -v Mutt 1.8.3 (2017-05-23) Copyright (C) 1996-2016 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details.  System: CYGWIN_NT-10.0 2.8.2(0.313/5/3) (x86_64) 

$ cygcheck -V cygcheck (cygwin) 2.8.2 

Chrom:

Version 59.0.3071.115 (Official Build) (64-bit) 
0

1 Antwort auf die Frage

1
vincent

Sie sollten den Pfad in das Windows-Format konvertieren, cygpath -wbevor Sie ihn an Chrome übergeben

/etc/mailcap  text/html; "/cygdrive/c/Program Files \(x86\)/Google/Chrome/Application/chrome.exe" `cygpath -w %s`; needsterminal;