1

I am having trouble getting Ubuntu Unity Launcher to launch Android-Studio. Here is my desktop file:

more Android-studio.desktop
[Desktop Entry]
Type=Application
Name=Android-studio
Comment=Android Integrated Development Environment
Icon=/home/jumbo/android-studio/bin/idea
Exec=/home/jumbo/android-studio/bin/studio.sh
Terminal=false
Categories=Development;IDE;Android;
StartupWMClass=Android-studio
Name[en_GB]=Android-studio

I copied the above from the Ubuntu web site but the icon blinks several times and then nothing happens.

I can find no clear instructions through Google browser.

Does unity launcher store launch errors?

Steven
  • 166,672
  • 24
  • 332
  • 435
user1501247
  • 326
  • 3
  • 13

3 Answers3

1

You will love this: (1) Go into your-> .Android Studio directory/folder in your GUI your ./studio.sh file should be there. ->(2)Right click inside the folder ->(3) Open Terminal here ->(4)Type: ./studio.sh ->Android Studio will open up the flash screen-> When Android Studio fully opens ->(5)Look on menu bar -> (6)Find:Tools -> (7)Choose: Create Desktop Entry ->(8)After it self configures (as your machine audibly roils with the new configuration):PRESTO!!!

Gary
  • 11
  • 2
  • I tried this twice, (before putting my question here) and it put an icon on the launcher. But it didn't work, both times I tried! – user1501247 Mar 22 '15 at 18:51
  • Just tried your EXACT instructions, and YES it WORKED! Brill! – user1501247 Mar 22 '15 at 19:43
  • I just followed the directions and when I executed the script, I saw this: > ~$ AndroidStudio > Traceback (most recent call last): > File "/usr/local/bin/AndroidStudio", line 99, in > os.execv(bin_file, [bin_file] + args) > OSError: [Errno 2] No such file or directory – Ray Kiddy Apr 10 '15 at 20:31
1

Simply

Android Studio -> Tools -> Create Desktop Entry

enter image description here

It will work

Linh
  • 57,942
  • 23
  • 262
  • 279
0

try adding to your code: StartupNotify=true

"This command in the desktop file enables the desktop to use whatever startup notification is built in to either your application or your toolkit."

for more details: https://developer.gnome.org/integration-guide/stable/startup-notification.html.en

Mounir Elfassi
  • 2,242
  • 3
  • 23
  • 38