Now, you can just source it and use it as described in the link above. So, to use that script, add a line after the second line, so it looks like this: MC_USER=`id | sed 's/*(// s/).*//'` This is something, that isn’t taken into account when it comes to mc-wrapper.sh. So in my case, mc’s temporary folder ends in „o“. The emphasis here is very long folder name.īecause when you got a long username (like oeger for example), 64 bits tend to get really short: $ echo "$oeger" | wc -c Basically, it’s just a very long folder name with crypting (random) characters in it. James Reynolds did a very nice investigation about that directory tree. Mac OS (since 10.5 that is) holds the temporary files in its /var/folders-directory tree. And mc designs it temporary directory by using that temporary directory, the prefix „mc-“ and then the currently logged in user. Where is a temporary directory located on a Linux operating system? Yes, /tmp. That’s the character buffer the temporary directory will be squeezed into. You might have noticed the variable „buffer“ with a size of 64. In line 916, the function „mc_tmpdir“ is defined: mc_tmpdir (void) Specifically, the file lib/vfs/interface.c. So the problem is not in the repositories. (I’ve installed mc using the wonderful Homebrew) I just installed mc on 2 Pis, 1x Raspbian Wheezy and 1x Raspbian Jessie with the usual apt-get commands (see fruitofthelooms reply above) and it works on both Pis, no problems (just this one: X captures the function keys before mc does). If you like the nice curses based „Finder“ from the unix world called „ Midnight commander“ and would like to use the supplied mc-wrapper.sh-Script, that changes the current working directory to mc’s last selected one, you’re a bit lost on the Mac platform, because it doesn’t work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |