Re: [libreoffice-users] Question on send to email option in linux..

2022-07-19 Thread Philip Jackson

On 18/07/2022 22:56, Michael D. Setzer II wrote:

On 18 Jul 2022 at 22:12, Philip Jackson wrote:

Date sent:  Mon, 18 Jul 2022 22:12:20 +0200
Subject:Re: [libreoffice-users] Question on send to
email option in linux..
From:   Philip Jackson
To: LibreOffice


On 18/07/2022 21:35, Michael D. Setzer II wrote:

Thanks for the reply. I have LibreOffice 7.2.7.2 version as
loaded by default for my Fedora 35 and also have
LibreOffice 7.3.4.2 downloaded from libreoffice.

With both I have tried a simple saved file with the word
test in it. File is saved. Have Tools / Options / Internet /
Email set to /usr/bin/WSENDTO (Thou I did also try using
the direct path to program as well.).

Strange - but in all the years I've been using LO Writer and email, I've never 
thought or had reason to look at that setting. But now that you've made me 
curious, I've had a look to see what I've got in Tools / Options / Internet / 
Email and it informs me that my email program is :  sensible-lomua.

I've no idea what that is. I've used Thunderbird in conjunction with Linux and 
LO for many years and it just worked.

Sorry.

Thanks again for the quick response. Don't know if it is
trying something else. In browser I can type
mailto:mi...@guam.net  and it pulls up email client with
no problem. Just seeing nothing with libreoffice, but the
macro works fine.


I thought I'd try to find out a bit more about 'sensible-lomua' which is what 
exists by default in my Tools / Options / Internet / Email.  I guessed that the 
lomua was Libreoffice mail user agent and apparently that has been inherited 
from OpenOffice where it was 'sensible-oomua'.

There was a bug opened in 2011 by someone who had a similar problem:

https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/841184

Their solution was simply to replace 'sensible-lomua' with 'thunderbird'  
(without the quotes and without any path).

Philip


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Tried send email with strace

2022-07-19 Thread Stephan Bergmann

On 7/19/22 12:30, Michael D. Setzer II wrote:

Noticed there is no senddoc.sh on my system in either the
Fedora libreoffice or the 7.3.4.2 directories, but just
senddoc. It does appear to be very similar to the contents
of the xdg-email script.


The file gets renamed from senddoc.sh in the LO git source repo to just 
senddoc as part of a LO installation set.  (Needlessly confusing, but 
for whatever historical reason...)



--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Tried send email with strace

2022-07-19 Thread Michael D. Setzer II
On 19 Jul 2022 at 8:12, Stephan Bergmann wrote:

Date sent:  Tue, 19 Jul 2022 08:12:06 +0200
Subject:Re: [libreoffice-users] Tried send email 
with strace
To: LibreOffice 
Copies to:  msetze...@gmail.com
From:   Stephan Bergmann 


> On 7/19/22 00:07, Michael D. Setzer II wrote:
> > Found some code at end of strace
> > 
> > (soffice:166273): GLib-GObject-WARNING **: 07:19:47.960: invalid cast from
> > 'GtkBox' to 'GtkMenuShell'
> > 
> > (soffice:166273): GLib-GObject-WARNING **: 07:19:47.960: invalid cast from
> > 'GtkBox' to 'GtkMenuShell'
> > 
> > (soffice:166273): GLib-GObject-WARNING **: 07:20:00.439: invalid cast from
> > 'GtkBox' to 'GtkMenuShell'
> > 
> > (soffice:166273): GLib-GObject-WARNING **: 07:20:00.439: invalid cast from
> > 'GtkBox' to 'GtkMenuShell'
> > /usr/bin/xdg-email: line 978: xdg-email-hook.sh: command not found
> > ) = 0
> > 
> > Note sure why it is call xdg-email instead of passing directly to internet 
> > email
> > setting??
> > xdg-email gives a popup that says unable to detect mailto: URL??
> 
> See my response at 
>  
> "Re: [libreoffice-users] Question on send to email option in linux.."
> 
> (And better not start new email threads when you could have continued 
> the existing one.)
> 

Thanks for the information. 
Thought it was a significant difference in what I had 
found since I was under the assumtion that setting the 
option internet email would have it directly call that 
program rather than have it go thru some other process.

Saw the xdg-email at very end of the strace showing the 
issue. In later email saw that it was passing 

/usr/bin/xdg-email 
mailto:?subject=testemail=file:///tmp/lu1757371x
dt6i.tmp/lu1757371xdt6m.tmp/testemail.odt

So it was creating subject using the basename of the file 
and creating a copy of the file under tmp.

Modified my WSENDTO script to
#!/bin/bash
/home/msetzerii/.wine/drive_c/PMAIL/Programs/WSENDT
O.EXE $(echo "$1" |sed 's_^.*file://__g')

and then replaced the xdg-email with link to WSENDTO 
and it was able to call the email client and load program 
as attachment. 

Noticed there is no senddoc.sh on my system in either the 
Fedora libreoffice or the 7.3.4.2 directories, but just 
senddoc. It does appear to be very similar to the contents 
of the xdg-email script.

My Macro to do mailto
Sub Mailto
Dim oDoc As Object
Dim Path$
oDoc = ThisComponent
Path$ = oDoc.getURL()
If oDoc.HasLocation() Then
shell("/home/msetzerii/.wine/drive_c/PMAIL/Programs/W
SENDTO.EXE " (Path$,8,100) )
Else
  Print "The document has not yet been stored"
End If
End Sub 

Seems to work fine, and bypasses the senddoc and sends 
just the direct filename rather than creating a copy in the 
/tmp directory. The mid removes the FILE:// from the 
oDoc.getURL() value returned.

Had found an old macro someone had written long ago 
for Libreoffice 2 that no longer worked, and hadn't been 
updated for many years, and was just trying to find a 
solution that would work. 

Not something I do a lot, but interesting.

Thanks again for info.

++
 Michael D. Setzer II - Computer Science Instructor 
(Retired) 
 mailto:mi...@guam.net
 mailto:msetze...@gmail.com
 Guam - Where America's Day Begins
 G4L Disk Imaging Project maintainer 
 http://sourceforge.net/projects/g4l/
++




-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy



Re: [libreoffice-users] Tried send email with strace

2022-07-19 Thread Stephan Bergmann

On 7/19/22 00:07, Michael D. Setzer II wrote:

Found some code at end of strace

(soffice:166273): GLib-GObject-WARNING **: 07:19:47.960: invalid cast from
'GtkBox' to 'GtkMenuShell'

(soffice:166273): GLib-GObject-WARNING **: 07:19:47.960: invalid cast from
'GtkBox' to 'GtkMenuShell'

(soffice:166273): GLib-GObject-WARNING **: 07:20:00.439: invalid cast from
'GtkBox' to 'GtkMenuShell'

(soffice:166273): GLib-GObject-WARNING **: 07:20:00.439: invalid cast from
'GtkBox' to 'GtkMenuShell'
/usr/bin/xdg-email: line 978: xdg-email-hook.sh: command not found
) = 0

Note sure why it is call xdg-email instead of passing directly to internet email
setting??
xdg-email gives a popup that says unable to detect mailto: URL??


See my response at 
 
"Re: [libreoffice-users] Question on send to email option in linux.."


(And better not start new email threads when you could have continued 
the existing one.)



--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy