You are not logged in.

#1 2012-08-20 14:03:15

freaxtux
Member
Registered: 2012-07-17
Posts: 38

[SOLVED]some console commands without console make gui programs killed

I'm using openbox as WM. I think it is openbox that causes the trouble

it seems that when I try ot execute some console application without console but the application needs user input, the problem occurs.

when the issue arises, gui programs gets killed, leaving its window blank.

not all of gui programs though, chromium and conky got closed but xterm didn't.

however, they survive when they are executed with xterm.

I could reproduce the problem with sudo or alsamixer, run by either right-click menu or gmrun.

Is there anyone experiencing the same issue?

sorry for my english.

Last edited by freaxtux (2012-08-25 03:05:17)

Offline

#2 2012-08-22 00:26:32

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]some console commands without console make gui programs killed

If you are trying to run a console or terminal application that needs user input, it must be run in a terminal window.  For example, to run alsamixer from the openbox menu I would have this in my ~/.config/openbox/menu.xml:

        <item label="Alsamixer">
            <action name="Execute">
                <execute>xterm -e alsamixer</execute>
            </action>
        </item>

The command on the line with "<execute>" opens an xterm window and then the '-e' option tells xterm to run the next command on that line.

Urxvt also uses the '-e' option to run commands.  To get htop to run from the open box menu in a urxvt window, I would use this:

        <item label="Htop">
            <action name="Execute">
                <execute>urxvt -e htop</execute>
            </action>
        </item>

For gmrun, I believe you use Ctrl-Enter to have it open an app in a terminal.  At least that is what the wiki page says: https://wiki.archlinux.org/index.php/Gmrun

Offline

#3 2012-08-24 06:54:05

freaxtux
Member
Registered: 2012-07-17
Posts: 38

Re: [SOLVED]some console commands without console make gui programs killed

thanks for being kind enough to read and answer my post.:) I'm doing my best to make it easy to read, but apparently that doesn't work well...(My mother language is totally different from english)

I know those should be executed in terminal in order to make them run as expected. but the point is, every time I forget to press Ctrl in gmrun(that is, without terminal), all the gui programs gets killed. is that a natural behavior? shouldn't it be just closed silently without any mess?

Offline

#4 2012-08-24 11:27:58

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]some console commands without console make gui programs killed

I installed gmrun to test it.  It doesn't blank windows on me, but it does freeze them.  I tried with both xterm and urxvt as my terminal.   I tried to run alsamixer, as you did, and pressed 'Enter', not 'Ctrl-Enter'.  Alsamixer was running without a terminal for input and output so I had to kill it from a new terminal.  Firefox was frozen and I had to kill it.  Conky lost its display window too.

One solution, if you wish to keep using gmrun, is to modify the gmrunrc so any terminal application you may wish to run using gmrun is named in the 'AlwaysInTerm =' line.

AlwaysInTerm = ssh telnet ftp lynx mc vi vim pine centericq perldoc man alsamixer htop

I have my terminals, xterm and urxvt, opening with simple key combinations.  I would have no reason to run a terminal application using gmrun.

Offline

#5 2012-08-25 03:04:26

freaxtux
Member
Registered: 2012-07-17
Posts: 38

Re: [SOLVED]some console commands without console make gui programs killed

okay. thanks. I'll mark this topic as solved.

Offline

Board footer

Powered by FluxBB