You are not logged in.

#1 2012-06-28 15:26:30

superchango
Member
From: Tenochtitlan
Registered: 2009-01-22
Posts: 133

[Solved ]Problems with a programs started from a console app

Ok, i'm using Midnight Commander like my file manager. It runs well, but i have a problem:

When i run first  urxvt and then MC, i can open any file and close MC after this, and the file is still open in its respective app. But if i run MC directly from a menu or Run dialog with: urxvt -e mc and i open a file, when i close MC, the file is closed too.

How can i avoid this? I really want to can close MC without close the files that i have opened. In my Fluxbox's menu i putted an entry for MC with that command, is it the correct command for this?

Thank you!

Last edited by superchango (2012-06-29 18:07:54)


"Yo creo que los muertos son tiernos. ¿Nos besamos?"

Offline

#2 2012-06-29 04:21:27

santodelaespada
Member
Registered: 2009-04-15
Posts: 50

Re: [Solved ]Problems with a programs started from a console app

MC works like that.
since you use the "-e" to launch it on the terminal window, the terminal closes after mc's focus loss.

Offline

#3 2012-06-29 07:03:10

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [Solved ]Problems with a programs started from a console app

See if adding -hold to the urxvt command helps

man urxvt wrote:

-hold|+hold
           Turn on/off hold window after exit support. If enabled, urxvt will not immediately destroy its window when the program
           executed within it exits. Instead, it will wait till it is being killed or closed by the user; resource hold.


You're just jealous because the voices only talk to me.

Offline

#4 2012-06-29 11:27:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved ]Problems with a programs started from a console app

I'm not sure exactly why the difference would lead to this behavior, but the difference between the times it works the way you want and the times it doesn't is that the former has an interactive shell associated with it.

Instead of `urxvtc -e mc` try `urxvtc -e /bin/bash -i -c mv`.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-06-29 18:07:28

superchango
Member
From: Tenochtitlan
Registered: 2009-01-22
Posts: 133

Re: [Solved ]Problems with a programs started from a console app

Thank you to everyone.

I was played with both suggest and here is the solution:

urxvtc -e /bin/bash -i -c "mc;bash"


"Yo creo que los muertos son tiernos. ¿Nos besamos?"

Offline

Board footer

Powered by FluxBB