LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Applications not exiting properly (https://www.linuxquestions.org/questions/debian-26/applications-not-exiting-properly-897026/)

pljvaldez 08-12-2011 04:12 PM

Applications not exiting properly
 
I've got a 32-bit Debian Squeeze box that has recently started reacting badly to two applications: mythtv-fronted 0.24.1 (from Debian Multimedia) and Iceweasel 3.5.16 (from the official Debian repos).

It's not a problem for me so much as I just switch to a terminal and kill the processes, but my wife is having more difficulty.

When closing Mythfrontend, the window does not close. Being a full screen application, you can't switch to any other application unless there's one already open (like the terminal I always keep open on my desktop). I'm still hunting down where the frontend stores it's log files, but there's nothing unusual I've found so far in other system log files or the mythbackend log file.

When closing Iceweasel, it goes away fine, but there is still an instance running the next time my wife tries to fire it up. I think this is related to Flash in some way because it seems to happen most often after the kids have been playing on Disney or Nick Jr. websites.

Anyone have an idea where to start searching for solutions or places to search for error logs?

j1alu 08-12-2011 05:18 PM

if you put a script in ~/bin to kill the process your wife can alt+F2 or switch to the terminal and run the command with autocompletion (say kill_myth or kill_ice).
I had similar problems with VirtualBox in the past, and as it runs a lot of processes i made the script. autocompletion in the command-prompt made it an easy job for me
(it got solved by itself, btw).
Code:

$ cat ~/bin/kill_virtualbox
#!/usr/bin/env bash

for i in $(ps ax | grep virtualbox | awk '{ print $1 }')
do
        kill $i
done

exit 0

If its single instances you could just use pgrep.
I got the feeling that this is kinda obvious, but as you mentioned the problems for your wife i thought i would post it anyway.


In case it is related to flash you could try this script:
https://github.com/fsmithred/scripts...a80/flashfire7
though removing all of ~/.macromedia and ~/.adobe does just the same (only a bit less filigree).

not much, i know.


All times are GMT -5. The time now is 10:32 AM.