On 12/12/13 10:39, Bev Nicolson wrote:
On 12/12/13 10:28, Bev Nicolson wrote:
The force quit applet on the panel freezes everything so I've ditched that but Libre Office is still unresponsive having tried to open a .docx file. I've tried killall -9 in Terminal but it doesn't recognise that. What's the command now? TIA.
Bev (Ubuntu 12.04 LTS.)
Well, an idea of how to do this in terminal will still be nice while I remind myself never to try opening .docx files, but I've googled some more (chorus of 'you should have done that earlier' - I know, I know) and found System Monitor is a quick-ish way of doing the same thing.
Never had much joy with Killall myself.
I tend to do
ps -Af | grep writer
which gives something like
user 5639 2358 0 11:30 ? 00:00:00 /usr/lib/libreoffice/program/oosplash --writer user 5671 5639 8 11:30 ? 00:00:01 /usr/lib/libreoffice/program/soffice.bin --writer --splash-pipe=5 user 5725 5657 0 11:30 pts/0 00:00:00 grep --color=auto writer
The last line is the grep command executing, so ignoring that, you get two processes, #5639 and 5671
I'd then kill them using kill
sudo kill 5639
then check to see if the first kill had also killed the second process
ps -Af | grep writer
returned just something like user 5725 5657 0 11:30 pts/0 00:00:00 grep --color=auto writer
but if it hadn't, I'd have used
sudo kill 5671
Hope that helps. I personally am quite surprised that Libre Office is hanging opening a .docx file. I don't have a problem. I guess you could try Abiword instead//.
Alternatively, you could try, opening a terminal typing libreoffice --writer
which will start writer. Open the document in writer. If it hangs, shift focus to the terminal and press ctrl-c. This should kill writer and return to the terminal prompt.
If 12.04 hasn't been infected with that awful Unity UI nonsense, and you still have a task bar, you should also be able to right click and then click on "Close" which will shut down misbehaving apps, most of the time, eventually!
HTH Steve