Midnight Commander

Rating: 
5
Your rating: None Average: 5 (2 votes)

User-friendly text console file manager and visual shell

Midnight Commander is a visual shell much like a file manager, only with many more features. It is a text mode application. Midnight Commander's best features are its ability to FTP, view tar and zip files, and to poke into RPMs for specific files.

Application versions: 
AttachmentSizeDate
File mc-4.8.26-4.armv7hl.rpm1.73 MB13/04/2021 - 13:08
File mc-4.8.26-4.i486.rpm1.8 MB19/04/2021 - 12:55
File mc-debuginfo-4.8.26-4.armv7hl.rpm1.51 MB21/04/2021 - 21:03
File mc-debuginfo-4.8.26-4.i486.rpm1.48 MB21/04/2021 - 21:03
Changelog: 

- Taken from Fedora and built on Sailfish 4.0.1.48 - Disable gpm, no mouse here - Disable X11, no X11 here - Remove BR for groff-base and perl-generators, man2hlp is on Platform SDK

Comments

levone1's picture

In Literm, I can scroll up and down through directories by sliding finger up and down the screen, so that's helpful. No response to touch in other terminals...

Polleke's picture

Hi Levone,
I do understand your issue, but I have no solution, sorry :)
I am not a C programmer myself and I wouldn't know if this is caused by something in MC or in the specific terminal.

I only wanted an updated package and wanted to share that as well. If other people are able to find out what the problem is and can provide a solution I would be happy to look at that.

levone1's picture

Thanks. I would be more than happy with just using Meego Terminal, but the problem with that is that it doesn't rotate, even with system display settings set to landscape. There's no qml files to edit like a typical SF app; i guess it's all in the bin file... Anyone have any ideas how to force an app into landscape without a qml file tp edit?
I found this line in source code - karin::ut * const kut = karin::ut::Instance();
if(kut -> getSetting(FULL_SCREEN))
window -> showFullScreen();
else
window -> showNormal();
switch(kut -> getSetting(ORIENTATION))
{
case 1:
window -> setPortraitOrientation();
window -> lockOrientation();
break;
case 2:
window -> setLandscapeOrientation();
window -> lockOrientation();
break;

yomark's picture

Crashes for me on x10 with Sailfish 4.
77): GLib-CRITICAL **: 01:11:16.732: g_string_free: assertion 'string != NULL' failed
Segmentation fault (core dumped)
[defaultuser@Xperia10-DualSIM ~]$

Polleke's picture

Hi, it works for me in XA2 with 4.0.1.48. Not sure what happens.
Is it possible for you to run gdb? In that case I could provide the mc-debug package so you can get a proper backtrace.
Does it give more errors that this?

I am sorry, but I am not a C programmer myself and I will probably not be able to fix it myself. But I can do my best to find a fix or report it upstream.

ferlanero's picture

It would be possible an x86 version for the SailfishOS tablet? Thank you for this great update!

Polleke's picture

Hi, there is an i586 version, does that work?
I remember that the tablet used i486 rpms, though I might be wrong.
The Platform SDK built i586 rpms by default.

ferlanero's picture

Sadly it seems not to work.. I'm afraid that tablet needs i486 version. Would it be there any possibility of building it? MC is really useful via ssh. Thanks!

Polleke's picture

Hi, not sure what "seems not to work" means :)
There is now an i486 build instead of the i586 build. Can you install it and does it work?

ferlanero's picture

Confirmed! New i486 version now works on tablet. Thanks!!

levone1's picture

Thanks - I have wanted to get around to building mc myself for a while. .. So far not working for me on Xperia XZ2c, Sailfish 4.0. Running mc command just causes screen to hang and nothing happen...

Polleke's picture

Hi, did you do a clean install or an update?

I updated from the one provided by NielDK and the location of the script had changed. This was still set in the environment and rebooting solved that.

With ssh and a terminal emulator it works fine for me on an XA2 with 4.0.1.48. In the terminal on the phone it works too, though it is quite tiny :)

Does it work with ssh?

levone1's picture

Another question - It's working great with Meeho Terminal, because for one, touch works, and for two, the app screen adjusts to the screen space, depending on the keyboard being present or not, (Meego Terminal uses Jolla keyboard). Any other terminal I open ot on, (Fingerterm, etc), works fine with keyboard buttons, but no response to touch, and if the keyboard is present, it pishes the directory scene up off the screen, instead of adjusting ... Any ideas if possible to make it work with other terminals? It's ok with Toeterm, if keyboard set to "fade"...

Screenshots - https://mega.nz/file/Zo0QXIgJ#RESbmtZqJmgKkebAKthWZTnRs_xO8ox0cxAm6OQ47LQ

 

https://mega.nz/file/w9sUjaCJ#y8YErnbIS-bEPuk7krn14kldl-g46jp_Je6e55dzAQg

Polleke's picture

Hi Levone,
I do understand your issue, but I have no solution, sorry :)
I am not a C programmer myself and I wouldn't know if this is caused by something in MC or in the specific terminal.

I only wanted an updated package and wanted to share that as well. If other people are able to find out what the problem is and can provide a solution I would be happy to look at that.

levone1's picture