Topic: [SOLVED]Autostrarting Midnight Commander in OB

I'm trying to switch to as many console-based apps that I can, and have recently stumbled upon Midnight Commander. And I'm trying to learn it and get comfortable enough with it to fully replace PCManFM/Thunar.

So anyways, what would be the ideal command to place in my autostart.sh to autostart mc? Would it be simply 'mc'? I ask only because the command I've been using for Thunar/PCManFM has been:

thunar --daemon &
pcmanfm --daemon &

So should I also use 'mc --daemon &', or just 'mc'?

One other question, do I even need to place a file manager in my autostart? I mean I've been switching between Thunar and PCManFM a lot lately. PCManFM has been in my autostart, but when I wanted Thunar I just clicked on the Thunar command in my menu. So what really is the point of autostarting a file manager at startup?

Thanks for any help.

EDIT: Also, what exactly can I do to make MC open as a bigger screen? Is there's something I can put in my .Xdefaults? This will help with other terminal apps too, like MoC. It opens so tiny, I'm getting kind of tired of constantly having to resize it.

Last edited by h8uthemost (2011-09-17 14:01:45)

Re: [SOLVED]Autostrarting Midnight Commander in OB

Since its a terminal app you need to execute it with a terminal like:

xterm -e mc
terminator -x mc

I think people run Thunar/PCManFM as deamon so it starts faster. Either that or something to do automounting of drives.

Note: ** Please read before posting **

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

Re: [SOLVED]Autostrarting Midnight Commander in OB

Oh yeah, I forgot about the automounting of drives thing. I'll have to put mc in my autostart.sh and see if it will automount when I plug in a usb.

Thanks for the command. Duh...totally forgot about the terminal thing.

Re: [SOLVED]Autostrarting Midnight Commander in OB

I doubt mc has any automounting. Actually Im most certain it doesn't.

Note: ** Please read before posting **

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

Re: [SOLVED]Autostrarting Midnight Commander in OB

Yeah it sure doesn't. But it's not a big deal though. Half the time the external drive wouldn't automatically pop up in PCManFM/Thunar anyways, so  I'm used to manually opening the file manager for it.

By the way, I'm starting to get into using screen quite a bit. And I saw in another thread how to get apps like rtorrent to automatically start when you type screen in a terminal. But is there anyway to assign screen to a key bind? I've tried 'wterm -e screen' already but that didn't work. So I'm just wondering if assigning it to a key bind is possible.

Thanks.

Re: [SOLVED]Autostrarting Midnight Commander in OB

@Hate-U
http://linuxwisdom.blogspot.com/2006/08 … cally.html

Just modify it for your shell (if you're using something other than bash) and terminal emulator.

Point & Squirt

Re: [SOLVED]Autostrarting Midnight Commander in OB

Hmmm...I'm probably reading this wrong(I do that a lot), but isn't this for autostarting screen? I'm looking to set it to a key bind in OB.

And I'm completely clueless with it. I've tried many different variations. Even tried the exec /usr/bin/screen from that article and still no-go. Right now terminal is binded to Super+t, and the command for it is 'sakura'. I was hoping I could just add something to that for terminal to pop up as screen everytime I hit Super+t, but I haven't been able to figure it out. I was hoping it would be as easy as putting the word 'screen' before or after 'sakura'.

Last edited by h8uthemost (2011-09-18 10:38:18)