Jump to content

Translations:Tutorials/Modify KDE Software Defaults/5/pt-br: Difference between revisions

From KDE UserBase Wiki
MarcusGama (talk | contribs)
Created page with "{{Input|1=<nowiki>#!/bin/bash # Este arquivo configura um computador como tstaerk gosta. Chame-o após ter realizado a instalação do sistema.</nowiki><br /><nowiki> # 1. define..."
 
(No difference)

Latest revision as of 23:02, 28 October 2010

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
# Este arquivo configura um computador como tstaerk gosta. Chame-o após ter realizado a instalação do sistema.<br />
# 1. define o navegador para o firefox
# 1.1. para o SUSE Linux, onde nós temos que olhar no .kde4 ao invés do .kde
# A chave para o navegador padrão é BrowserApplication.
cd
cd .kde4/share/config
# primeiro apaga todas as entradas antigas do BrowserApplication
sed -i 's/BrowserApplication\[\$e\]=.*//g' kdeglobals
# adiciona o BrowserApplication à seção General se uma seção General existe
sed -i 's/\[General\]/\[General\]\nBrowserApplication\[\$e\]=!firefox/g' kdeglobals
# adiciona uma seção General e a chave BrowerserApplication se uma seção General não existe
grep "\[General\]" kdeglobals || echo -e "\n[General]\nBrowserApplication[\$e]=!firefox" &gt;&gt; kdeglobals