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

From KDE UserBase Wiki
(Created page with "{{Warning_(uk)|Якщо можливість є доволі новою, її слід розглядати як експериментальну. Отже, якщо у вас...")
(Created page with "* Встановіть потрібні для цього бібліотеки. У більшості дистрибутивів достатньо встановити пак...")
Line 8: Line 8:
Щоб увімкнути типові вікна, виконайте такі дії:
Щоб увімкнути типові вікна, виконайте такі дії:


* 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'''.
* Встановіть потрібні для цього бібліотеки. У більшості дистрибутивів достатньо встановити пакунок '''xdg-desktop-portal'''. Пакунок може бути розбито на два окремі пакунки, '''xdg-desktop-portal''' та '''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 11:04, 3 January 2019

Починаючи з версії 64, Firefox може показувати типові для Плазми діалогові вікна відкриття та збереження файлів, отже, є інтегрованим у візуальне середовище стільниці Плазми.

Попередження

Якщо можливість є доволі новою, її слід розглядати як експериментальну. Отже, якщо у вас виникнуть якісь проблеми, будь ласка, повідомте про них. Відомості щодо звітування про вади


Щоб увімкнути типові вікна, виконайте такі дії:

  • Встановіть потрібні для цього бібліотеки. У більшості дистрибутивів достатньо встановити пакунок xdg-desktop-portal. Пакунок може бути розбито на два окремі пакунки, xdg-desktop-portal та 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.