KRun Breakage
Ryan Cumming
ryan at kde.org
Mon Nov 18 01:04:48 GMT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
When I try to open a remote text file in Konqueror (such as one of the
changelogs from ftp://ftp.kernel.org/pub/linux/kernel/v2.5) Konqueror calls
KRun::run() to open the file. KRun then decides to use kfmexec to open the
file with Kate, via KApplication::startServiceByDesktopPath(). This seems to
be the first bug, as kate.desktop specifies that Kate should be executed as
"kate %U"; KRun should just start Kate directly with the remote URL as a
command line argument.
Next, kfmexec downloads the remote file and runs Kate. However, it seems to
think Kate has exited before it has even finished starting up. This causes
kfmexec to remove the temporary file before Kate has a chance to read it. The
result is Kate showing a blank file. This second bug seems like a bad
KUniqueApplication interaction.
The attached patch hacks around the problem by not removing the temporary file
in kfmexec. This is far from a solution, and I've only included it as a
demonstration of what's going on. Any help at all would be greatly
appreciated, as I'm not very familiar with this code.
- -Ryan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE92DyzLGMzRzbJfbQRAtkJAKCoWuny1Ii8UcsUSV3XhsYMwPt5VQCgjQA9
wbFBLIgzQzLBhGIo/Pi1AyY=
=oBCH
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kate-hack.diff
Type: text/x-diff
Size: 473 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20021117/e80c2ce1/attachment.diff>
More information about the kfm-devel
mailing list