473,491 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Adding Program links to Application Menu

nathj
938 Recognized Expert Contributor
Hi,

I've just got a new mini computer running Linux Ubuntu 8.04, and I'm very happy with it.

I've been merrily installing the few bits I want on it and one of those is a SQL editor. I've purchased RazorSQL as it seems to do exactly what I want.

My trouble is that I don't want to have to go into the terminal everytime I load it.

So I've managed to add it to the Applications>>Programming menu but when I click on the item I get a blank terminal window - really noting in it and the following message:
There was an error creating the child process for this terminal
So what have I done? Well, knowing that to launch the program in the terminal I typed:
Expand|Select|Wrap|Line Numbers
  1. cd programs/razorsql
  2. sh razaorsql.sh
  3.  
I have created a file that contains the following code:
Expand|Select|Wrap|Line Numbers
  1. #! /bin/bash
  2. cd programs/razorsql
  3. sh razaorsql.sh
  4.  
Then under the menu item properties I have set the following:

Type Application in Terminal
Name RazorSQL
Command /home/ndavies/programs/launchers/razorslq

(that's the file I mentioned above)

With all that in place I click the item on the menu and get the error I mentioned above.

Does anyone know what I've done wrong or what I should do instead of all this? I really do what to have this item accessible from the menu.

Many thanks
Nathan
Dec 5 '08 #1
9 3353
ashitpro
542 Recognized Expert Contributor
Could you please try with this command...?

"sh razaorsql.sh &" instead of "sh razaorsql.sh".

However, I'm not sure about this...
Dec 5 '08 #2
Nepomuk
3,112 Recognized Expert Specialist
@nathj
When you open a terminal, you are automatically in your home directory. So try changing that bash script to
Expand|Select|Wrap|Line Numbers
  1. #! /bin/bash
  2. cd /home/nathj/programs/razorsql
  3. sh razaorsql.sh
  4.  
(if "nathj" is your username)

Also, you can try if the command
Expand|Select|Wrap|Line Numbers
  1. /home/nathj/programs/razorsql/razorsql.sh
works from terminal.

Greetings,
Nepomuk
Dec 5 '08 #3
nathj
938 Recognized Expert Contributor
Hi there,

@ asitpro:
I tried that and it made no difference

@Nepomuk:

I have changed the bash script and I still get the same issue. I also tried the script in the terminal - typing it in myself and that worked fine.

If I type in:
Expand|Select|Wrap|Line Numbers
  1. sh /home/ndavies/programs/razorsql/razorsql.sh
  2.  
I get the following message shown in the terminal:
/home/ndavies/programs/razorsql/razorsql.sh: 2: ./jre/bin/java: not found
Any further thoughts?

Cheers
nathj
Dec 5 '08 #4
Nepomuk
3,112 Recognized Expert Specialist
And how about the command
Expand|Select|Wrap|Line Numbers
  1. /home/nathj/programs/razorsql/razorsql.sh
Did you try that? If it works in the terminal, does it work for the bash script?

Greetings,
Nepomuk
Dec 5 '08 #5
nathj
938 Recognized Expert Contributor
@Nepomuk
Wow, that was a quick reply.

Here's what works in the terminal:

Expand|Select|Wrap|Line Numbers
  1. cd /home/ndavies/programs/razorsql
  2. sh razorsql.sh
  3.  
That is exactly what I have in the bash script after the initial line and I still get the odd message about creating the child process.

This all really new to me and I really appreciate the help.

nathj
Dec 5 '08 #6
nathj
938 Recognized Expert Contributor
One other thing I should point out, it may be helpful, I don't know.

If I navigate to the razorsql.sh file and click on it I get a message asking me if I want to run it or display it's contents with the options of Run in terminal, display, cancel and run.

thanks again
nathj
Dec 5 '08 #7
Nepomuk
3,112 Recognized Expert Specialist
One thing that just struck me: You say, you call it with
Expand|Select|Wrap|Line Numbers
  1. sh razorsql.sh
Now, as you have
Expand|Select|Wrap|Line Numbers
  1. #/bin/bash
in your script, you shouldn't have to do that. Just make that script executable (if you haven't already) with
Expand|Select|Wrap|Line Numbers
  1.  chmod +x /home/ndavies/programs/launchers/razorslq.sh
and try to change the script to
Expand|Select|Wrap|Line Numbers
  1. #! /bin/bash
  2. cd /home/ndavies/programs/razorsql
  3. ./razaorsql.sh
Also, have you tried running your script from terminal?

Greetings,
Nepomuk
Dec 5 '08 #8
nathj
938 Recognized Expert Contributor
Nepomuk,

You are a genius! thank you for helping me out.

Changing the script I wrote to be executable and then amending it as you sad works a treat.

Thank you for helping me out, not only have I got my problem solved I've learnt something along the way,

Cheers
nathj
Dec 5 '08 #9
Nepomuk
3,112 Recognized Expert Specialist
Glad I could help! :-)

Greetings,
Nepomuk
Dec 5 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2919
by: Isabelle | last post by:
Hello all, I want two sets of links to do different things; one set within *content* and the other *navigational* elements. In particular I want the *hover* rollover effect to work differently...
5
3323
by: Papa.Legba.666 | last post by:
I am a total lamer clueless stupid newbie (so please flame me). Honestly, I know nothing of CSS, although I tend to pick things up quickly... A friend pointed out that my JavaScript menu...
16
3155
by: Picho | last post by:
Hi all, Is there any .NET way (I am not rulling out API usage) to add button(s) to a form's title bar? I found some non-.NET solutions that did actually work in VB6 but not in the ..NET...
6
8783
by: William J. Leary Jr. | last post by:
I'm running a VB6 program, the IDE for a compiler. Paste doesn't work if the text was cut/copied from within the program. That is: 1. Cut/copy inside the program, can't paste. Program:...
1
5502
by: nsvmani | last post by:
Hi, i am trying to get the FileOpen dialogue window as soon as clicked href link I am using IE6 with ActiveX enabled. Just need to get the File Open dialogue window when i click on the HREF links.It...
0
1039
by: mharrison | last post by:
hi all, i want to add an addition to the existing windows menu in a program i am writing in vb in visual studio 2005. basically i want it to be like this Restore, Maximize, Minimize etc and...
1
14295
by: Preeti | last post by:
Hi all I am a fresher and have been given a requirement in VB.net I have to make an application in VB.net which will run as a system tray icon and will add one or two items in the default...
4
1860
by: Jonny Relentless | last post by:
After adding a form to a C# program, I am unable to use it. I want to use form1 as a sort of menu, so that when the user clicks a button, form1 will close and form2 (or form3, etc) will open. What...
0
7118
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7192
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.