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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-12-2004, 04:55 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2004
Location: Lebanon
Distribution: df
Posts: 4
Rep:
|
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?
|
|
|
|
08-17-2004, 01:30 PM
|
#2
|
|
Member
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 187
Rep:
|
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.
|
|
|
|
08-17-2004, 05:21 PM
|
#3
|
|
Member
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290
Rep:
|
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
|
|
|
|
08-17-2004, 06:15 PM
|
#4
|
|
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851
Rep:
|
This may be a dumb question: but are the file(s) executable?
|
|
|
|
08-18-2004, 07:50 AM
|
#5
|
|
Member
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290
Rep:
|
thats depends on the rights of the user and the file, but yes a file could be executable
|
|
|
|
08-19-2004, 02:06 AM
|
#6
|
|
LQ Newbie
Registered: Aug 2004
Location: Lebanon
Distribution: df
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
|
08-19-2004, 06:49 AM
|
#7
|
|
Member
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290
Rep:
|
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
|
|
|
|
08-20-2004, 07:15 AM
|
#8
|
|
LQ Newbie
Registered: Aug 2004
Location: Lebanon
Distribution: df
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
|
08-20-2004, 08:22 AM
|
#9
|
|
Member
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290
Rep:
|
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.
|
|
|
|
08-23-2004, 06:23 AM
|
#10
|
|
LQ Newbie
Registered: Aug 2004
Location: Lebanon
Distribution: df
Posts: 4
Original Poster
Rep:
|
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?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:19 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|