Translations:Tutorials/Modify KDE Software Defaults/5/da: Difference between revisions

From KDE UserBase Wiki
(Importing a new version from external source)
 
No edit summary
 
Line 1: Line 1:
{{Input|1=<nowiki>#!/bin/bash
{{Input|1=<nowiki>#!/bin/bash
# Denne fil sætter en computer op som tstaerk kan lide det. Kald den efter at du har installeret OS'et.</nowiki><br /><nowiki>
# This file sets up a computer as tstaerk likes it. Call it after you have performed the OS installation.</nowiki><br /><nowiki>
# 1. sæt standardbrowseren til firefox
# 1. set default browser to firefox
# 1.1. for SUSE Linux, hvor vi skal se i .kde4 i stedet for .kde
# 1.1. for SUSE Linux, where we have to look in .kde4 instead of .kde
# Nøglen til standardbrowseren er BrowserApplication.
# The key for default browser is BrowserApplication.
cd
cd
cd .kde4/share/config
cd .kde/share/config
# slet først alle gamle definitioner af BrowserApplication
# first delete all the old entries for BrowserApplication
sed -i 's/BrowserApplication\[\$e\]=.*//g' kdeglobals
sed -i 's/BrowserApplication\[\$e\]=.*//g' kdeglobals
# tilføj BrowserApplication til afsnittet General hvis et sådant findes
# add BrowserApplication to the General section if a General section exists
sed -i 's/\[General\]/\[General\]\nBrowserApplication\[\$e\]=!firefox/g' kdeglobals
sed -i 's/\[General\]/\[General\]\nBrowserApplication\[\$e\]=!firefox/g' kdeglobals
# tilføj afsnittet General og nøglen BrowerserApplication hvis der ikke er et afsnit General
# add a General section and the key BrowerserApplication if no General section exists
grep "\[General\]" kdeglobals || echo -e "\n[General]\nBrowserApplication[\$e]=!firefox" >> kdeglobals</nowiki>}}
grep "\[General\]" kdeglobals || echo -e "\n[General]\nBrowserApplication[\$e]=!firefox" >> kdeglobals</nowiki>}}

Latest revision as of 07:31, 15 July 2019

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Tutorials/Modify KDE Software Defaults)
{{Input|1=<nowiki>#!/bin/bash
# This file sets up a computer as tstaerk likes it. Call it after you have performed the OS installation.</nowiki><br /><nowiki>
# 1. set default browser to firefox
# 1.1. for SUSE Linux, where we have to look in .kde4 instead of .kde
# The key for default browser is BrowserApplication.
cd
cd .kde/share/config
# first delete all the old entries for BrowserApplication
sed -i 's/BrowserApplication\[\$e\]=.*//g' kdeglobals
# add BrowserApplication to the General section if a General section exists
sed -i 's/\[General\]/\[General\]\nBrowserApplication\[\$e\]=!firefox/g' kdeglobals
# add a General section and the key BrowerserApplication if no General section exists
grep "\[General\]" kdeglobals || echo -e "\n[General]\nBrowserApplication[\$e]=!firefox" >> kdeglobals</nowiki>}}
#!/bin/bash
# This file sets up a computer as tstaerk likes it. Call it after you have performed the OS installation.
# 1. set default browser to firefox # 1.1. for SUSE Linux, where we have to look in .kde4 instead of .kde # The key for default browser is BrowserApplication. cd cd .kde/share/config # first delete all the old entries for BrowserApplication sed -i 's/BrowserApplication\[\$e\]=.*//g' kdeglobals # add BrowserApplication to the General section if a General section exists sed -i 's/\[General\]/\[General\]\nBrowserApplication\[\$e\]=!firefox/g' kdeglobals # add a General section and the key BrowerserApplication if no General section exists grep "\[General\]" kdeglobals || echo -e "\n[General]\nBrowserApplication[\$e]=!firefox" >> kdeglobals