Jump to content

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

From KDE Wiki Sandbox
Claus chr (talk | contribs)
Importing a new version from external source
Claus chr (talk | contribs)
Importing a new version from external source
Line 10: Line 10:
* 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'''.
* 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:{{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
* Lav en kopi af Firefox' desktop-fil:{{Input|1=<nowiki>cp /usr/share/applications/firefox.desktop $HOME/.local/share/applications</nowiki>}} Hvis du ikke ønsker at bruge denne funktion til alle brugere skal genvejen, som gælder hele systemet modificeres af en bruger med superbrugerrettigheder (root).


* 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" --key "Exec" "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" --key "Exec" "GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u"

Revision as of 13:33, 29 June 2019

Fra version 64 kan Firefox bruge Plasmas egne "Åbn"- og "Gem"-dialoger og således blive bedre integreret med Plasma-skrivebordet.

Advarsel

Dette er en ny funktion og skal anses som eksperimentel. Du kan derfor forvente at finde bugs; vær venlig at indrapportere fejl, som du støder på: https://community.kde.org/Get_Involved/Bug_Reporting


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.
  • Lav en kopi af Firefox' desktop-fil:
    cp /usr/share/applications/firefox.desktop $HOME/.local/share/applications
    Hvis du ikke ønsker at bruge denne funktion til alle brugere skal genvejen, som gælder hele systemet modificeres af en bruger med superbrugerrettigheder (root).
  • 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.