Difference between revisions of "Mozilla Firefox"
Added plasma integration section
imported>Dalto (Add information on using Firefox with a dark theme) |
imported>Dalto (Added plasma integration section) |
||
Line 30: | Line 30: | ||
* The most flexible way is to install the add-on [https://addons.mozilla.org/en-US/firefox/addon/text-contrast-for-dark-themes Text Contrast for Dark Themes] which will allow you to keep your theming but adjust it on a per page basis as needed | * The most flexible way is to install the add-on [https://addons.mozilla.org/en-US/firefox/addon/text-contrast-for-dark-themes Text Contrast for Dark Themes] which will allow you to keep your theming but adjust it on a per page basis as needed | ||
* A simpler way is Preferences->Language & Appearance->Colors and uncheck "Use System Colors". The downside of this approach is that Firefox will no longer use a dark theme. | * A simpler way is Preferences->Language & Appearance->Colors and uncheck "Use System Colors". The downside of this approach is that Firefox will no longer use a dark theme. | ||
=Plasma Integration= | |||
==Installing plasma Browser Integration== | |||
The [https://community.kde.org/Plasma/Browser_Integration browser integration package] provides media controls, notifications and integration with krunner. You can install it with: | |||
pamac install plasma-browser-integration | |||
Next install the [https://addons.mozilla.org/en-US/firefox/addon/plasma-integration plasma integration add-on] in Firefox. | |||
==Using the native file chooser== | |||
It is possible to integrate the file chooser from plasma into Firefox giving you a more seamless experience. | |||
First ensure the packages xdg-desktop-portal and xdg-desktop-portal-kde using the command: | |||
pamac install xdg-desktop-portal xdg-desktop-portal-kde | |||
Now we need to create a customized desktop launcher by creating a copy of the distribution file with | |||
mkdir -p ~/.local/share/applications | |||
cp /usr/share/applications/firefox.desktop ~/.local/share/applications/. | |||
Next we need to edit the newly created file at ~/.local/share/applications/firefox.desktop using a [[Viewing_and_editing_configuration_files|text editor]] | |||
There are 3 edits that need to made to this file. | |||
replace: | |||
Exec=/usr/lib/firefox/firefox %u | |||
with: | |||
Exec=/usr/bin/sh -c "GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u" | |||
replace: | |||
Exec=/usr/lib/firefox/firefox --new-window %u | |||
with: | |||
Exec=/usr/bin/sh -c "GTK_USE_PORTAL=1 /usr/lib/firefox/firefox --new-window %u" | |||
replace: | |||
Exec=/usr/lib/firefox/firefox --private-window %u | |||
with: | |||
Exec=/usr/bin/sh -c "GTK_USE_PORTAL=1 /usr/lib/firefox/firefox --private-window %u" | |||
Save and enjoy your firefox/plasma integration | |||