Archive:Browser Configuration/Firefox Dialog Integration/fr: Difference between revisions
Appearance
Created page with "Configuration du Navigateur/Intégration de la fenêtre de dialogue" |
Created page with "{|class="tablecenter vertical-centered" |250px|thumb |Depuis la version 64, Firefox peut utiliser les fenêtres de dialogue "Ouvrir" et "..." |
||
Line 2: | Line 2: | ||
{|class="tablecenter vertical-centered" | {|class="tablecenter vertical-centered" | ||
|[[Image:firefox64-native-dialog.png|250px|thumb]] | |[[Image:firefox64-native-dialog.png|250px|thumb]] | ||
| | |Depuis la version 64, Firefox peut utiliser les fenêtres de dialogue "Ouvrir" et "Enregistrer" de façon native. De cette manière, Firefox s'intègre mieux à Plasma. | ||
|} | |} | ||
Revision as of 17:56, 27 December 2018
Depuis la version 64, Firefox peut utiliser les fenêtres de dialogue "Ouvrir" et "Enregistrer" de façon native. De cette manière, Firefox s'intègre mieux à Plasma. |
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" "Exec" "env GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u" kwriteconfig5 --file=$HOME/.local/share/applications/firefox.desktop --group="Desktop Action new-window" "Exec" "env GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u" kwriteconfig5 --file=$HOME/.local/share/applications/firefox.desktop --group="Desktop Action new-private-window" "Exec" "env GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u"