LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 08-12-2004, 04:55 AM   #1
jamoraqui
LQ Newbie
 
Registered: Aug 2004
Location: Lebanon
Distribution: df
Posts: 4

Rep: Reputation: 0
Question Application Launcher


Hi All, I need to know how to make an application shortcut or Application Launcher. Iam using Linux Fedora and GNOME. Now I have tried to create an application launcher on my desktop and i specified the path of my .sh file that i use to run my program in the terminal window, But it is not working nothing happens. I am able to launch my program when i open a terminal window and write the path to my app and then typing "./myapp.sh".
could some one help?
 
Old 08-17-2004, 01:30 PM   #2
tonyfreeman
Member
 
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 187

Rep: Reputation: 30
Sorry I cannot answer this, but you are not alone.

I'm having the same difficulty. I have a script called start_script located in my home directory (/home/tony) that looks like this:

Code:
#!/bin/bash
cd /home/tony/DRT/
./start_program
At the terminal I can type in the name of the above script and it launches the start_program (which is a tcl/tk program) just wonderfully.

I right clicked on my desktop and chose "Create Launcher". In the "command" line I entered:

Code:
/home/tony/start_script
... and in the "type" I first chose "application" but have also fiddled around with other settings for this - including the "link" selection.

I click on my shiny new icon .... nothing happens.

Can someon please help with this?

Last edited by tonyfreeman; 08-17-2004 at 01:31 PM.
 
Old 08-17-2004, 05:21 PM   #3
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
Try typing the whole path to the file something like this

#!/bin/bash
/path/to/the/file.sh

The '.' in a shell means the whole path to the folder i.e. if you have a pogram in /usr/bin it's the same

cd /usr/bin
./program

and

/usr/bin/program
 
Old 08-17-2004, 06:15 PM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
This may be a dumb question: but are the file(s) executable?
 
Old 08-18-2004, 07:50 AM   #5
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
thats depends on the rights of the user and the file, but yes a file could be executable
 
Old 08-19-2004, 02:06 AM   #6
jamoraqui
LQ Newbie
 
Registered: Aug 2004
Location: Lebanon
Distribution: df
Posts: 4

Original Poster
Rep: Reputation: 0
Smile app Launcher

Guys Please. I need a little bit of effort here. Why is it so difficult to make app Launchers for god sake? . and dont tell me you are all using the Terminal to launch your applications.

I plea to all those who have successfuly created app launchers that actually work to share this knowledge with us.

or else guys (call this a warning if you like), Iam this "-" much away from installing windows 2000 :) , besides every time i stare at the windows 2000 cd I become still and hypnotic, as if the damn thing is trying to talk to me. if you guys saw Lord of the Rings you probably know what i mean. one time i had almost placed the cd in my cd player ready to boot when my girl friend flashed her boobze to break the spell. so please guys dont let take that evil path.
 
Old 08-19-2004, 06:49 AM   #7
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
First of all are, you sure you can execute that file? if you can you have only to right click on the desktop > 'Create Launcher' type the whole path to the program choose a name for the launcher and an icon, if you want so. If is text based you have to type to open in a terminal and that's all
 
Old 08-20-2004, 07:15 AM   #8
jamoraqui
LQ Newbie
 
Registered: Aug 2004
Location: Lebanon
Distribution: df
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Santas. i read in your posting that i must place the entire path to my .sh file in the command input field when creating the app launcher icon. Now iam not sure if iam doing that right so i will tell you what iam doing.

first: of all iam logged in as "root"

second: my program is located here --> /home/root/FlowBuilder35/bin/unix/VisualXSPStudio.sh.

third: when i open VisualXSPStudio.sh with gedit i see the following lines of text.
#!/bin/sh
# FlowBuilder studio launcher
. client.sh
$JAVA $VMPARAMS -classpath com.flowbuilder.VisualStudioframe $PROJECT_HOME


fourth: the file client.sh has the following lines of text in it
#!/bin/sh
# Common client application configuration

# Unix parameters
. unix.sh

# Client app use their own GUI. Do not show the console
JAVA=$JAVA_HOME/bin/java


# VW parameters
VMPARAMS="$VMPARAMS -noverify"

# Tune this VM to provide enough headroom to work on large applications
VMPARAMS="$VMPARAMS -Xms32m"
VMPARAMS="$VMPARAMS -Xmx256m"


############################
# Application path
############################

# Add all needed jar files
for jarfiles in ../../lib/client/*.jar
do
CLASSPATH=$CLASSPATH:$jarfiles
done
for jarfiles in ../../lib/client/jaxr/*.jar
do
CLASSPATH=$CLASSPATH:$jarfiles
done
for jarfiles in ../../lib/common/*.jar
do
CLASSPATH=$CLASSPATH:$jarfiles
done
for jarfiles in ../../lib/common/j2ee/*.jar
do
CLASSPATH=$CLASSPATH:$jarfiles
done
for jarfiles in ../../lib/common/jdbc/*.jar
do
CLASSPATH=$CLASSPATH:$jarfiles
done
for jarfiles in ../../lib/common/xml/*.jar
do
CLASSPATH=$CLASSPATH:$jarfiles
done
for jarfiles in ../../lib/common/commons-logging/*.jar
do
CLASSPATH=$CLASSPATH:$jarfiles
done

CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar


as for the way i create an app launcher, well here is a description:

first i right click on my desktop and chose to create a Launcher.
then i fill in the name, generic name comment etc..
and in the Command field i press on the browse button and go to where the VisualXSPStudio.sh file is and press on the ok button. the Command input Field is then filled with the following text--> /home/root/FlowBuilder35/bin/unix/VisualXSPStudio.sh.
then in the "TYPE" combobox i choose the "Application" option, once i tried the LINK option but also did not work. also i clicked on the checkbox that says "Run in Terminal" and again that didnt do much good.
and of course when i double click on the icon after it had been created simply nothing happens.


note: i would like to mention again that if i open a terminal window and browse to where the VisualXSPStudio.sh file is and type the following word ---> " ./VisualXSPStudio.sh" my program runs and i can start using it.

so i dont what esle i can say to provide you with info to help me guys. so i hope this would be good enough.
 
Old 08-20-2004, 08:22 AM   #9
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
Are client.sh and unix.sh in the same directory as VisualXSPStudio.sh? If open your pref text editor and type this:

#!/bin/bash
cd /home/root/FlowBuilder35/bin/unix/
./VisualXSPStudio.sh.

save it in /root/Desktop then you have to put the correct permissions to the file ' chmod 700 /root/Desktop/file. Whit this you have an script in your desktop that only the root could edit, view and execute.
 
Old 08-23-2004, 06:23 AM   #10
jamoraqui
LQ Newbie
 
Registered: Aug 2004
Location: Lebanon
Distribution: df
Posts: 4

Original Poster
Rep: Reputation: 0
May the Force be with you

Dude Santas, thank you very much for your help, i kneal before you. the stuff you told me to do worked, now i have a launcher for my app.

now could anyone tell me where i can find shock absorbers for 1967 volvo?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome application launcher properties are greyed out, can't change icons lhenriquez Linux - Newbie 1 10-10-2005 09:16 AM
Creating root Application Launcher in GNOME rwillard Linux - Newbie 3 04-06-2005 09:59 AM
How to create a menu group and application launcher? kiranprashant Programming 5 02-26-2005 12:15 AM
How do I create application launcher using bash script msgclb Programming 2 01-30-2005 06:28 AM
What is that application launcher dockapp in all the new Fluxbox screenshots? Locura Linux - Software 9 09-30-2003 03:38 PM


All times are GMT -5. The time now is 01:47 AM.

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