Browserindstillinger/Integration af Firefox-dialoger
Appearance
Fra version 64 kan Firefox bruge Plasmas egne "Åbn"- og "Gem"-dialoger og således blive bedre integreret med Plasma-skrivebordet. |
For at aktivere integrerede dialoger:
- Installér de nødvendige biblioteker. I de fleste distributioner kan det gøres ved at installere pakken xdg-desktop-portal. Denne kan være blevet delt i to pakker, xdg-desktop-portal og 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"