Bug 572761 - Link in writer document does not work when kmail is default
Summary: Link in writer document does not work when kmail is default
Status: RESOLVED DUPLICATE of bug 550554
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: OpenOffice.org (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 11.2
: P3 - Medium : Major with 2 votes (vote)
Target Milestone: ---
Assignee: Roman Shtylman
QA Contact: Chao Wei
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-21 19:24 UTC by Forgotten User KSYEYC9iJz
Modified: 2010-10-08 09:01 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User KSYEYC9iJz 2010-01-21 19:24:12 UTC
User-Agent:       Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.4 (like Gecko) SUSE

On Monday 18 January 2010 04:56:28 pm upscope wrote:
> Trying to find document or how to that describes how to embed a link in
>  writer to Kmail, so a user can send an email to the address in the
>  document. The document will be sent as a PDF. I know it should be doable,
>  PDF documents I receive have this, and they work fine.
> 
> I read the section in the documentation about hyperlinks and I think I have
>  it set up right, but it does not get to the email program. In the document
>  I have email: xxxxxxx@ifiber.tv and when I hold the mouse over it I see:
> 
> mailto:xxxxxxx@ifiber.tv?subject=newsletter Input
> 
> xxxxx is receivers email name.
> 
> Doing ctrl click as described in doc. does nothing. 
> Default mail program is kmail. 

Additional information:

kde integration is installed.

The mailto: appears to work if I export the document as a PDF and then click the mailto: link. Also found (working with input from OpenOffice list) that making Thunderbird default mail client, the hyper link works and brings up the Thunderbird mail program correctly. 

Changing back to Kmail as default, still brings up Thunderbird when clicking link. (Even after reboot)

Does anyone know where OpenOffice (Novell Version 3.1.1.5 from repo) stores the email program to call.

I found a script in /use/lib64/ooo3/basic3.1/program/kde-open.url that appears to be whats called? Where does $1 come from?

#!/bin/sh

# special handling for mailto: uris
if echo $1 | grep '^mailto:' > /dev/null; then
  kmailservice "$1" &
else
  kfmclient openURL "$1" &
fi

exit 0

I found bug 537102 on bugzilla which is close except it was in the FireFox browser. apparently that was a duplicate of bug 170055. 

Again any help or pointers would be greatly appreciated.
 


Reproducible: Always

Steps to Reproduce:
1.create new document
2.put in mailto: hyperlink
3.Click on hyper link. Nothing happens
4. change default mail program from Kmail to Thunderbird. Reboot (may not be necessary). Click on ctlr click on hyper link, thunderbird mail program come up with correct addressee and subject.
Actual Results:  
No mail program if Kmail default.

Expected Results:  
Kontact to come up with mail screen with addressee and subject filled in.
Comment 1 Tor Lillqvist 2010-01-29 08:23:40 UTC
KDE related, adding Roman and Lubos in Cc.
Comment 2 Tor Lillqvist 2010-01-29 08:26:49 UTC
Assigning to Roman even. Feel free to assign back to the list if not really in your field.
Comment 3 Forgotten User KSYEYC9iJz 2010-02-13 18:22:27 UTC
This problem still exists with openSUSE 11.2, KDE 4.3.5 and openOffice 3.2.0.5.
Comment 4 Forgotten User KSYEYC9iJz 2010-02-28 17:31:47 UTC
Also exits in OOo-3.2.0.7 on 11.2 and 11.3 MS1.

RedDwarf Wrote:

</Quote>
I had some more luck with Google: 'OpenOffice.org Forum :: [Solved]
mailto: hyperlinks not working with KMail'
(http://www.oooforum.org/forum/viewtopic.phtml?t=61775)

My OpenOffice_org-libs-core package provides
/usr/lib64/ooo3/basis3.2/program/open-url
/usr/lib64/ooo3/basis3.2/program/kde-open-url

If I execute the first with 'mailto:a@a.com' as parameter nothing
happens, but with kde-open-url works. So the problem seems to be that
the KDE specific script isn't used.
Anyway IMHO those two scripts shouldn't exist at all. OpenOffice.org
should use 'xdg-open'
(http://portland.freedesktop.org/xdg-utils-1.0/xdg-open.html)


It's a shame that someone found the problem in 2007 and he never
informed the devs... so we are here today. I will report it if you
don't, but say me if so.
</Quote>

I verified that both scripts are in /usr/lib64/ooo3/basis3.2/program

The kde-open-url does not appear to be called. or the is incorrect.
This bug was originally reported to KDE forum see above link from RedDwarf.

I changed kde-open-url to call kmail instead of kmailservice. Did not work. 

<script> before change:

   #!/bin/sh

   # special handling for mailto: uris
    if echo $1 | grep '^mailto:' > /dev/null; then
     kmailservice "$1" &
    else
     kfmclient openURL "$1" &
    fi

    exit 0
</script>

If you need additional information please let me know. I'm reporting it here since it is the openSUSE version of 0003.
Comment 5 John King 2010-09-20 10:56:41 UTC
The problem still exists in opensuse 11.3, KDE 4.5.1, Kmail Version2 beta 1 and openoffice 3.2.1
Comment 6 Lubos Lunak 2010-10-08 09:01:54 UTC
.

*** This bug has been marked as a duplicate of bug 550554 ***