LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-03-2005, 01:10 PM   #1
loopyzort
LQ Newbie
 
Registered: May 2004
Location: San Francisco
Distribution: Ubuntu Hoary
Posts: 8

Rep: Reputation: 0
gnome launcher for intellij shell script


Hey hay,

I'm running Ubuntu with Gnome (I converted from Blackbox/Slack, so I'm a Debian newbie). I've scoured google and the likes for a solution, but basically, I'm running Intellij Idea Java IDE, which launches with a shell script and can't get a panel launcher in Gnome. I created a wrapper shell script and added a sleep call to see what the errors were, it appears my shell environment variables don't apply to the shell script when called from the launcher. I've tried hardcoding the paths into the script to no avail. Has anyone encountered this? Gnome seems pretty snappy, but I don't know if I can live with Terminal->cd /usr/share/idea/bin->idea.sh every time I want to write some Java code...

Thanks,
lz
 
Old 08-24-2009, 12:46 PM   #2
shadowcreeper
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
The following works for me with Ubuntu Jaunty (also worked with Intrepid).

This assumes you have downloaded the .tgz file and extracted it into $HOME/bin (it should have created a directory under that called idea-#### -- where #### is the build that you downloaded). If you have installed it elsewhere, you will need to modify the script a bit.

PS -- I would recommend always extracting into another directory and moving the resulting idea-#### into $HOME/bin by hand.

########### BEGIN idea.desktop (the icon on the menu bar) ###########
#!/usr/bin/env xdg-open

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name[en_US]=IntelliJ Idea 8
Exec=/home/shadow/bin/idea
Comment[en_US]=IntelliJ Idea 8 Java IDE
Name=IntelliJ Idea 8
Comment=IntelliJ Idea 8 Java IDE
Icon[en_US]=/home/shadow/icons/idea32.png
Icon=/home/shadow/icons/idea32.xpm
Categories=Application;Development
############ END idea.desktop (the icon on the menu bar) ############

########### BEGIN $HOME/bin/idea (shell script) ###########
#!/bin/bash

# Buggy: Appears to add an extra blank line after every line of text.
#export JDK_HOME=/usr/lib/jvm/java-6-openjdk
#export JAVA_HOME=/usr/lib/jvm/java-6-openjdk

# Works fine
export JDK_HOME=/usr/lib/jvm/java-6-sun
export JAVA_HOME=/usr/lib/jvm/java-6-sun

# Works fine
#export JDK_HOME=/usr/lib/jvm/java-1.5.0-sun
#export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun

# You might need to change IDEA_HOME if you installed it elsewhere
export IDEA_HOME="$HOME/bin/idea-9886"
#export IDEA_HOME="$HOME/bin/idea-9902"
export IDEA_VM_OPTIONS="$IDEA_HOME/bin/idea.vmoptions"
export IDEA_PROPERTIES="$IDEA_HOME/bin/idea.properties.file"

cd "$IDEA_HOME/bin"
export LIBXCB_ALLOW_SLOPPY_LOCK=1
./idea.sh
############ END idea (shell script) ############
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script adding autostart gnome script Coolrunr Programming 3 01-01-2009 02:23 PM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
Exectuing Shell Script on Gnome Startup lloracle_dba Linux - Software 4 05-03-2005 03:32 PM
Firefox 0.9 launcher script Pathian Linux - Software 2 06-17-2004 02:45 PM
gnome-terminal launcher script Mur Linux - Software 0 04-26-2004 10:43 AM


All times are GMT -5. The time now is 05:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration