Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Midnight Commander slow startup

Just as the name says, here is where you can post tips and tricks to share with other users of MEPIS.
Post Reply
Message
Author
User avatar
thomasl
Forum Regular
Forum Regular
Posts: 107
Joined: Sun Feb 04, 2018 10:26 am

Midnight Commander slow startup

#1 Post by thomasl » Fri Aug 10, 2018 7:39 am

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
Dual-boot MX17.1/64 frugal root persistence + Windows 7 on Lenovo Edge72 i5-3470S/12GB and Tosh R950 i5-3340M/8GB
“In foreign countries they fear baldness. They are so rich in foreign countries, they can afford to fear all kinds of silly things.”

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

Re: Midnight Commander slow startup

#2 Post by Richard » Fri Aug 10, 2018 1:18 pm

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
MX18b1: Lenovo T430: Intel Ivy Bridge i5-3320M, 8GB RAM, 4.9.0-8-amd64, 119 GB SSD
MX18b1: Eee&AA1 NBs: Dual Core Atom N270, 1GB RAM, 4.19.0-1-686, 150 GB HDD
DoubleCmd/Thunar, LibO613, Dropbox, Vivaldi/Firefox, CherryTree, Vbox. LinuxCounter #208633

User avatar
thomasl
Forum Regular
Forum Regular
Posts: 107
Joined: Sun Feb 04, 2018 10:26 am

Re: Midnight Commander slow startup

#3 Post by thomasl » Sat Aug 11, 2018 6:00 am

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.
Dual-boot MX17.1/64 frugal root persistence + Windows 7 on Lenovo Edge72 i5-3470S/12GB and Tosh R950 i5-3340M/8GB
“In foreign countries they fear baldness. They are so rich in foreign countries, they can afford to fear all kinds of silly things.”

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 2435
Joined: Wed Apr 11, 2018 5:09 pm

Re: Midnight Commander slow startup

#4 Post by fehlix » Sat Aug 11, 2018 7:07 am

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
Forum Regular
Forum Regular
Posts: 107
Joined: Sun Feb 04, 2018 10:26 am

Re: Midnight Commander slow startup

#5 Post by thomasl » Sat Aug 11, 2018 8:24 am

@fehlix: No, it doesn't. This was actually the first thing I tried, even before going to Auntie Google.
Dual-boot MX17.1/64 frugal root persistence + Windows 7 on Lenovo Edge72 i5-3470S/12GB and Tosh R950 i5-3340M/8GB
“In foreign countries they fear baldness. They are so rich in foreign countries, they can afford to fear all kinds of silly things.”

Post Reply

Return to “Tips&Tricks”