This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to make kmix automatically restart?

Tags: None
(comma "," separated)
User avatar
Rog131
Registered Member
Posts
828
Karma
10
You could add an infinite loop to look the process list. If there is no kmix process start a new kmix. Something like:

Code: Select all
#!/bin/sh

while true
do
    if !(pgrep -x "kmix" > /dev/null)
        then kmix
    fi
    sleep 5
done


The script could be started with the KDE: System Settings > Startup and Shutdown > Autostart
tmvngocdungn
Registered Member
Posts
1
Karma
0
Sometimes kmix silently exits, audio itself still works. I usually don't notice until I press a loudness key on my keyboard. How can I make kmix automatically restart after it exited/crashed?
I know how to do it manually - with the command 'kmix'. Its an user-session problem, so an upstart job isn't the solution. Do you have any ideas?

If not I would like to know why it exits. Are there any kmix-specific logs?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], lockheed