Bug 206491 - External editor doesn't work anymore - KMail 1.12.1 KDE 4.3.1
Summary: External editor doesn't work anymore - KMail 1.12.1 KDE 4.3.1
Status: RESOLVED UPSTREAM
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.12.1
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 209194 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-06 14:03 UTC by Christian Janoff
Modified: 2009-10-10 21:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Janoff 2009-09-06 14:03:39 UTC
Version:           1.12.1 (using Devel)
OS:                Linux
Installed from:    Compiled sources

After upgrading to KMail 1.12.1 (KDE 4.3.1) I can't use an external editor anymore.

Example: "kwrite %f" produces an error message (as if it has been executed on the shell like this: kwrite '')
Comment 1 Martin Koller 2009-09-06 19:04:49 UTC
I just checked with my 4.3.1 setup (openSuse), and it works here.
Comment 2 Christoph Lange 2009-10-02 15:34:50 UTC
*** Bug 209194 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Lange 2009-10-02 15:36:37 UTC
I can confirm this problem, see bug 209194.  I marked the latter as a duplicate of this one.  Please reopen this bug.
Comment 4 Martin Koller 2009-10-02 22:02:14 UTC
I can still not reproduce with kmail 1.12.2 openSuse 11.1.
What does external-editor define in your kmailrc ?
Comment 5 Christian Janoff 2009-10-02 22:19:11 UTC
There are two entries in kmailrc:

1. external-editor=/usr/bin/urxvt -geometry 80x50+350+100 -e emacs %f\n
2. use-external-editor=true

(It's just entry number 2 when I use 'kwrite %f' as external editor setting.)

That looks good in my opinion.

The applications get correctly executed but %f seems to be an empty string.
Comment 6 Christian Janoff 2009-10-02 22:25:08 UTC
I also get console output everytime I try to use the external editor:

QFSFileEngine::open: No file name specified
Comment 7 Martin Koller 2009-10-02 22:42:56 UTC
If you simply do not define %f in the external editor command, kmail will append the temp-filename to the commandline arguments.
Can you try if that works for you, please ?
Also, which Qt version are you using and which disto ?
Comment 8 Christian Janoff 2009-10-02 23:00:33 UTC
Without the %f there's no difference at all.

My Qt version is 4.5.1, distribution is Gentoo.
Comment 9 Martin Koller 2009-10-02 23:22:13 UTC
Could you try with Qt4.5.2, please ?
I really see no problem in kmail's code.
Comment 10 Christoph Lange 2009-10-04 15:10:08 UTC
What is the recommended procedure for upgrading from Qt 4.5.1 to 4.5.2 on Gentoo?  Simply modifying the "keywords" to allow for installing the currently unstable 4.5.2 is not sufficient, as the 4.5.2 packages are blocked by the 4.5.1 packages that are currently installed.  Is it safe to uninstall the 4.5.1 packages and then install the 4.5.2 ones?
Comment 11 Christoph Lange 2009-10-10 21:04:39 UTC
Now I tried KMail from KDE 4.3.2 with Qt 4.5.2.  (On Gentoo there was no other way than uninstalling 4.5.1 before.)  The problem does no longer occur.
Comment 12 Martin Koller 2009-10-10 21:13:44 UTC
Great. Thanks for your feedback.