Translations:Tutorials/Modify KDE Software Defaults/5/en: Difference between revisions
Appearance
Importing a new version from external source |
Importing a new version from external source |
||
Line 5: | Line 5: | ||
# The key for default browser is BrowserApplication. | # The key for default browser is BrowserApplication. | ||
cd | cd | ||
cd . | cd .kde/share/config | ||
# first delete all the old entries for BrowserApplication | # first delete all the old entries for BrowserApplication | ||
sed -i 's/BrowserApplication\[\$e\]=.*//g' kdeglobals | sed -i 's/BrowserApplication\[\$e\]=.*//g' kdeglobals |
Latest revision as of 12:20, 26 March 2017
#!/bin/bash
# This file sets up a computer as tstaerk likes it. Call it after you have performed the OS installation.<br />
# 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