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

From KDE UserBase Wiki
(Created page with "{{Input|1=<nowiki>#!/bin/bash # このファイルは tstaerk (訳注: ユーザ名) の好みに合わせてコンピュータをセットアップするものです。OS の...")
 
(No difference)

Latest revision as of 14:51, 6 September 2011

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
# このファイルは tstaerk (訳注: ユーザ名) の好みに合わせてコンピュータをセットアップするものです。OS のインストール終了後に実行して下さい。
# 1. デフォルトのブラウザを Firefox に設定 # 1.1. SUSE Linux のために、.kde のではなく .kde4 ディレクトリを見るようにします。 # デフォルトブラウザのキーは BrowserApplication です。 cd cd .kde4/share/config # まず、BrowserApplication の全ての古いエントリを削除します。 sed -i 's/BrowserApplication\[\$e\]=.*//g' kdeglobals # BrowserApplication を General セクションに追加します。(General セクションが存在する場合のみ) sed -i 's/\[General\]/\[General\]\nBrowserApplication\[\$e\]=!firefox/g' kdeglobals # General セクションが存在しない場合、General セクションを追加し、そこに BrowerserApplication キーを追加する。 grep "\[General\]" kdeglobals || echo -e "\n[General]\nBrowserApplication[\$e]=!firefox" >> kdeglobals