-
Notifications
You must be signed in to change notification settings - Fork 858
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
199 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#!/bin/sh | ||
# | ||
# this is a rough beginning of a linux install script for fritzing | ||
# sets up document icons and file associations using mime types | ||
|
||
APPDIR=$(dirname "$0") | ||
|
||
# check if user .mime.types file exists, otherwise create it | ||
if [ ! -f ~/.mime.types ] | ||
then | ||
echo "creating user mime.types file" | ||
touch ~/.mime.types | ||
fi | ||
|
||
# add mime types for fritzing file formats | ||
grep -q application/x-fritzing ~/.mime.types | ||
if [ $? -eq 0 ] | ||
then | ||
echo "fritzing mime types already registered" | ||
else | ||
echo "application/x-fritzing-fz fritzing" >> ~/.mime.types | ||
echo "application/x-fritzing-fzz fritzing" >> ~/.mime.types | ||
echo "application/x-fritzing-fzp fritzing" >> ~/.mime.types | ||
echo "application/x-fritzing-fzpz fritzing" >> ~/.mime.types | ||
echo "application/x-fritzing-fzb fritzing" >> ~/.mime.types | ||
echo "application/x-fritzing-fzbz fritzing" >> ~/.mime.types | ||
echo "application/x-fritzing-fzm fritzing" >> ~/.mime.types | ||
fi | ||
|
||
cd $APPDIR | ||
|
||
# install fritzing into mime user directory | ||
xdg-mime install --mode user 'icons/x-fritzing-fz.xml' | ||
xdg-mime install --mode user 'icons/x-fritzing-fzz.xml' | ||
xdg-mime install --mode user 'icons/x-fritzing-fzp.xml' | ||
xdg-mime install --mode user 'icons/x-fritzing-fzpz.xml' | ||
xdg-mime install --mode user 'icons/x-fritzing-fzb.xml' | ||
xdg-mime install --mode user 'icons/x-fritzing-fzbz.xml' | ||
xdg-mime install --mode user 'icons/x-fritzing-fzm.xml' | ||
|
||
# set the default application to fritzing.desktop | ||
xdg-mime default 'fritzing.desktop' application/x-fritzing-fz | ||
xdg-mime default 'fritzing.desktop' application/x-fritzing-fzz | ||
xdg-mime default 'fritzing.desktop' application/x-fritzing-fzp | ||
xdg-mime default 'fritzing.desktop' application/x-fritzing-fzpz | ||
xdg-mime default 'fritzing.desktop' application/x-fritzing-fzb | ||
xdg-mime default 'fritzing.desktop' application/x-fritzing-fzbz | ||
xdg-mime default 'fritzing.desktop' application/x-fritzing-fzm | ||
|
||
# install image-files into user mime system with specified size | ||
# ~/.local/share/icons/hicolor/*size* | ||
xdg-icon-resource install --mode user --context mimetypes --size 128 'icons/fz_icon128.png' application-x-fritzing-fz | ||
xdg-icon-resource install --mode user --context mimetypes --size 256 'icons/fz_icon256.png' application-x-fritzing-fz | ||
xdg-icon-resource install --mode user --context mimetypes --size 128 'icons/fzz_icon128.png' application-x-fritzing-fzz | ||
xdg-icon-resource install --mode user --context mimetypes --size 256 'icons/fzz_icon256.png' application-x-fritzing-fzz | ||
xdg-icon-resource install --mode user --context mimetypes --size 128 'icons/fzp_icon128.png' application-x-fritzing-fzp | ||
xdg-icon-resource install --mode user --context mimetypes --size 256 'icons/fzp_icon256.png' application-x-fritzing-fzp | ||
xdg-icon-resource install --mode user --context mimetypes --size 128 'icons/fzpz_icon128.png' application-x-fritzing-fzpz | ||
xdg-icon-resource install --mode user --context mimetypes --size 256 'icons/fzpz_icon256.png' application-x-fritzing-fzpz | ||
xdg-icon-resource install --mode user --context mimetypes --size 128 'icons/fzb_icon128.png' application-x-fritzing-fzb | ||
xdg-icon-resource install --mode user --context mimetypes --size 256 'icons/fzb_icon256.png' application-x-fritzing-fzb | ||
xdg-icon-resource install --mode user --context mimetypes --size 128 'icons/fzbz_icon128.png' application-x-fritzing-fzbz | ||
xdg-icon-resource install --mode user --context mimetypes --size 256 'icons/fzbz_icon256.png' application-x-fritzing-fzbz | ||
xdg-icon-resource install --mode user --context mimetypes --size 128 'icons/fzm_icon128.png' application-x-fritzing-fzm | ||
xdg-icon-resource install --mode user --context mimetypes --size 256 'icons/fzm_icon256.png' application-x-fritzing-fzm | ||
|
||
# update user databases | ||
update-desktop-database ~/.local/share/applications | ||
update-mime-database ~/.local/share/mime | ||
|
||
echo "installed fritzing system icons" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 3 additions & 3 deletions
6
resources/images/x-fritzing-fzz.xml → ...rces/system_icons/linux/x-fritzing-fz.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> | ||
<mime-type type="mimetypes/x-fritzing-fzz"> | ||
<mime-type type="application/x-fritzing-fz"> | ||
<comment>Fritzing Sketch</comment> | ||
<generic-icon name="x-fritzing-fzz"/> | ||
<glob pattern="*.fzz"/> | ||
<generic-icon name="application-x-fritzing-fz"/> | ||
<glob pattern="*.fz"/> | ||
</mime-type> | ||
</mime-info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> | ||
<mime-type type="application/x-fritzing-fzb"> | ||
<comment>Fritzing Parts Bin</comment> | ||
<generic-icon name="application-x-fritzing-fzb"/> | ||
<glob pattern="*.fzb"/> | ||
</mime-type> | ||
</mime-info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> | ||
<mime-type type="application/x-fritzing-fzbz"> | ||
<comment>Fritzing Parts Bin Bundle</comment> | ||
<generic-icon name="application-x-fritzing-fzbz"/> | ||
<glob pattern="*.fzbz"/> | ||
</mime-type> | ||
</mime-info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> | ||
<mime-type type="application/x-fritzing-fzm"> | ||
<comment>Fritzing Module</comment> | ||
<generic-icon name="application-x-fritzing-fzm"/> | ||
<glob pattern="*.fzm"/> | ||
</mime-type> | ||
</mime-info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> | ||
<mime-type type="application/x-fritzing-fzp"> | ||
<comment>Fritzing Part Definition</comment> | ||
<generic-icon name="application-x-fritzing-fzp"/> | ||
<glob pattern="*.fzp"/> | ||
</mime-type> | ||
</mime-info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> | ||
<mime-type type="application/x-fritzing-fzpz"> | ||
<comment>Fritzing Part Bundle</comment> | ||
<generic-icon name="application-x-fritzing-fzpz"/> | ||
<glob pattern="*.fzpz"/> | ||
</mime-type> | ||
</mime-info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> | ||
<mime-type type="application/x-fritzing-fzz"> | ||
<comment>Fritzing Sketch Bundle</comment> | ||
<generic-icon name="application-x-fritzing-fzz"/> | ||
<glob pattern="*.fzz"/> | ||
</mime-type> | ||
</mime-info> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters