On Lubuntu 18.04, I open pcmanfm
$ pcmanfm .
and after looking at the thumbnails of the image files under the current directory in pcmanfm, I closed the window of pcmanfm by Alt-F4, but it is still hanging on the foreground in the terminal emulator.
I move it to background by Ctrl-Z and bg 2
, and kill it, but doesn't work.
$ jobs -l
[2]+ 31124 Running pcmanfm . &
$ kill %2
$ jobs -l
[2]+ 31124 Running pcmanfm . &
$ sudo kill 31124
$ jobs -l
[2]+ 31124 Running pcmanfm . &
Its state is Sl
, S
means "interruptible sleep (waiting for an event to complete)" and l
means "is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)". So I wonder why I can't kill the process? How would you kill it? Thanks.
$ ps aux | grep [3]1124
t 31124 0.8 0.7 693952 57064 pts/9 Sl 06:34 0:47 pcmanfm
.
sudo
.sudo
is not your friend. When you can't cut the bread, because it is in the bread box, don't use a chain-saw, instead take it out of the box. – ctrl-alt-delor Nov 05 '18 at 13:09pcmanfm --desktop --profile lubuntu
withSl
and this is without actually launching pcmanfm. Don't you see something like that immediately after you log in? – DK Bose Nov 05 '18 at 14:01