Topic: Adding a program to the menu [SOLVED]

Hi guys. N00bie here. I just put CrunchEEE on a Asus EEE pc 701 4gb and really enjoying it. Problem is I don't know linux that well. I've managed to play around and get OpenOffice running (need it for power point) and get a external monitor working. I even did the tweaks for CPU usage.

I don't find using the terminal command to launch the program very friendly so I set about following the instructions from this page:

http://crunchbanglinux.org/wiki/howto/f … o_the_menu

I think I followed them correctly, but when I hit the option in the menu it doesn't do anything...

This is the command line I find in /usr/bin:

exec /opt/openoffice.org3/program/soffice "$@"

and when I put that in the terminal it works fine. So that is the command I used in the GUI Menu Editor. It didn't work. Can anyone think about what I did wrong?

Thanks in advance

Re: Adding a program to the menu [SOLVED]

i can't see why using the file that contains 'exec /opt/openoffice.org3/program/soffice "$@"' wouldn't work, but failing that just
'/opt/openoffice.org3/program/soffice'
sould do the trick

- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Re: Adding a program to the menu [SOLVED]

benj1 wrote:

i can't see why using the file that contains 'exec /opt/openoffice.org3/program/soffice "$@"' wouldn't work, but failing that just
'/opt/openoffice.org3/program/soffice'
sould do the trick


Thanks! that worked. Not sure why it wouldn't work the other day. Has anyone changed the menu using the exec command line and had it work?

Re: Adding a program to the menu [SOLVED]

I tried "exec terminator" in my Openbox menu and it didn't work. However I don't think exec should be used anyways.

exec man page wrote:

If  exec is specified with command, it shall replace the shell with command without
       creating a new process.  If arguments are specified, they  shall  be  arguments  to
       command.  Redirection affects the current shell execution environment.

If you run "exec program" in a terminal then when you close the program the terminal will be closed as well.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Adding a program to the menu [SOLVED]

anonymous wrote:

If you run "exec program" in a terminal then when you close the program the terminal will be closed as well.

Hey, so it will! Learn something every day. Still trying to get a grip on exec, and that added a piece to the puzzle. smile

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Adding a program to the menu [SOLVED]

Please add [SOLVED] to the title!
Thanks!

Re: Adding a program to the menu [SOLVED]

@xaber - if you edit your first post, you can also edit the title.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Adding a program to the menu [SOLVED]

Sorry anonymous but I can't understand you: this is not a thread I started... And if I edit my reply I can't see a title to edit!

Re: Adding a program to the menu [SOLVED]

Oh sorry. Usually its the OP who asks to have a thread marked as SOLVED.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Adding a program to the menu [SOLVED]

Don't worry Anon! wink