Bug 438367

Summary: Kontact process remains in background after closing program
Product: [Applications] kontact Reporter: jakub.kuzniar
Component: mailAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.14.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description jakub.kuzniar 2021-06-09 21:32:43 UTC
SUMMARY
When I open any pdf attachment from email in okular, close the attachment and exit Kontact, I can't open the program again. It opens only after some time, around 3 minutes. Once it opens I can close it using "X" icon, only from File->Exit.

When start from terminal I see following messages:
ommand= "okular %U" args= ("okular %U", "file:///tmp/messageviewer_attachment_tnBtct/Zajęcia piątek 16.04 NUTKI.pdf")
EXEC "/usr/bin/okular /tmp/messageviewer_attachment_tnBtct/Zajęcia piątek 16.04 NUTKI.pdf"
EXEC done
sleeping for 180 seconds before deleting file...

After closing the Kontact window, process does not terminate but remain in the process list. After 3 minutes I see message:

180 seconds have passed, deleting "/tmp/messageviewer_attachment_tnBtct/Zajęcia piątek 16.04 NUTKI.pdf"
Removed empty parent directory "/tmp/messageviewer_attachment_tnBtct"


STEPS TO REPRODUCE
1. Start Kontact
2. Open pdf attachment in the email
3. Close the pdf attachment
4. Close the Kontact program
5. Start Kontact program again


OBSERVED RESULT
Fails to open again quickly, but only after 3 minutes.

EXPECTED RESULT
Should open immediately.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.18.6
KDE Frameworks Version:  5.71.0
Qt Version:  5.12.7 

ADDITIONAL INFORMATION