Archive:Browser Configuration/Firefox Dialog Integration/en: Difference between revisions
(Importing a new version from external source) |
m (FuzzyBot moved page Browser Configuration/Firefox Dialog Integration/en to Archive:Browser Configuration/Firefox Dialog Integration/en without leaving a redirect: Part of translatable page "Browser Configuration/Firefox Dialog Integration") |
(No difference)
|
Latest revision as of 08:50, 14 September 2023
Starting with version 64, Firefox can now display the native Plasma "Open" and "Save" dialogs, thus integrating better with the look and feel of Plasma Desktop. |
To enable the native dialogs:
- Install the necessary libraries. On most distributions, this can be done installing the xdg-desktop-portal package. This may be broken into two separate packages, xdg-desktop-portal and xdg-desktop-portal-kde.
- Make a copy of the Firefox desktop file:
cp /usr/share/applications/firefox.desktop $HOME/.local/share/applications
If this feature is desired for all users, the system-wide shortcut must be modified as a user with superuser (root) privileges
- Using the kwriteconfig tool in a console window (or a text editor), modify the Exec directives to instruct Firefox to use the Portal functionality.
kwriteconfig5 --file $HOME/.local/share/applications/firefox.desktop --group "Desktop Entry" --key "Exec" "GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u" kwriteconfig5 --file $HOME/.local/share/applications/firefox.desktop --group "Desktop Action new-window" --key "Exec" "GTK_USE_PORTAL=1 /usr/lib/firefox/firefox --new-window %u" kwriteconfig5 --file $HOME/.local/share/applications/firefox.desktop --group "Desktop Action new-private-window" --key "Exec" "GTK_USE_PORTAL=1 /usr/lib/firefox/firefox --private-window %u"