Results 1 to 2 of 2
Application Post Cleanup?
Is it possible to make a program started by clicking on in with KDE's menu to run a command on exit?
This is my problem. I am ...
- 03-20-2008 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 28
Application Post Cleanup?
Application Post Cleanup?
Is it possible to make a program started by clicking on in with KDE's menu to run a command on exit?
This is my problem. I am using Kradio, as my front end for WinTv-PVR 350 radio. The default command Kradio uses does not make a connection to /dev/radio0. So I had to modify it like this.
aplay -f dat < /dev/video24 & kradio
When I close kradio it does not close aplay. This is a problem because if you started a tv stream you will not hear the last television channel that was played. My solution then was to go to the terminal and type the following command.
# killall -9 aplay
This will kill the audio from playing.
Is there a way to make the application execute this command upon exiting? Or is their another way to accomplish what I am trying to do?
Thanks, Lex
- 03-20-2008 #2Just Joined!
- Join Date
- Mar 2008
- Posts
- 28
[SOLVED SOLUTION]
Write a script and make it executable and place this within it.
killall -9 aplay
aplay -f dat < /dev/video24 &
kradio
killall -9 aplay


Reply With Quote
