I'm using the app gscan2pdf under Ubuntu 9.04. Previously my default email client was Evolution, and I was able to use the app's function to "email as PDF," which triggered opening Evolution, and attaching the PDF to a new email.

I just changed my preferrred mail reader in Ubuntu preferences to "custom," and inserted this command in the dialog box (which I stole from my desktop shortcut):

"/home/username/zimbra/zdesktop/linux/prism/zdclient" -webapp "/home/username/zimbra/zdesktop/zdesktop.webapp" -override "/home/username/zimbra/zdesktop/zdesktop.webapp/override.ini" -profile "/home/username/zimbra/zdesktop/profile"
This does open Zimbra, but doesn't create a new email with attachment.

What command should I issue here?