Midnight Commander slow startup

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Post Reply
Message
Author
User avatar
thomasl
Posts: 414
Joined: Sun Feb 04, 2018 10:26 am

Midnight Commander slow startup

#1 Post by thomasl »

Starting mc in an open terminal window is virtually instantaneously for me while starting it via its Whisker menu entry takes a good while (almost ten seconds). Turns out that adding the -u switch remedies this problem (simply edit mc's Whisker menu entry). A further issue for some people seems to be a missing "127.0.0.1 localhost" line in /etc/hosts but as I had that already this could not have the problem.

Additionally, if you want (like me) run mc in its terminal window maximised you can put the following into a file, say mcMax, make it executable and change the Whisker menu entry to mcMax (needs xdotool though and "Run in Terminal" has to remain checked in the launcher dialog):

Code: Select all

#!/bin/bash
xdotool key --clearmodifiers F11 && /usr/bin/mc -u
Frugal installs on Lenovo ThinkPad L14 Ryzen 5 4650U/24GB * HP Pavilion Ryzen 3 3300U/16GB * Toshiba R950 i5-3340M/12GB
I have a reservation... What do you mean it's not in the COMPUTER!

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: Midnight Commander slow startup

#2 Post by Richard »

Curious. mc starts instantaneously for me from the menu.
But the system has been running for a while. Perhaps with a fresh start?
MX-17.1_x64
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

User avatar
thomasl
Posts: 414
Joined: Sun Feb 04, 2018 10:26 am

Re: Midnight Commander slow startup

#3 Post by thomasl »

Nothing to do with the time the PC has been up. First start takes long (even after the system's up for hours) and second start is no better. That's why I searched for a remedy.

Anyway, the whole issue of mc starting slow on some machines is a grey area and the suggested solutions seem to approach black art at times. It took me a while to identify the issue in my case.
Frugal installs on Lenovo ThinkPad L14 Ryzen 5 4650U/24GB * HP Pavilion Ryzen 3 3300U/16GB * Toshiba R950 i5-3340M/12GB
I have a reservation... What do you mean it's not in the COMPUTER!

User avatar
fehlix
Developer
Posts: 10303
Joined: Wed Apr 11, 2018 5:09 pm

Re: Midnight Commander slow startup

#4 Post by fehlix »

thomasl wrote: Sat Aug 11, 2018 6:00 am .. First start takes long (even after the system's up for hours) and second start is no better.
..
If you change the destop-starter for Midnigh Commander within Whisker-Menu
by replacing the command "mc" with "xfce4-terminal --command=mc"
and disabling run in terminal, would this make the startup of Midnigh Commander faster?
The desktop-starter would look like this:

Code: Select all

[Desktop Entry]
Name=Midnight Commander
Name[af]=Middernag Kommandeur
Name[eo]=Meznokta komandanto
Name[fa]=فرمان‌دار نیمه شب
Name[ko]=미드나잇 커멘더
Name[lv]=Pusnakts Komandieris
Name[nso]=Molaedi wa Bosegogare
Name[th]=มิดไนท์คอมมานเดอร์
Name[ve]=Muhulwane wa vhukati ha vhusiku
Name[xh]=Umyaleli Waphakathi kobusuku
Name[zu]=Umyaleli waphakathi nobusuku
Comment=File manager
Comment[pl]=Menedżer plików
#Exec=mc
Exec=xfce4-terminal --command=mc
Icon=MidnightCommander
#Terminal=true
Terminal=false
Type=Application
Categories=ConsoleOnly;Utility;FileManager;System;FileTools;
Keywords=file manager;console;
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
thomasl
Posts: 414
Joined: Sun Feb 04, 2018 10:26 am

Re: Midnight Commander slow startup

#5 Post by thomasl »

@fehlix: No, it doesn't. This was actually the first thing I tried, even before going to Auntie Google.
Frugal installs on Lenovo ThinkPad L14 Ryzen 5 4650U/24GB * HP Pavilion Ryzen 3 3300U/16GB * Toshiba R950 i5-3340M/12GB
I have a reservation... What do you mean it's not in the COMPUTER!

Post Reply

Return to “Tips & Tricks by users”