Browser Configuration/Firefox Dialog Integration: Difference between revisions
m (Add translate tags) |
(Marked this version for translation) |
||
Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
<translate> | <translate> | ||
<!--T:1--> | |||
{|class="tablecenter vertical-centered" | {|class="tablecenter vertical-centered" | ||
|[[Image:firefox64-native-dialog.png|250px|thumb]] | |[[Image:firefox64-native-dialog.png|250px|thumb]] | ||
Line 6: | Line 7: | ||
|} | |} | ||
<!--T:2--> | |||
{{Warning|This is a new feature, and should be considered experimental. As such, expect to find bugs, and please report any you find: https://community.kde.org/Get_Involved/Bug_Reporting}} | {{Warning|This is a new feature, and should be considered experimental. As such, expect to find bugs, and please report any you find: https://community.kde.org/Get_Involved/Bug_Reporting}} | ||
To enable the native dialogs: | To enable the native dialogs: | ||
<!--T:3--> | |||
* 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'''. | * 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'''. | ||
<!--T:4--> | |||
* 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 | ||
<!--T:5--> | |||
* Using the '''kwriteconfig''' tool in a console window (or a text editor), modify the '''Exec''' directives to instruct Firefox to use the Portal functionality.{{Input|1=<nowiki>kwriteconfig5 --file=$HOME/.local/share/applications/firefox.desktop --group="Desktop Entry" "Exec" "env GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u" | * Using the '''kwriteconfig''' tool in a console window (or a text editor), modify the '''Exec''' directives to instruct Firefox to use the Portal functionality.{{Input|1=<nowiki>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-window" "Exec" "env GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u" |
Revision as of 17:50, 27 December 2018
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. |
Warning
This is a new feature, and should be considered experimental. As such, expect to find bugs, and please report any you find: https://community.kde.org/Get_Involved/Bug_Reporting
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"
Warning
Changing all "Exec" directives is required as Firefox can be started in multiple modes.