代码拉取完成,页面将自动刷新
#!/bin/sh
#
# this is a rough beginning of a linux install script for fritzing
# sets up document icons and file associations using MIME types
#
# first ensure fritzing is unpacked in its final destination
# and then run this script
APPLICATIONSDIR="${HOME}/.local/share/applications"
MIMEDIR="${HOME}/.local/share/mime"
PACKAGESDIR="${MIMEDIR}/packages"
APPDIR=$(dirname "$0")
cd $APPDIR
# install fritzing into user MIME packages directory
mkdir -p "${PACKAGESDIR}"
cp icons/fritzing.xml "${PACKAGESDIR}" || exit 1
# install fritzing desktop entry for user (includes MIME associations)
desktop-file-edit --set-key=Exec --set-value="$(pwd)/Fritzing" fritzing.desktop
xdg-desktop-menu install --novendor --mode user fritzing.desktop
# install image-files into user hicolor theme with specified size
# ~/.local/share/icons/hicolor/*size*
# /apps
xdg-icon-resource install --noupdate --novendor --mode user --context apps \
--size 256 icons/fritzing_icon.png fritzing
# /mimetypes
ICON_SIZES="128 256"
FILE_EXTENSIONS="fz fzz fzb fzbz fzp fzpz fzm"
for size in ${ICON_SIZES}; do
for extension in ${FILE_EXTENSIONS}; do
xdg-icon-resource install --noupdate --mode user --context mimetypes \
--size ${size} "icons/${extension}_icon${size}.png" \
"application-x-fritzing-${extension}"
done
done
# update user databases
update-desktop-database "${APPLICATIONSDIR}"
update-mime-database "${MIMEDIR}"
xdg-icon-resource forceupdate --mode user
echo "installed fritzing system icons"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。