Re: Google Chrome
Posted: 10/05/14(金) 06:02
5.0.375.38 beta
ブックマークの自動インポートに難あり。(ubuntu用だからか?)
ブックマークの自動インポートに難あり。(ubuntu用だからか?)
コード: 全て選択
#! /bin/sh
# Designed for use with Puppy Linux, www.puppylinux.com
#
DATADIR='--user-data-dir="/root/spot/.config/.google-chrome"'
cp -f /root/.gtkrc-2.0 /root/spot/.gtkrc-2.0
chown spot:spot /root/spot/.gtkrc-2.0
CHROME11="/root/spot/.config/.google-chrome"
#gxmessage はあるか?
if ! MSG=`which gxmessage`
then
MSG='xmessage'
fi
#ユーザー group は存在するか?
if ! grep spot /etc/group
then
$MSG -center -bg "#ffc0c0" -title "Chrome11" 'ユーザ「spot」はいません'
exit 1
fi
#chromeの存在をチェック
if [ ! -r $CHROME11 ];then
CHROME11=`which google-chrome`
fi
if [ ! -r $CHROME11 ];then
$MSG -center -bg "#ffc0c0" -title "CHROME11" 'chromeが見つかりません'
exit 1
fi
#起動
# $MSG -center -bg "#ffc0c0" -title "CHROME11" 'ユーザーspotでgooglechromeを起動します'
su spot -p -m -c 'google-chrome --user-data-dir=/root/spot/.config/.google-chrome'
killall -3 google-chrome
sleep 1
killall -9 google-chrome
ps | grep google-chrome
if [ $? -eq 0 ];then
# $MSG -center -bg "#d0ffd0" -title "google-chrome" 'google-chromeを停止しました'
else
$MSG -center -bg "#ffc0c0" -title "google-chrome" 'google-chromeをはまだ実行中です'
fi
最新版google-chromeをインストール暇人 さんが書きました:chrome11はrootで動かそうとすると警告が出て起動しない。
解決策はあるようだが、これはironに期待かな。