Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Binary file added icons/scratch2-editor-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/scratch2-editor-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions icons/scratch2-editor.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
Name=Scratch 2
Comment=You can program your own interactive stories, games, and animations
Exec=scratch2 %f
StartupNotify=true
Terminal=false
Type=Application
Encoding=UTF-8
Icon=scratch2-editor
Categories=Development;Education;
MimeType=application/x-scratch-project;
Keywords=Build;Develop;
9 changes: 9 additions & 0 deletions install_scratch2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ EOF

chmod a+x "/usr/local/bin/scratch2"

# Upload icons and create a .desktop entry
cp -f icons/scratch2-editor-48.png /usr/share/icons/hicolor/48x48/apps/scratch2-editor.png
cp -f icons/scratch2-editor-128.png /usr/share/icons/hicolor/128x128/apps/scratch2-editor.png
cp -n icons/gnome-mime-application-x-scratch-project-48.png /usr/share/icons/hicolor/48x48/mimetypes/gnome-mime-application-x-scratch-project.png
cp -n icons/gnome-mime-application-x-scratch-project-128.png /usr/share/icons/hicolor/128x128/mimetypes/gnome-mime-application-x-scratch-project.png
gtk-update-icon-cache /usr/share/icons/hicolor
update-mime-database /usr/share/mime
cp -f icons/scratch2-editor.desktop /usr/share/applications/

cat << EOF
Do not forget to install the following packages!
1. # dnf install libXt.i686
Expand Down