Bug 172681 - hangs when executed from kmail message attachment
Summary: hangs when executed from kmail message attachment
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.1
Platform: Fedora RPMs Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-12 21:34 UTC by Juha Tuomala
Modified: 2009-02-28 13:24 UTC (History)
0 users

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 Juha Tuomala 2008-10-12 21:34:03 UTC
Version:            (using KDE 4.1.2)
Installed from:    Fedora RPMs

I click pdf attachment in kmail message and it doesn't open anything.

process listing shows that kioexec is started for that attachment file.

Running the same command with strace:

stat("/tmp/kde-tuju/InvoiceNo1522700.pdf_[mOi7fb].pdf", {st_mode=S_IFREG|0400, st_size=11223, ...}) = 0
geteuid()                               = 500
pipe([10, 11])                          = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f031f96b7e0) = 27971
close(11)                               = 0
read(10, "\1", 1)                       = 1
close(10)                               = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
write(8, "\0", 1)                       = 1
rt_sigreturn(0x8)                       = 0
wait4(27971, NULL, 0, NULL)             = 27971
stat("/tmp/kde-tuju/InvoiceNo1522700.pdf_[mOi7fb].pdf", {st_mode=S_IFREG|0400, st_size=11223, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {0x3e346fd680, [], SA_RESTORER|SA_RESTART|SA_NOCLDSTOP, 0x37d1a0ed30}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({180, 0},


Running the same file with xdg-open opens the okular as defined in mime priority list like it should.
Comment 1 Juha Tuomala 2008-10-12 21:42:14 UTC
This is in wrong komponent, i wrote kioexec into bugzilla app dialog and it ended up to systemsettings.
Comment 2 Juha Tuomala 2008-10-12 21:43:10 UTC
This is how it looks in my process list:

kioexec --tempfiles ggv file:///tmp/kde-tuju/InvoiceNo1522700.pdf_%5BQ58RDa%5D.pdf

running:

xdg-open file:///tmp/kde-tuju/InvoiceNo1522700.pdf_%5BQ58RDa%5D.pdf

opens okular with attachment.
Comment 3 Juha Tuomala 2009-02-28 13:24:56 UTC
works now in 4.2.0