Menu issue with Aptana Studio 3 on Ubuntu 11.04

In a break from .NET/Visual Studio themed blog posts, a quick pointer for anybody attempting to use Aptana Studio 3 in Ubuntu 11.04 – the main menu is totally hosed because of a clash with the new Unity 3D window manager. There’s a workaround in the Appcelerator docs (Appcelerator being the recent new owners of Aptana) for this. Simply create yourself a bash script to use as a proxy for launching Studio instead of opening it directly, which will allow the setting of an environment variable to restore the menu:

#!/bin/bash
export UBUNTU_MENUPROXY=0
./AptanaStudio3

If you’re new to the world of Linux, or a bit rusty, to make use of the above you need to create it as a text file in your editor of choice and then save it in the same directory as the Aptana Studio executable. You then need to give the file execute privileges (let’s assume you saved it as “AptanaLauncher”):

chmod u+x AptanaLauncher

You then execute it as follows:

./AptanaLauncher

The issue has been filed as an Eclipse bug, but a fix is still forthcoming (it’s been a few months already).

As an aside, following Appcelerator’s acquisition of Aptana Studio, they’ve recently release Titanium Studio. Worth noting that this is nothing more than Aptana Studio with full integration of the Titanium infrastructure – if you have no need for Titanium, there’s no need to switch (as pointed out by Aptana support themselves).

This entry was posted in Fixes and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. Prescilla
    Posted August 11, 2011 at 1:12 pm | Permalink

    Thank you for this! Can I make a desktop shortcut of this text file? Or add it to Unity Launcher? I can run it through terminal but I would like to save time and have it in my launcher. I tried creating a launcher on the desktop and point it to where the “AptanaLauncher” file was saved but it doesn’t work. Thanks in advance.

    • Posted September 22, 2011 at 1:17 am | Permalink

      Prescilla,

      You can make a file called aptana.desktop and put it in your /home/username/.local/share/applications folder. Note that the .local folder is hidden, so you need to use Ctrl+h to see it. To this file add the contents:

      [Desktop Entry]
      Version=1.0
      Type=Application
      Terminal=false
      StartupNotify=true
      Icon[en_US]=/opt/aptana/aptana.xpm
      Name[en_US]=Aptana Studio 3
      Exec=./AptanaLauncher
      Name=Aptana Studio 3
      Icon=/opt/aptana/aptana.xpm

      Log out and back in. Then open the ~/.local/share/applications folder and drag the aptana.desktop file to the launcher. Right-click and choose “Keep in Launcher”.

      Another way is to use

      • Posted September 22, 2011 at 1:18 am | Permalink

        Sorry, got cut off.

        Be sure to adjust the path to your icon.

  2. Bojan Nišević
    Posted December 23, 2011 at 12:17 am | Permalink

    Thank you a lot for the tip! I’m new Ubuntu user and this was useful.

One Trackback

Leave a Reply