Mutt, Mailcap, Cygwin, Chrome: открытие HTML-вложений в Mutt

585
ChaimKut

Я не могу открыть вложения HTML в Chrome при запуске Mutt на Cygwin. Я просматриваю сообщение, затем ввожу список вложений ( v), затем выбираю text/htmlвложение и mнажимаю, чтобы выполнить обработку mailcap. Окно Chrome открывается успешно, но в нем ничего нет. Вместо этого я вижу следующий вывод в окне терминала:

[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. 

Некоторые соответствующие конфигурации:

~/.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 

Хром:

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

1 ответ на вопрос

1
vincent

Вы должны преобразовать путь в формат Windows, cygpath -wпрежде чем передавать его в Chrome

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