[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.

Similar Messages

  • [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!

  • [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)

  • [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!

  • 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...

  • 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

  • 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)

  • 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)

  • 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.

  • 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.

  • 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/

  • [SOLVED]Midnight commander, Color theme not able to load with root

    Hi all  ,
    I  have moved another step to this whole Arch Linux society, therefore am a newbie.
    I have installed MC(midgnight commander) I got the ini file configured for the color theming
    to deafault supposed everthing should be transparent except for the text offcourse .
    Everything work fine but ......  when I do super user to run MC "sudo mc" It's doesn't
    seems to take afect with the setting within the INI.  Another word the ini only configured for user not root.
    I have tried chmod +x ini and chown for root. Doesn't help.
    Please advise
    Your help would be greatly appreciated.
    Thank You
    Last edited by alpha.arch (2011-08-19 01:14:14)

    You're welcome :-)
    Config files are usually placed in the user's home directory, e.g. /home/karol for me and /root for root. The global configuration (affecting both regular users and root) is in /etc.
    Please remember to mark the thread as solved.

  • [SOLVED] openbox menu command doesn't work with &&

    I'm now using openbox-session only.
    I'd like to run a program after something was done correctly:
    zenity --question && killall openbox
    I used "obmenu" and it seems that it fixes & to & correctly in the menu.xml.
    However, the previous command "zenity" is run only.
    In terminal, there's no problem, but it doesn't work with "command" in openbox menu.
    <item label="Exit">
    <action name="Execute">
    <execute>
    zenity --question --title="Exit" --text="Are you sure to go back to console?" && killall openbox
    </execute>
    </action>
    </item>
    Please, give me any idea. Thank you.
    Last edited by mairoo (2009-09-09 10:06:17)

    hbekel wrote:
    You'll need to use a shell explicitly:
    <execute>
    sh -c 'command1 && command2'
    </execute>
    I flagged "solved" thanks to your help. It works good. Thank you.

  • [SOLVED] python-efl: command 'gcc' failed with exit status 1

    Hi everyone! I'm running an x86_64 system with Enlightenment. I'm trying to install econnman from source to have a simpler life trying to connect to my University's wifi network. However, it misses the python-efl dependency. I downloaded it from the AUR, but I get the error message "error: command 'gcc' failed with exit status 1"  when running 'python setup.py build'. This is the complete terminology output:
    [dude@susan python-efl-1.8.0]$ sudo python setup.py build
    Checking for Eina: OK, found 1.11.2
    Checking for Eo: OK, found 1.11.2
    Checking for Evas: OK, found 1.11.2
    Checking for Ecore: OK, found 1.11.2
    Checking for EcoreFile: OK, found 1.11.2
    Checking for Edje: OK, found 1.11.2
    Checking for Emotion: OK, found 1.11.2
    Checking for DBus: OK, found 1.2.0
    Checking for Elementary: OK, found 1.11.2
    running build
    running build_py
    creating build/lib.linux-x86_64-3.4/e_dbus
    copying compat/e_dbus/__init__.py -> build/lib.linux-x86_64-3.4/e_dbus
    running build_ext
    building 'eo' extension
    gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -DEFL_BETA_API_SUPPORT -Iinclude/ -I/usr/include/python3.4m -c efl/eo/efl.eo.c -o build/temp.linux-x86_64-3.4/efl/eo/efl.eo.o -I/usr/include/efl-1 -I/usr/include/eo-1 -I/usr/include/efl-1 -I/usr/include/eina-1 -I/usr/include/eina-1/eina
    efl/eo/efl.eo.c: In function ‘__pyx_pf_3efl_2eo_4event_global_freeze_get’:
    efl/eo/efl.eo.c:1127:3: warning: implicit declaration of function ‘eo_event_global_freeze_get’ [-Wimplicit-function-declaration]
    eo_do(((const Eo *)eo_base_class_get()), eo_event_global_freeze_get((&__pyx_v_fcount)));
    ^
    efl/eo/efl.eo.c: In function ‘__pyx_f_3efl_2eo_object_from_instance’:
    efl/eo/efl.eo.c:1445:3: warning: implicit declaration of function ‘eo_base_data_get’ [-Wimplicit-function-declaration]
    eo_do(__pyx_v_obj, eo_base_data_get(__pyx_k_5, (&__pyx_v_data)));
    ^
    efl/eo/efl.eo.c: In function ‘__pyx_f_3efl_2eo__eo_event_del_cb’:
    efl/eo/efl.eo.c:2050:3: warning: implicit declaration of function ‘eo_base_data_del’ [-Wimplicit-function-declaration]
    eo_do(__pyx_v_self->obj, eo_base_data_del(__pyx_k_5));
    ^
    In file included from efl/eo/efl.eo.c:317:0:
    efl/eo/efl.eo.c: In function ‘__pyx_pf_3efl_2eo_2Eo_4__repr__’:
    efl/eo/efl.eo.c:2286:30: error: too many arguments to function ‘eo_parent_get’
    eo_do(__pyx_v_self->obj, eo_parent_get((&__pyx_v_parent)));
    ^
    /usr/include/eo-1/Eo.h:588:8: note: in definition of macro ‘_eo_do_common’
    __VA_ARGS__; \
    ^
    efl/eo/efl.eo.c:2286:5: note: in expansion of macro ‘eo_do’
    eo_do(__pyx_v_self->obj, eo_parent_get((&__pyx_v_parent)));
    ^
    In file included from /usr/include/eo-1/Eo.h:1112:0,
    from efl/eo/efl.eo.c:317:
    /usr/include/eo-1/eo_base.eo.h:37:12: note: declared here
    EOAPI Eo * eo_parent_get(void);
    ^
    efl/eo/efl.eo.c: In function ‘__pyx_f_3efl_2eo_2Eo__set_obj’:
    efl/eo/efl.eo.c:2496:3: warning: implicit declaration of function ‘eo_base_data_set’ [-Wimplicit-function-declaration]
    eo_do(__pyx_v_self->obj, eo_base_data_set(__pyx_k_5, ((void *)__pyx_v_self), NULL));
    ^
    In file included from efl/eo/efl.eo.c:317:0:
    efl/eo/efl.eo.c: In function ‘__pyx_pf_3efl_2eo_2Eo_14parent_get’:
    efl/eo/efl.eo.c:2963:28: error: too many arguments to function ‘eo_parent_get’
    eo_do(__pyx_v_self->obj, eo_parent_get((&__pyx_v_parent)));
    ^
    /usr/include/eo-1/Eo.h:588:8: note: in definition of macro ‘_eo_do_common’
    __VA_ARGS__; \
    ^
    efl/eo/efl.eo.c:2963:3: note: in expansion of macro ‘eo_do’
    eo_do(__pyx_v_self->obj, eo_parent_get((&__pyx_v_parent)));
    ^
    In file included from /usr/include/eo-1/Eo.h:1112:0,
    from efl/eo/efl.eo.c:317:
    /usr/include/eo-1/eo_base.eo.h:37:12: note: declared here
    EOAPI Eo * eo_parent_get(void);
    ^
    efl/eo/efl.eo.c: In function ‘__pyx_pf_3efl_2eo_2Eo_20event_freeze_get’:
    efl/eo/efl.eo.c:3104:3: warning: implicit declaration of function ‘eo_event_freeze_get’ [-Wimplicit-function-declaration]
    eo_do(__pyx_v_self->obj, eo_event_freeze_get((&__pyx_v_fcount)));
    ^
    error: command 'gcc' failed with exit status 1
    Can anyone help me? Please tell me every output you need. Thanks and a good day to you, sir!
    Last edited by HisDudeness (2014-10-02 08:47:15)

    You know what? You're right!
    I don't know how I exactly got that version... I got back to the AUR and downloaded the new one. The strange thing is, while that old version's tar.gz conained a lot of files like I'd expect from a source archive, the current version only contained the files .AURINFO and PKGBUILD. Guess that's the way it should be, I'm new to all of this so I was initially surprised. Obviously, running makepkg here worked like a charm and downloaded everything that was needed for it to install. Then, econnman installed just fine too. What I can't explain to myself is why 1.8.0's tar.gz contained all those files.
    In the end, I couldn't use nor connman cli nor econnman to connect to my Campus' WiFi but, after a lot of trouble, I got it to work with dhclient and wpa_supplicant like it's suggested. This hasn't been useless anyway, I saw how to install from the AUR for the first time.
    I'll mark the post as solved, but I got one last question: provided I don't need econnman anymore, do you suggest me to keep python-efl or to remove it? Is it needed for something else I'll certainly run into in the future?

  • [SOLVED] Why some commands run properly in startup script others don't

    I am trying to finish setting up my MythTV box. I have the following commands to run at startup:
    #!/bin/sh
    # Stop spamming dmesg
    echo -n 0000:00:06.1 > /sys/bus/pci/drivers/ehci_hcd/unbind
    # Enable wake from remote
    echo enabled > /sys/bus/usb/devices/4-5/power/wakeup
    # Link optical drive to /dev/dvd (needed for myth)
    if [ ! -e /dev/dvd ]; then ln -s /dev/cdrom /dev/dvd; fi
    # Start LIRC
    echo lirc > /sys/class/rc/rc0/protocols
    ln -sf /run/lirc/lircd /dev/lircd
    lircd -d /dev/lirc0 /etc/lirc/hipermc
    # Start mythbackend
    mythbackend &
    # Start LCD server
    LCDd &
    I have tried making this part of rc.local and also as a startup item in XFCE (with script called using passwordless sudo since it requires root permissions). In each case, only some of the commands run properly (the dmesg, wake from remote, and start LIRC sections). The other commands don't seem to work. However if I run the script manually after the computer has finished booting, everything works perfectly. Can anyone help me figure out what's going wrong?
    It seems like path is already set since some commands do work without the full pathname. Also please don't suggest using systemd for starting the daemons - it does not work for me with LIRC or lcdproc and there is a driver bug with my hardware that keeps me from using the mythbackend systemd service.
    Thanks in advance for the help.
    Last edited by mosquitogang201 (2012-12-16 14:42:11)

    The exec command was what I needed. Was able to follow the error messages to find out the command im using under "stop spamming dmesg" was messing everything else up. Also I am running systemd - just not using it to start these items since the systemd service files weren't working reliably.
    Anyways this brings me to another question - is there a more elegant way to stop dmesg from getting spammed? About 5 times per second I get the error
    hub 2-4:1.0: unable to enumerate USB device on port 3
    which makes it very difficult to look through dmesg logs to find an actual problem.
    EDIT: Just needed to add the sleep command after the dmesg section to give the kernel enough time to reload using ohci_hcd. Now script is working perfectly. Marking as SOLVED.
    Last edited by mosquitogang201 (2012-12-16 14:48:47)

Maybe you are looking for

  • Wi-Fi or Bluetooth settings grayed out or dim

    hello. I need help. wi-fi toggle in my iPhone 4S on iOS 6.0.1 is inactive. it happened suddenly. could you tell me, what should I do? how can it be fixed? thanks!

  • What router would work best for my app?

    Hi, I have been looking at two Cisco routers for my home/work network. They are the 1811 and the 871 series. My network consists of 1 2K3 SBS (It dose my DHCP, Domain Controller, Wins, and active directory.), 2 Cad stations, 1 Email/web PC, 1 Noteboo

  • Adaptive RFC: Handling Exceptions on Remote Enabled Functions

    Hi we have a custom function we are calling from java webdynpro... FUNCTION z_perform_action. *"*"Local Interface: *"  IMPORTING *"     VALUE(REFNR) TYPE  Z08 *"     VALUE(ACTION) TYPE  Z53 *"     VALUE(ADHOCAPPROVER) TYPE  Z32 OPTIONAL *"     VALUE(

  • Authorizations, hierarchy, ZAUTH table

    Hi, I am having a problem with authorizations, and I was wondering if anyone could recommend the way to go on this. 1. We created a hier based on 0sales_off and 0sales_grp. 0sales_grp is the postable node. 2. We have a table that has the user ids and

  • Midi files in FCE HD ?

    Is there a way to import a midi audio file into FCE HD. When I try I get an error message saying it is an invalid file? thanks joanlvh