Hello John, On Sat, Feb 18, 2017 at 11:03:52PM +0100, John Landmesser wrote: > I developed it on my own/with help of google and members of siduction-Forum > > It was ok and working fine with icedove, multiple attachments with long > filenames. > > But it stopped working when the new Debian-Thunderbird showed up. > > One of these siduction forum members showed me this: > > > In man bash we can read in Shell Builtin Commands section: > > > > Unless otherwise noted, each builtin command documented in this section as > > accepting options preceded by - accepts -- to signify the end of the > > options. > > > > The :, true, false, and test builtins do not accept options and do not > > treat > > -- specially. The exit, logout, break, continue, let, and shift builtins > > accept and process arguments beginning with - without requiring --. Other > > builtins that accept arguments but are not specified as accepting options > > interpret arguments beginning with - as invalid options and require -- to > > prevent this interpretation. > > > > Note that echo does not interpret -- to mean the end of options. > > ... and that "--" seems to be the problem?
no not really. We need the '--' operator to split of the options for the wrapper and thunderbird. If you simply call 'thunderbird' the first matching excecutable from the PATH variable will be used, and that will be /usr/bin/thunderbird. Otherwise you need to giv the full path to the binary, but without the use of /usr/bin/thunderbird there are some environments not set up that can provoke other weird messages. So every call to thunderbird should really be go through /usr/bin/thunderbird. > thunderbird -- -compose "attachment='$(echo %F | sed 's: /:,/:g')'" > > this does not work with Debian-thunderbird! > > i can't give you the error message, because i went back to > Mozilla-Thunderbird and i'm happy with that, because it's just working fine > with my "menu entry" A log or output message is always nice to have more corner information, but I think your problem is related to #855334 https://bugs.debian.org/855334 Could you test Daniels changes and give some feedback? Note that maybe the desktop entry needs to be different from the command line command. Note, a 'set -x' could help to see more detailed what the shell is doing. Your problem here is simply the wrapper isn't giving the right arguments to thunderbird. We need to find out where this is breaking. Regards Carsten