java 如何将STS添加到Ubuntu桌面22.04

oo7oh9g9  于 2023-01-04  发布在  Java
关注(0)|答案(1)|浏览(155)

我正在尝试添加STS到Ubuntu 22.04。然而,似乎有一些问题,与桌面文件,我试图添加。

[Desktop Entry]
Type=Application
Name=sts
Comment=Spring Tool Suite
Icon=/home/madhukar/Downloads/spring-tool-suite-4-4.17.0.RELEASE-e4.26.0-linux.gtk.x86_64/sts-    4.17.0.RELEASE/icon.xpm
Exec=/home/madhukar/Downloads/spring-tool-suite-4-4.17.0.RELEASE-e4.26.0-linux.gtk.x86_64/sts-4.17.0.RELEASE/SpringToolSuite4
Terminal=false
Categories=Development;IDE;Java;
StartupVMClass=STS

这是我的“sts.desktop”文件。我还提供了作为程序运行的权限。但是这不起作用。在文件加倍时,stsIDE没有打开。
对此的任何帮助都将不胜感激。
file properties and permissions

lsmepo6l

lsmepo6l1#

~/.local/share/applications下的# sts4.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=Spring Tool Suite 4
Icon=/home/madhukar/Downloads/spring-tool-suite-4-4.17.0.RELEASE-e4.26.0-linux.gtk.x86_64/icon.xpm
Exec="/home/madhukar/Downloads/spring-tool-suite-4-4.17.0.RELEASE-e4.26.0-linux.gtk.x86_64/SpringToolSuite4" %f
Comment=Spring Tool Suite 4
Categories=Development;IDE;
Terminal=false
# StartupWMClass=jetbrains-idea-ce
StartupNotify=true
MimeType=x-scheme-handler/eclipse+command;x-scheme-handler/eclipse+mpc;

检查您的代码,路径包含一些空格

您的设置:
Icon=/home/madhukar/Downloads/spring-tool-suite-4-4.17.0.RELEASE-e4.26.0-linux.gtk.x86_64/sts- 4.17.0.RELEASE/icon.xpm
点击这里:sts- 4.17.0

相关问题