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.
Source:
https://codeberg.org/cyclotouriste/mc-for-sailfish
FAQ # The subshell gives a segfault Sailfish uses busybox ash by default. To avoid problems with Midnight Commander, using bash might be better. You can switch to bash with this command as root: # pkcon remove busybox-symlinks-bash
* Fri Nov 15 2024 Marcel Pol <marcel@timelord.nl> - 1:4.8.32-1
- Update to 4.8.32
- Drop p5, not needed anymore.
Comments
skyjumper
Tue, 2023/02/21 - 07:06
Permalink
Hi there,
Perhaps I am missing something, but where can I get these from?
I am missing dependancies -
libslang.so.2()(64bit) is needed by mc-1:4.8.28-1.aarch64
libslang.so.2(SLANG2)(64bit) is needed by mc-1:4.8.28-1.aarch64
perl(File::Basename) is needed by mc-1:4.8.28-1.aarch64
perl(File::Temp) is needed by mc-1:4.8.28-1.aarch64
perl(POSIX) is needed by mc-1:4.8.28-1.aarch64
perl(bytes) is needed by mc-1:4.8.28-1.aarch64
perl(strict) is needed by mc-1:4.8.28-1.aarch64
python3-boto is needed by mc-python-1:4.8.28-1.noarch
Thanks
Polleke
Tue, 2023/02/21 - 12:29
Permalink
Hi, if you use the OpenRepos app, you add the repo and it should work automatically.
If you prefer doing dependencies manually, you can get it here:
https://openrepos.net/content/polleke/slang
skyjumper
Wed, 2023/02/22 - 05:00
Permalink
All sorted - thanks !
tw_bolek
Thu, 2022/08/04 - 15:50
Permalink
Fills .ash_history with tons of junk on literally every operation done in mc. Must be started with mc -u to prevent this, otherwise normally using bash history becomes impossible. Older versions (e.g. 4.8.13) did not have this phenomenon.
ferlanero
Sun, 2022/07/10 - 01:40
Permalink
Sadly it seems last version is not available for i486. Would it be there any possibility of building MC for using in tablet, please? MC is really useful via ssh. Thanks!
Polleke
Sun, 2022/07/10 - 11:03
Permalink
Hi, there is a mc-4.8.28-1.i486.rpm. Do you not get an update notice, or is there an error? What happens?
yomark
Wed, 2021/08/18 - 20:29
Permalink
Can confirm that this latest version fixes the busybox issue. Tnx!!
Polleke
Fri, 2021/08/20 - 19:34
Permalink
Nice, good to hear.
Have a good weekend :)
explit
Wed, 2021/05/12 - 03:43
Permalink
hello guys. can someone post the solution for this Problem:
77): GLib-CRITICAL **: 01:11:16.732: g_string_free: assertion 'string != NULL' failed
Segmentation fault (core dumped)
I managed to solve it somehow, about a month ago, but forgot it now.
THX
kan
Thu, 2021/06/03 - 15:08
Permalink
Try with option: -u, --nosubshell Disables subshell support
mc -u
That issue is a busybox related. If you know what you are doing:
pkcon remove busybox-symlinks-bash
is a solution for this issue as well.
levone1
Fri, 2021/04/16 - 13:21
Permalink
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
Mon, 2021/04/19 - 13:14
Permalink
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
Mon, 2021/04/19 - 17:50
Permalink
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
Wed, 2021/04/14 - 02:13
Permalink
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
Mon, 2021/04/19 - 13:08
Permalink
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
Tue, 2021/04/13 - 23:55
Permalink
It would be possible an x86 version for the SailfishOS tablet? Thank you for this great update!
Polleke
Wed, 2021/04/14 - 00:04
Permalink
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
Wed, 2021/04/14 - 18:49
Permalink
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
Mon, 2021/04/19 - 12:57
Permalink
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
Sat, 2021/04/24 - 02:16
Permalink
Confirmed! New i486 version now works on tablet. Thanks!!
levone1
Tue, 2021/04/13 - 19:54
Permalink
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
Tue, 2021/04/13 - 20:47
Permalink
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
Wed, 2021/04/14 - 04:43
Permalink
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
Mon, 2021/04/19 - 13:13
Permalink
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
Tue, 2021/04/13 - 21:10
Permalink
This got it working - https://www.google.com/url?sa=t&source=web&cd=&ved=2ahUKEwjjzIOJ5_vvAhVE...