You are not logged in.

#1 2016-05-16 07:31:15

CooKiECruNChEr43
Member
Registered: 2015-10-17
Posts: 86

x-www-browser problem

I have Bunsenlabs installed on an old computer. Using iceweasel with all its add-ons takes a lot of calculating power of the computer but hey, it works.

But sometimes my computer goes into overdrive caused by all the Flash-material on the internet. I close my browser. And what I expect to see is my computer to calm down.

It doesn't. It keeps blowing like crazy.

When I use the command "top" in the terminal, I see that x-www-browser is still running although I have closed all my browsers. And it takes up a lot of power (CPU and Memory).

I could use the "kill -9" command of course. But I would like to know a more permanent solution to this problem.

And I would like to know why x-www-browser still runs although I had closed all my browsers.

Offline

#2 2016-05-16 09:08:22

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 767

Re: x-www-browser problem

^This would be a question for the IceWeasel/FireFox developers (if you use this browser; others would be similar) ...

I suppose they need to do some housekeeping after browser is closed. For example:
- sending usage data to the browser home (can be switched off)
- writing some data to file system (like last visited pages and bookmarks ...)
- deleting temporary data
- perhaps certain add-ons are doing something?

As your comp seems to be quite slow, it may take some time to finish these tasks.


Postpone all your duties; if you die, you won't have to do them ..

Offline

#3 2016-05-18 06:51:10

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: x-www-browser problem

that's flash on linux. unloved on purpose by its distributors.

fwiw, you can simply uninstall the flashplugin, and 95% of your sites will default to html5 and Just Work.

i even have a pipemenu to un/install the flashplugin, should i come across one of the few sites that still rely on it:

#!/bin/dash
# by ondoho/ohnonot 2016

if dpkg -l flashplugin-nonfree 2>/dev/null |grep -E '^ii' >/dev/null 2>&1

then
action=Uninstall
aptaction=purge

else
action=Install
aptaction=install

fi

echo "<openbox_pipe_menu><item label=\"$action flashplugin\">
<action name=\"Execute\">
<command>
urxvt -T \"${action}ing flashplugin\" -e bash -c \"~/.config/openbox/pipemenus/flashplugin-toggle $aptaction\"
</command>
</action>
</item></openbox_pipe_menu>"

it calls this script:

#!/bin/bash

browserpid="$(ps -C $BROWSER ho pid)"

# $1 - installl or purge
yes|sudo /usr/bin/apt-get $1 flashplugin-nonfree;
if [[ "x$browserpid" != "x" ]] ; then 
	read -n1 -p "Ready. killall, sleep 1 and exec $BROWSER? " x; 
	if [[ "$x" == "y" ]]; then
		desktop="$(wmctrl -lp| grep $browserpid|awk '{print $2}')"
		kill $browserpid
		wmctrl -s $desktop
		sleep 1
		exec $BROWSER & disown
	fi
else
	read -n1 -p "Ready. Press any key... ";
fi

i quickly rewrote this from archlinux' package management debian's, not tested.

Offline

#4 2016-05-18 19:45:28

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: x-www-browser problem

I was hoping with HTML5, the death of flash/java in the browser would be more immediate..


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

Board footer

Powered by FluxBB