Translations:Archive:Browser Configuration/Firefox Dialog Integration/5/en

From KDE UserBase Wiki
  • 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"
    

Warning

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