File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -702,8 +702,8 @@ chmod 755 /usr/local/bin/$1-libreoffice
702702# 添加启动器
703703machinectl start $1 && sleep 0.5
704704echo
705- [[ $(su -w DISPLAY - $SUDO_USER -c "$1-query" | grep com.qq.im.deepin.desktop) ] ] && [[ ! -f /usr/share/applications/deepin-qq.desktop || ! -f /usr/share/pixmaps/com.qq.im.deepin.svg ]] && su -w DISPLAY - $SUDO_USER -c "$1-install-qq"
706- [[ $(su -w DISPLAY - $SUDO_USER -c "$1-query" | grep com.qq.weixin.deepin.desktop) ] ] && [[ ! -f /usr/share/applications/deepin-weixin.desktop || ! -f /usr/share/pixmaps/com.qq.weixin.deepin.svg ]] && su -w DISPLAY - $SUDO_USER -c "$1-install-weixin"
705+ [ -n " $(su -w DISPLAY - $SUDO_USER -c "$1-query" | grep com.qq.im.deepin.desktop)" ] && [[ ! -f /usr/share/applications/deepin-qq.desktop || ! -f /usr/share/pixmaps/com.qq.im.deepin.svg ]] && su -w DISPLAY - $SUDO_USER -c "$1-install-qq"
706+ [ -n " $(su -w DISPLAY - $SUDO_USER -c "$1-query" | grep com.qq.weixin.deepin.desktop)" ] && [[ ! -f /usr/share/applications/deepin-weixin.desktop || ! -f /usr/share/pixmaps/com.qq.weixin.deepin.svg ]] && su -w DISPLAY - $SUDO_USER -c "$1-install-weixin"
707707[ -f /usr/share/applications/deepin-qq.desktop ] && cat /usr/share/applications/deepin-qq.desktop | grep $1-
708708[ -f /usr/share/applications/deepin-weixin.desktop ] && cat /usr/share/applications/deepin-weixin.desktop | grep $1-
709709
You can’t perform that action at this time.
0 commit comments