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? |
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 I right clicked on my desktop and chose "Create Launcher". In the "command" line I entered: Code:
/home/tony/start_script I click on my shiny new icon .... nothing happens. Can someon please help with this? |
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 |
This may be a dumb question: but are the file(s) executable?
|
thats depends on the rights of the user and the file, but yes a file could be executable
|
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. |
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
|
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. |
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. |
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? |
All times are GMT -5. The time now is 11:04 AM. |