sh dropbox-fix-tray-elementary-freya.sh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh dropbox-fix-tray-elementary-freya.sh相关的知识,希望对你有一定的参考价值。

#!/bin/bash
sleep 5 ;
# stop it if it's running
dropbox stop &>/dev/null

killall dropbox ;
rm /.config/autostart/dropbox.desktop ;

# start it properly
DROPBOX_USE_LIBAPPINDICATOR=1 XDG_CURRENT_DESKTOP=Unity \
    #dropbox start -i 
    #hack para orden de indicadores:
 dropbox start -i
sleep 1
b=`pidof dropbox`

c=`echo $b | cut -d' ' -f1`
c1=`echo $b | cut -d' ' -f2`

d="dropbox-client-$c=4"
d1="dropbox-client-$c1=4"
filename=/usr/share/indicator-application/ordering-override.keyfile

count=0
while read LINE 
do
let count++
if [[ $LINE == *dropbox* ]];then
    c=$LINE
    e=$count
    e1=$(($e + 1))
    break
fi
done < $filename
sed -i "$e s/.*/$d/" $filename
sed -i "$e1 s/.*/$d1/" $filename
    
    
    
    
    #source: http://unix.stackexchange.com/questions/198977/dropbox-tray-icon-doesnt-show-up-in-elementary-os-luna-freya
    #save as /usr/bin/start-dropbox-withtray.sh

以上是关于sh dropbox-fix-tray-elementary-freya.sh的主要内容,如果未能解决你的问题,请参考以下文章

sh sh_template.sh

sh sh.sh

Linux下面如何运行 SH文件

配置告警系统主脚本main.sh mon.sh load.sh 502.sh disk.sh

shell 脚本各种执行方式(source ./*.sh, . ./*.sh, ./*.sh)的区别

linux下sh文件的运行