2

Whenever I try to run this command

sh /opt/Aptana_Studio_3/AptanaStudio3.sh 

for the Aptana Studio 3 from root directory it shows that

/opt/Aptana_Studio_3/AptanaStudio3.sh: 3: /opt/Aptana_Studio_3/AptanaStudio3.sh: ./AptanaStudio3: not found

but when i go to the directory it is executed easily.

Since I made shortcut for the given file and it shows

there was error launching the application and so i think the error as in the above command could be the reason for this. If There is something else please let me know.

Code For Desktop Entry

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Aptana Studio 3
GenericName=Integrated Development Environment
Comment=Aptana Strudio 3 Integrated Development Environment
Exec=/opt/Aptana_Studio_3/AptanaStudio3.sh
TryExec=/opt/Aptana_Studio_3/AptanaStudio3.sh
Icon=/opt/Aptana_Studio_3/AS3.png
StartupNotify=true
StartupWMClass="Aptana Studio 3"
Terminal=true
Type=Application
MimeType=text/xml;application/xhtml+xml;application/x-javascript;application/x-php;application/x-java;text/x-javascript;text/html;text/plain
Categories=GNOME;Development;IDE;

So I need your help to figure this and make a working desktop entry for this program

Danatela
  • 13,384

1 Answers1

0

Open /opt/Aptana_Studio_3/AptanaStudio3.sh script.

sudo gedit /opt/Aptana_Studio_3/AptanaStudio3.sh

There should be the line (apparently, the 3rd) which actually launches Aptana Studio. Change it to /opt/Aptana_Studio_3/AptanaStudio3. The reason is there should be absolute path, not relative.

Danatela
  • 13,384