You are not logged in.

#1 2013-08-28 14:00:17

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

[SOLVED] Openbox - menu.xml - command to open a terminal and ex

How would i insert a menu item in the openbox menu.xml to 1st open terminal (terminator) and 2nd in that same terminal execute the command wicd-curses. I have been trying something like this but hasn't worked out for me.

<item label="wicd-curses">
	<action name="Execute">
		<execute>
			terminator wicd-curses
		</execute>
	</action>
</item>

Last edited by 71GA (2013-08-28 14:11:23)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#2 2013-08-28 14:04:27

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Openbox - menu.xml - command to open a terminal and ex

read the Terminator man page

man terminator

How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#3 2013-08-28 14:08:30

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] Openbox - menu.xml - command to open a terminal and ex

2ManyDogs wrote:

read the Terminator man page.

These two arguments sure look interesting, but i don't quite understand them.

       -e, --command=COMMAND
              Runs the specified command instead of your default shell or pro‐
              file specified command

       -x, --execute COMMAND [ARGS]
              Runs the rest of the command line instead of your default  shell
              or profile specified command.

I want the terminator terminal to stay opened while it executes...

EDIT:

Argument -e worked for me.

Last edited by 71GA (2013-08-28 14:10:52)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#4 2013-08-28 14:11:48

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED] Openbox - menu.xml - command to open a terminal and ex

Try them and see what happens. smile


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB