Chromium takes a while to start (Solved)

Mark, I have carried out all the above instructions and the Main Menu item has changed to Chrome ok.
EDIT I am going out now,will start again in the morning :wink:

Great, gimme a shout when you’re ready and we’ll edit the already created SSB’s … then uninstall Chromium.

Hi Mark,
I now have 3 entries for Chrome
1 an entry in the Main Menu > Chrome
2 an entry in Main Menu > Internet > Google Chrome
3 an entry in Main Menu >Internet > Chromium Web Browser
What do I need to do next ? Do I need to check anything before I start ?
Don W
PS I have been reading the Peppermint Users Guide, especially Chapter 4 Installing and Removing Software. :wink:

OK, we can remove chromium by uninstalling it … but this will break any SSB’s that were created for Chromium

menu > Games > Entanglement

(amongst others) for example will no longer work unless we tweak them to work with Chrome instead.

SSB’s are stored as .desktop files at
~/.local/share/applications
and contain a line like:-

[b]Exec=chromium-browser --app=Entanglement

which would need changing to

[b]Exec=google-chrome --app=Entanglement

But rather than manually edit them all one at a time, just run these 3 commands -

cp -vr ~/.local/share/applications ~/.local/share/applications-backup

then

cd ~/.local/share/applications

then

grep -rl 'chromium-browser --app' ./ | xargs sed -i 's/chromium-browser --app/google-chrome --app/g'

Now just a bit of cleaning up … delete the chromium-browser.desktop file (which shouldn’t even be there anyway) with:

rm -v ~/.local/share/applications/chromium-browser.desktop

and uninstall Chromium:

sudo apt remove chromium-browser

Chromium should be completely gone (uninstalled and removed from the menu), and all your SSB’s should now open in Chrome instead.

Ice will still work, as the version for Peppermint 5 works with both Chromium and Chrome.

–

Thanks Mark,
I have ran the above instructions and now have
1 Main Menu > Chrome
2 Main Menu > Internet > Chrome
Both of which appear as exactly the same thing, which begs the question, why do I need two copies of the same programme ? or have I done something silly ? ???
Would I not be better with Firefox on my Main Menu > Internet folder :-\

You don’t NEED two entries.

The top level menu item is only there to save you having to go into the “Internet” sub-menu to find the most commonly used app :wink:
(Software Manager is also replicated in the top level menu if I remember correctly … my menu is heavily modified)

We can remove it if you wish (or rename it to “Google Chome”) ?

No thanks Mark,
I will keep it as it is :wink:
All is fine at the moment (until I start fiddling about again) :smiley:

Would you like Firefox installed as well ?

and if so, do you want that as the browser in the top level menu ?

Yes Please

OK, install firefox with:

sudo apt install firefox

Now run:

gedit ~/.config/lxpanel/Peppermint/panels/panel

find the section that currently reads:-

        item {
            name=Chrome
            image=google-chrome
            action=google-chrome
        }

and change it to

        item {
            name=Firefox
            image=firefox
            action=firefox
        }

SAVE the file and exit gedit.

Now log off/on (or reboot).

I have carried out that set of instructions and now have
1 Main Menu > Firefox
2 Main Menu > Internet > Firefox Web Browser
3 Main Menu > Internet > Google Chrome

That’s what you want isn’t it ?

So you can use Firefox as your day to day browser, but still have Chrome installed for SSB’s

That’s exactly my setup by the way :slight_smile: … I prefer Firefox as my web browser, but need to have either Chrome or Chromium installed for SSB’s created through Peppermints Ice application to work

Thanks Mark,
As you say this is a better setup for browsing.
Google for the SSB’s, Firefox for daily looking.
Just need to transfer my odd sites to Firefox now. :wink:
Thanks again

You’re welcome :slight_smile:

It’d be nice if SSB’s could be made to work with Firefox, but Firefox doesn’t allow multiple instances to be open at the same time from the same profile :frowning:

I don’t have that problem. I can only do 1 thing at a time. :wink:

Just curious, is this Peppermint/Ubuntu specific, but on my system (SolydX XFCE) I can open as many instances of Firefox as I want.
Or am I missing something? :-\

I opened this forum and read this post, then opened my pen turning forum and ran through the new posts there. Closed down the pen turners and came back here and it seems all is ok. So that means I had the two instances open at the same time. I don’t why I would run two instances at the same time as I said earlier so I am quite happy with the way my machine is set up.

Sorry I kinda oversimplified that answer … it’s been a while since I tried

OK, I could create a second profile (and call it say “ssb”) that has the menu’s and toolbars hidden/disabled … I can then even start it whilst the default profile is open with:
firefox -P ssb --no-remote http://entanglement.gopherwoodstudios.com/
but if I then try that again it won’t work … says firefox is already running
(and there are times you’ll want multiple we app windows open at the same time)

without using --no-remote or --new-window firefox opens the specified URL as a new tab.

oddly
firefox -P ssb --new-window http://entanglement.gopherwoodstudios.com/
ignores the ssb profile and starts a new window with the default profile

So the only way to be able to have a normal firefox instance, and/or multiple web app windows open at the same time would be to have multiple ssb profiles (say ssb1, ssb2, etc.), and somehow the .desktop file for each SSB would need to adapt it’s “Exec=” line on the fly.

I suppose it’d be possible to write a script that does that … but there’s no easy way to do it.

I think the --no-remote switch has taken on a new life and has been replaced by -new-instance (see here) which might suit your needs better
See

firefox -help

Cheers SeZo, but no luck I’m afraid :frowning:

running
firefox -P ssb --new-instance
twice does the same thing … “Firefox is already running, blah, blah, blah”

There’s currently no way to do this in Firefox … at least non I can find, and believe me I’ve tried

Firefox can open multiple tabs, and multiple windows … but only if they’re launched from a single instance of the firefox executable loading a single profile.

You cannot run multiple instances of firefox using the same profile

Chrome/Chromium’s “–app” switch has no problem with this.
actually I think Chrome/Chromium uses the same instance … but there’s no way to emulate the same effect as the -app switch in Firefox with a single command that always stays the same, that can open multiple windows and still be able to open a “normal” firefox window too.

Mozilla’s “Prism” used to be able to do this … but that project and plugin died a few years ago,and is not compatible with newer versions of Firefox.