[kontact] [Bug 222878] kontact process does not exit after closing kontact window in every case

Till Schäfer bugzilla_noreply at kde.org
Wed Oct 31 18:15:48 GMT 2018


https://bugs.kde.org/show_bug.cgi?id=222878

Till Schäfer <till2.schaefer at uni-dortmund.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|5.4.0                       |5.9.2

--- Comment #39 from Till Schäfer <till2.schaefer at uni-dortmund.de> ---
still valid on 5.9.2 with frameworks 5.51.0 and qt 5.11.2

in the meanwhile for everybody frustrated to type killall kontact every few
hours: here is a script to detect and kill hanging kmail instances. I have just
added it to my kontact.desktop file, such that kontact just starts and does not
wait for the hanging instance. 


#!/bin/bash

pid=$(pidof kontact)

if [[ $pid != "" ]]; then 
        echo "Running KMail instance found: $pid"
        windowsofpid=$(xdotool search --pid $pid)
        if [[ $windowsofpid == "" ]]; then
                echo "Hanging KMail instance found. Killing..."
                kdialog --passivepopup "Hanging KMail instance found: $pid.
Killing ..." 5 --title "Kill Hanging Kontact Script"
                kill $pid
        fi
fi

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list