我使用的是ubuntu伙伴16.04。我安装了土坯空气和scratch2。当我双击sb2文件时,scratch2会启动,但它是空的,并且未加载scratch项目。我可以做什么来打开一个sb2划痕项目双击?
File: /usr/share/applications/scratch2.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/opt/adobe-air-sdk/adobe-air/adobe-air /opt/adobe-air-sdk/scratch /Scratch-456.0.1.air
Icon=/opt/adobe-air-sdk/scratch/scratch.png
Terminal=false
Name=scratch2
Comment=Programming system and content development tool
Categories=Application;Education;Development;ComputerScience;
MimeType=application/scratch2project
File: /usr/share/mime/packages/scratchxml.xml
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/scratch2project">
<glob pattern="*.sb2"/>
</mime-type>
</mime-info>
In the file /usr/share/applications/defaults.list I added the line:
application/scratch2project=scratch2.desktop
sudo chmod +x /usr/share/applications/scratch2.desktop
sudo update-desktop-database
sudo update-mime-database /usr/share/mime/发布于 2018-06-21 20:17:57
Ubuntu存储库已经包含(scratch包),但它有点过时:

我在这里张贴桌面的内容- 16.04 LTS打包版本1.4的文件.12月11日-
/usr/share/mimelnk/application/x-scratch-project.desktop:
[Desktop Entry]
Encoding=UTF-8
Type=MimeType
MimeType=application/x-scratch-project
Comment=Scratch Application
Comment[es]=Aplicación de Scratch
Icon=scratch.png
Patterns=*.sb;/usr/share/application/划痕。桌面:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=scratch %f
Icon=scratch
Terminal=false
Name=Scratch
Comment= Programming system and content development tool
Categories=Application;Education;Development;ComputerScience;
MimeType=application/x-scratch-project您可以根据您的路径修改它们。
https://askubuntu.com/questions/1048338
复制相似问题