On 06/01/16 13:13, Sebastian wrote:
> Hi,
>
> On 01/06/2016 01:21 PM, Richard Hobday wrote:
>> I'm using Mint17.3 Cinnamon(64bit) with Thunderbird
> I'm using 17.3 with XFCE and Thunderbird
>> The script runs fine, creates the file in .local/tmp and the Subject and
>> Body fields as expected, opens Thunderbird message, but fails to pass
>> the message as an attachment.
>>
>> I'm pretty sure this a Thunderbird issue and not either dt or the
>> xdg-email script though.
>>
>> See below the output of XDG_UTILS_DEBUG_LEVEL=5 darktable
>>
>> [email] launching `xdg-email --subject "images exported from darktable"
>> --body " - PK5_3612.jpg (1/750 f/13.0 118mm iso 400)\n" --attach
>> "/home/rlch/.local/tmp/PK5_3612.jpg" &'
>>
>> DE is "gnome"
>>
>> Checking /usr/share/applications/defaults.list
>>
>> grep: /home/xxxx/.local/share/applications/: Is a directory
>>
>> Running gvfs-open
>> "mailto:?subject=images%20exported%20from%20darktable&body=%20%2D%20PK5%5F3612.jpg%20%281/750%20f/13.0%20118mm%20iso%20400%29%0D%0A&attach=/home/rlch/.local/tmp/PK5%5F3612.jpg";
>>
>> (process:10828): GLib-CRITICAL **: g_slice_set_config: assertion
>> 'sys_page_size == 0' failed
>>
>> This final line is a Mozilla error message and I guess that may be where
>> the issue is.
> No, these gtk errors happen all the time in nearly all applications
> using it (darktable included). They are neither "critical" for the gui
> nor relevant for us.
> Does the file, which is to be attached, really exist in the temporary
> directory?
Yes
> Here is the output for my case. It *is* working here.
>
>> [email] launching `xdg-email --subject "images exported from
> darktable" --body " - 1401395041.jpg (1/inf f/0,0 0mm iso 0)\n"
> --attach "/home/dec/.local/tmp/1401395041.jpg" &'
>> DE is "xfce"
>> Running exo-open
> "mailto:?subject=images%20exported%20from%20darktable&body=%20%2D%201401395041.jpg%20%281/inf%20f/0%2C0%200mm%20iso%200%29%0D%0A&attach=/home/dec/.local/tmp/1401395041.jpg";
>> Error: Failed to send command: 500 command not parseable
>
> (I deleted the glib messages.)
>
> To compare: The [email] line is the same.
> The detected DE is another one of course. But in your case, cinnamon is
> detected as gnome. In my case, exo-open is used (and works), in your
> case it's gvfs-open.
>
> Could you try running the exo-open manually? Here is mine adapted for
> your filename:
> exo-open
> "mailto:?subject=images%20exported%20from%20darktable&body=%20%2D%201401395041.jpg%20%281/inf%20f/0%2C0%200mm%20iso%200%29%0D%0A&attach=/home/rlch/.local/tmp/PK5%5F3612.jpg";

After installing exo-open that works!

> I hope I can help a bit,
> Sebastian
>
So with Mint 17.x Cinnamon, installing exo-open and modifying the script 
resolves the problem.

Modifying xdg-email script detectDE() to include:
elif [ x"$DESKTOP_SESSION" = x"cinnamon" ]; then DE=xfce;

Very many thanks for your help and encouragement!
I'd forgotten that I used to do this for a living!


Regards,
Richard


------------------------------------------------------------------------------
_______________________________________________
Darktable-users mailing list
Darktable-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to