Archive:Browser Configuration/Firefox Dialog Integration/fr: Difference between revisions

From KDE UserBase Wiki
(Created page with "{{Warning|C'est une nouvelle fonctionnalité, et devrait être considéré expérimentale. Donc il faut s'attendre à trouver des bugs, merci d'écrire un rapport de bug pour...")
(Created page with "* Installer les bibliothèques nécessaires. Dans la plupart des distributions, pour cela il suffit d'installer le programme '''xdg-desktop-portal'''. Il se peut que celui-ci...")
Line 8: Line 8:
Pour activer les fenêtres de dialogue natives:
Pour activer les fenêtres de dialogue natives:


* 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'''.
* Installer les bibliothèques nécessaires. Dans la plupart des distributions, pour cela il suffit d'installer le programme '''xdg-desktop-portal'''. Il se peut que celui-ci soit séparé en deux programmes, '''xdg-desktop-portal''' et '''xdg-desktop-portal-kde'''.


* Make a copy of the Firefox desktop file:{{Input|1=<nowiki>cp /usr/share/applications/firefox.desktop $HOME/.local/share/applications</nowiki>}} If this feature is desired for all users, the system-wide shortcut must be modified as a user with superuser (root) privileges
* Make a copy of the Firefox desktop file:{{Input|1=<nowiki>cp /usr/share/applications/firefox.desktop $HOME/.local/share/applications</nowiki>}} If this feature is desired for all users, the system-wide shortcut must be modified as a user with superuser (root) privileges

Revision as of 18:05, 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.

Warning

C'est une nouvelle fonctionnalité, et devrait être considéré expérimentale. Donc il faut s'attendre à trouver des bugs, merci d'écrire un rapport de bug pour chaque bug trouvé: https://community.kde.org/Get_Involved/Bug_Reporting

Pour activer les fenêtres de dialogue natives:

  • Installer les bibliothèques nécessaires. Dans la plupart des distributions, pour cela il suffit d'installer le programme xdg-desktop-portal. Il se peut que celui-ci soit séparé en deux programmes, xdg-desktop-portal et 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"
    

Warning

Changing all "Exec" directives is required as Firefox can be started in multiple modes.