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
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.
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
(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
All is fine at the moment (until I start fiddling about again)
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 ⌠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.
Thanks again
Youâre welcome
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
I donât have that problem. I can only do 1 thing at a time.
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
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.