如何在Xubuntu LTS中使evince“发送到...”与Thunderbird一起使用?

Ser*_*ndt 5 xfce xubuntu thunderbird preferences evince

我目前正在使用 Xubuntu LTS 14.04 上的 evince 3.10.3 文档查看器。当我点击 时File > Send To...,我从 evince 收到以下错误消息:

Could not send current document
Failed to execute child process "(null)" (No such file or directory)
Run Code Online (Sandbox Code Playgroud)

尽管如此,我已将Mozilla Thunderbird其定义为Mail Readerin Preferred Applicationsunder Settings Manager

我还应该配置什么?

小智 4

点击文件>发送到... evince 正在寻找nautilus-sendto可执行文件。如果不可用,“发送到”命令将失败。

如果您没有、想要或可以安装,nautilus-sendto您可以设置替代脚本来将文档发送到 Thunderbird。运行这个命令:

sudo nano /opt/evince-send-to-thunderbird
Run Code Online (Sandbox Code Playgroud)

nano在终端中显示的文本编辑器中,添加以下文本:

sudo nano /opt/evince-send-to-thunderbird
Run Code Online (Sandbox Code Playgroud)

保存文件并退出nano。(如果您按Ctrl+,X您将有机会执行这两项操作。)然后运行以下命令:

#!/bin/bash
thunderbird -compose "attachment='$1'"
Run Code Online (Sandbox Code Playgroud)

重新启动 evince 后nautilus-sendto,会在路径上找到假脚本,并且“send-to”命令会打开 Thunderbird Compose 窗口,并将当前文档作为附件。