You are not logged in.
Hi dear friend:
This is a very strange twitch that I noticed. So, whenever while my google chrome web browser is open, and then I mount an external drive, then chrome freezes and I have to restart the google chrome.
It doesn't happen with firefox or opera, just with google chrome.
Does any one know why?
Offline
As to why, you'd need to debug the Chrome process for that.
As to how to solve it, I'd do:
- copy the .desktop used to launch Chrome to ~/.local/share/applications/
- install firejail
- edit the Exec= line in the copied desktop file by prefixing the command simply with "firejail", for example Exec=firejail google-chrome %u
- launch google-chrome using the new desktop file, ideally the application menu updates itself to use the new .desktop file
Firejail sandboxes the Google Chrome process and prevents it from accessing any personal data folder except ~/Downloads by default. So this experiment would servce to confirm that the behaviour is because Chrome tries to do something.
Worst case this is something to do with GTK with which Chrome integrates to access the file system etc.
Offline
@nobody
Before I do that I just want to make sure this process is not going to cause any harm, right? My pc won't be completely frozen or anything, right?
And also, I don't have a .desktop icon that opens google chrome. I just right click and select "Web Browser" ...
Offline
^ so, did it help? Curious minds want to know...
Offline
@nobody
desktop used to launch Chrome
where do I find the desktop icon used to launch Chrome?
Offline
/usr/share/applications
Offline
okay, so I did that, and my exec line is "Exec=firejail /usr/bin/google-chrome-stable --incognito"
Let's hope it works. And just btw, I usually launch my google chrome by left click and hit "browser." And this method automatically updates the "browser" button in my left click, right?
Offline
it didn't work
google chrome still freezes when the external hard drive is turned on for the first time.
Offline
it didn't work
google chrome still freezes when the external hard drive is turned on for the first time.
Does chrome freeze when you turn on the external drive, or as you stated before, when you mount the extrnal drive?
"turned on for the first time", does that mean that if you unmount the drive, turn it off and then again turn it on (and mount), chrome does not hang?
Does all other applications work ok? Have you run "glances" and checked cpu, disk io etc?
// Regards rbh
Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu
Offline
Is it the same behaviour for Chromium?
// Regards rbh
Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu
Offline
Is it the same behaviour for Chromium?
I think Chromium doesn't have this issue. Of course, I can always doubt check.
Offline