Midnight commander wrapper problems

Hi,
I'm a happy mc (midnight commander) user, but i have some problems...
First of all when i start it with 'mc'  it's in b/w. I can use 'mc -c' to force colors, but shouldn't it be able to figure this out?
Secondly, i can't get the mc-wrapper to work. (it's the script that makes sure you drops out in the directory mc was displaying when you quit.) It simply doesn't do what's it's supposed to do.
Any tips/ideas/suggestions are welcome!

On colours: what is your $TERM env set to?  If it's xterm, that's the one without colours.  Set it to xterm-color to get colour by default.

Similar Messages

  • Problem with file association in midnight commander

    i want to open jpg files with gpicview isntead of feh in midnight commander, i read that i have to edit the file: /etc/mc/mc.ext
    in the part that say type/^JPEG
    i wrote
    #Include=image-options
    Open=gpicview %f
    i restart mc but nothing happen it still open the jpg files with feh, what im doing wrong?
    cheers

    try this
    type/^JPEG
    Include=its
    include/its
    Open=/usr/bin/gpicview %f
    View=/usr/bin/gpicview %f
    make its anything you want

  • [SOLVED] troubleshooting midnight commander

    Hello,
    I am trying to have .doc files opened in word (through wine) when I hit ENTER on the file in midnight commander (mc). However, when I hit ENTER, the screen briefly flashes, then nothing happens. Somewhere I read that if you hit M-! then you can see the output of your command so I tried that to see what exactly mc is calling when I hit ENTER, but for some reason M-! just pulls up a filter view.
    Anyone know how to figure out what command mc is executing when I hit ENTER on a .doc file, or any other means of troubleshooting/logging events in mc so I can figure out where my problem is or something is not working?
    Last edited by awayand (2011-07-30 04:49:39)

    Sounds like you need to edit the /etc/mc/mc.ext file so that it knows what to open and where when it sees a .doc file.
    Better still copy that mc.ext file to your ~/.mc directory and work on it there.

  • [Solved] Midnight Commander file associations - ePub

    After I installed Midnight Commander, it would open epub files with ebook-viewer (Calibre viewer) out of the box, without any specific config from me, which was great, since that was exactly what I wanted it to do.
    Since right now, it no longer does that, and open the files with Firefox instead (which prompts me to save them somewhere.)
    I did not install any update between yesterday and right now, so I wonder what could have happened. I actually restarted Firefox just before that because it froze, and the version 32 was recently shipped, so that might count as an update.
    I have the default Midnight Commander settings, and from what I understand it's supposed to use lucidor to open epub files, which I don't have (that's in /usr/lib/mc/ext.d/doc.sh lines 177-178.)
    So my question is, where this association, previously with Calibre, now with Firefox, comes from?
    I understand that I could just edit ~/.config/mc/mc.ext to have the proper association, but if I could avoid changing the default settings, I would prefer so.
    Last edited by bonob (2014-09-11 18:35:43)

    Thanks to your pointing at xdg, I understand what's happening. Poor Firefox or xdg associations are actually innocent, what happens is that after I close this particular book (which I just started to read before the problem happened) in Calibre, the mimetype changes, from application/epub+zip to application/zip (Calibre saves the file on exit, because it puts a bookmark at the current location.)
    I don't know how to repair the mimetype, but I have a copy of the original file, so that's fine. I'll try to find more details and report to the Calibre developer, and mark this thread solved.
    Thanks again!

  • MC (Midnight Commander) sluggish in Konsole

    Hi.
    One of my favorite apps is MC (Midnight Commander). I have used it for over 10 years in all kinds of different terminals. I am now running KDEmod and MC is sluggish in Konsole. When I scroll the action is jerky, and when I click on a directory there's a noticeable pause before the directory opens. I have tried to run MC i Xterm and it's fast as it should be. Being a snappy file manager is one of the reasons I like it, so this slow response in Konsole is annoying. I am not sure if this is Konsole or MC related, but I have a feeling Konsole may be slower than other terminal programs available. Ideas anyone?

    skualito wrote:I remember having a speed issue with mc due to compositing and/or use of non xft fonts. Though it was in urxvt, so I'm not sure this is the same problem. I just came across this thread  http://www.nvnews.net/vbulletin/showthread.php?t=118157, maybe a video driver problem ?
    Thanks. I think this may be it. The post you point to is related to Nvidia which is what I have on this laptop. Doesn't seem to be a solution though unless Konsole gets rewritten.

  • Set midnight commander as default file manager.

    How can i set mc as a default file manager to open files from chrome downloads in it?
    I've put a .desktop file inside /ust/share/applications/
    midnight-commander.desktop
    [Desktop Entry]
    Name=Midnight Commander
    Type=Application
    Terminal=true
    Comment=A visual file manager
    Exec=mc
    TryExec=mc
    Icon=MidnightCommander
    Categories=System;FileTools;FileManager;
    and run xdg-mime default midnight-commander.desktop inode/directory. But when i try to open something from chrome downloads nothing happens.

    anonymous_user wrote:You set "Terminal=true", but what terminal is it trying to run? Do you have xterm installed?
    I'm using zsh + urxvt. Xterm is also installed
    Last edited by innocent_rifle (2013-01-10 12:26:54)

  • Copy full file path+file name in Midnight Commander

    Hi!
    How can I copy a file's full path with the file name in Midnight Commander?
    If I press Ctrl+Alt+Enter it's shows this to me in the command line but I can't copy this route.
    If I mark a file with 'Insert' and than if I would like to paste this for example in Mousepad or any other text editor with Shift+Insert or Ctrl+V it isn't works.
    (Relatively newbie sitting here so if the answer is complicated please write a step-by-step instruction )

    Well,I did a lot of research on the internet and I found the best solution.
    - choose the file,press 'Ctrl' + 'Shift' + 'Enter'
    - after that you can see the full file path + the file name in the command line (bottom of the screen)
    - Select the text with 'Shift' + 'Mouse Left Click' (drag it across the whole command)
    - For copy the text, press 'Ctrl' + 'Insert'
    - For paste, press 'Shift' + 'Insert'
    This is still pretty damn slow,I wanted to do it with a single key combination while the file is selected but it looks impossible.
    But at the same time I have started to use Ranger file manager which is also runs from terminal,extremely fast,easy to use and if I press 'Ctrl' + 'Insert' on a file it is copies the full path with the name of the file itself. Just perfect.
    I won't mark the thread [SOLVED] because if anybody knows a better method for this in Midnight Commander (with a script or whatnot) maybe will write it down for us. I hope...

  • [SOLVED] midnight commander - show size in MB or GB

    mc displays size in KB .. can it show file size in MB or GB ?
    Last edited by xhc (2012-05-25 22:01:20)

    The available size display option offers two modes:
    man mc
    Use  SI  size units.  If this option is enabled, Midnight Commander
           will use SI units (powers of 1000) when displaying any byte  sizes.
           The  suffixes  (k,  m  ...)  are  shown  in lowercase.  If disabled
           (default), Midnight Commander will  use  binary  units  (powers  of
           1024) and the suffixes are shown in upper case (K, M ...)
    You can access the variable and change it in
    Options -> Panel options ... -> Use SI size units
    By default, MC will display K|k / M|m suffixes the following way:
    279426K file1.mp4
    for a 279 MB file, and
    1179M file2.mp4
    for a 1,18 GB file, in both cases calculating the size either using powers of 1000 (SI units), or 1024. The only approximate value in KB / MB / GB as well as the percent of free space left can be displayed in mini-status, if it is enabled.
    Last edited by bohoomil (2012-05-25 17:02:54)

  • Midnight Commander confirmation dialogs default to "yes"

    I finally found a file manager that I like. Yay.
    However, Midnight Commander's confirmation dialogs (e.g. when deleting a file) always pop up with "yes" preselected, which means that your data is toast (or whatever) if you accidentally hit Enter. Guarding against accidental keystrokes is IMO a Big Deal, and I consider this a rather serious issue.
    I've yet to come up with anything on this on Google... So, does anyone here know how to make those dialogs default to "no"?

    you are welcome,
    Nope, there is no config option for such thing. However you can change the source, in src/filemanager/panel.c then add query_set_sel (1); just before:
    if (query_dialog
    (_("The Midnight Commander"),
    _("Do you really want to execute?"), D_NORMAL, 2, _("&Yes"), _("&No")) != 0)

  • [Solved] Midnight Commander, no lynx-like motion available

    I just installed Arch on a laptop yesterday and it went quite well considering this is my first brush with this distribution.
    I found the Midnight Commander package included in Arch to be lacking a feature I really use, and that is the setting for "lynx-like" motion which allows using the left and right arrow keys to navigate into and out of directories.  Considering that the version of the mc package is rather recent, this is a bit surprising as this feature has been available for many years.  Is this just a quirk of how the Arch maintainer built the package or is it something else?  I find mc much less user friendly without this feature.
    Thanks!
    Last edited by Nate_KS (2011-01-04 21:20:57)

    Indeed it is in the panel options menu.  I thought I looked there.
    Thanks much!

  • Midnight commander color settings

    Hi, I have changed a bit of color settings in mc, but I couldn't change filehighlighting colors, such as directories or executables. Various internet sources say, that just add "directory=foreground,background:executable=foreground,background" to ini file, but it doesn't work and there is no keywords such as directory or executable in the color section in man page too.
    any ideas?
    Last edited by kreoso (2012-04-13 21:23:25)

    try mc --help-color and take a look at wiki http://www.midnight-commander.org/wiki/doc/common/skins
    and you can take a look at my scheme http://blog.gonzih.org/blog/2013/02/14/ … or-scheme/

  • ADF command link problem

    Hi All,
    I am using Jdeveloper 11g. I have a master-detail relationship tables Order and OrderItem. I have an Order edit page which has editable Order information and a ADF read-only table which contains a list of items associated with the current order. I have a ADF command link on the column LineItemId in the table. When I click the link, it will take me to the item edit page. The problem is, whenever I select any item in the table, I always got the first item loaded in the item edit page. Does anyone has any ideas what I did wrong?
    Here is the portion of the code related to the command link,
    <af:column sortProperty="LineItemId" sortable="false"
    headerText="#{bindings.OrderItemsView2.hints.LineItemId.label}"
    id="c4">
    <af:commandLink actionListener="#{bindings.setCurrentRowWithKeyValue.execute}"
    text="#{row.LineItemId}"
    disabled="#{!bindings.setCurrentRowWithKeyValue.enabled}"
    id="cl1" partialTriggers="::t1"
    action="goOrderItemDetail"/>
    </af:column>
    Thanks in advance,
    John
    Edited by: john wang on Aug 20, 2009 7:31 AM

    Hi Gurus,
    On a seeded page say Page1 one link is availabe which is specific to one Learning Path.
    When i click on that Learning Path's link it is redirecting me to a page say Page2 where it gives the list of different Learning Paths (including Learning Path of Page1) with a link for each Learning Path.
    If i click on that Learning Path's link it takes me to a page say Page3 where it gives the details of that perticular Learning Path.
    The requirement is , If I click on an Learning Path's link on Page1 ,it should redirect me directly to Page3 ( Skipping Page2 ).
    How can it be achieved?
    Please help!!!
    Thanks,
    Srinivas
    Edited by: ChandaS on Aug 20, 2009 8:02 AM
    Edited by: ChandaS on Aug 20, 2009 8:14 AM

  • Command Link problem

    Hi all,
    Our team is developing project on JSF. I have weird problem on IE explorer.
    When I click on any command link many times, but nothing is happened. If I refresh the page and then click then it will work properly. So every time I have to press refresh and then click. Weird thing is that it works fine on my other team member's IE.
    I downloaded moziella browser and link works fine on moziella on my computer. So only problem with my computer and in IE.
    I tried to delete all cache but the same proble.
    Please help me.
    Thanks in Advance.

    Update your Ie, or maybe you have some option that the others don't have.

  • Process Chain/OS Command cp problem

    Hello,
    I am trying to execute a command similar to the following in an OS command in a process chain:
    cp /path/filename*.txt /path/filenamexxx.txt
    I know it's not a permissions problem.
    This is the error message from the Process Chain Maintenance Log View:
    cp: cannot access /path/filename*.txt: No such file or directory
    External program terminated with exit code 1
    Any help will be greatly appreciated.
    Thanks,
    Gary Martins

    Hi Gary,
       Is this file(cp /path/filename*.txt /path/filenamexxx.txt) avaialble at perticular path...??
       File is in application server or workstation(PC). If file is available in one application server and your Pchain running againest another application server, you may get this error. Plz check.
    Hope it Helps
    Srini

  • Custom command set problems

    Hi,
    I am having some problems with my custom Avid based command set.
    I have had the "A" and "S" keys assigned to "Go to prev/next edit" to simulate Avid but want to change it to "Up" and "Down" which does pretty much the same in the timeline but allows me to go to next/previous clip in the list view as well.
    The problem is that every time I try to assign the "Down" command to the "S" key the .commandset file gets corrupt and the next time I start fcpx it freezes at "Restoring the window layout".
    I can assign it if I make a completely new command set.
    Can anyone see if they can recreate this? My commandset file can be downloaded here: http://dl.dropbox.com/u/6196177/Avid.commandset
    I have a norwegian keyboard if that matters...
    Thanks!

    OK, then it has do be something specific with my command set. I've recreated my problem several times: Start fcpx, works fine, quit, take backup of preferences file. Start fcpx again, works fine, switch to custom command set, works fine, quit, restart of app fails... revert to backed up preferences file, works fine...
    What could it be in my command set then? I've tried recreating the setup I use in Avid. The thing is that it works just fine until I quit and restart the app... Really annoying!
    Thanks for your answer though!

Maybe you are looking for