Dale <[email protected]> writes:
Once switched, my main web browser will be Firefox, as it is now
really. I do use multiple profiles. It would be nice if when I
click
on a link in the email software, it opens in a Firefox profile.
Maybe
has a way I can set it to do so in a selected profile. This has
been a
sticking point in the past. I find it hard to believe that with
Firefox
having multiple profile options available that there isn't a way
to
handle this. Multiple profile support has been available in
Firefox for
many years now.
Depending on your GUI environment, you should be able to specify,
in the settings for that environment, which program you want to
use as the default for opening HTTP(S) links.
If your GUI environment doesn't provide that functionality, then
any email client that doesn't already allow specifying the default
browser via its own UI, but which does support the freedesktop.org
XDG standards for default applications, should allow you to use
xdg-settings(1):
https://man.archlinux.org/man/xdg-settings.1.en
to set Firefox as the default Web browser, e.g.:
$ xdg-settings set default-web-browser firefox.desktop
(`firefox-bin.desktop` if using the firefox-bin package, as i am).
Refer to the XDG/Software page on the wiki for more info about
querying and setting default applications:
https://wiki.gentoo.org/wiki/XDG/Software
The 'Exec' line in the .desktop file specifies the command line
that will be used. For firefox-bin, it's:
Exec=firefox-bin --name=firefox-bin %u
where `%u` will be replaced by the selected URL.
If Firefox isn't already running, this starts an instance of
Firefox with the Firefox profile that was last used. If you want
to be able to select a Firefox profile at instance startup, the
`Exec` line would need to be changed to:
Exec=firefox-bin --name=firefox-bin --ProfileManager %u
And if you wanted to use a specific Firefox profile every time, it
would be:
Exec=firefox-bin --name=firefox-bin -P <profile name> %u
If you wanted to start a new instance of Firefox every time, you'd
pass the `--new-instance` option.
The `--help` option to the Firefox binary lists other options you
could utilise.
To implement this variation, you'd copy the relevant .desktop file
from /usr/share/applications/ to your XDG_DATA_HOME directory (by
default, ~/.local/share/applications/) and modify it there.
The wiki has further information about XDG-related stuff,
including various defaults:
https://wiki.gentoo.org/wiki/XDG
Alexis.