You are not logged in.
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
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
See if adding -hold to the urxvt command helps
-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
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
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