[gobolinux-users] Suggestion to the change of mc.ext
Viola Zoltán
violazoli at gmail.com
Fri May 4 11:26:03 UTC 2007
Hello, dev-team, I make a change in the file:
*/Programs/MC/4.6.1/Shared/mc/mc.ext*
In this file at the "DEB" extension it is the original text:
*# deb
* *regex/\.u?deb$
* * Open=%cd %p#deb
* * View=%view{ascii} dpkg-deb -c %f
*
I changed this to the following:
*# deb
* *regex/\.(deb|uhu)$
* * Open=%cd %p#deb
* * View=%view{ascii} dpkg-deb -I %f control ; echo ; dpkg-deb -c %f*
(after this change you should restart the MC).
With these case the MC can open the .uhu files. This "uhu"-files is binary
packages to the hungarian "UhuLinux"-distro. An "uhu"-file is in effect a
".deb" file, but have another extension.
Of course, the GoboLinux system need DPKG have.
I probe this change, and works good!
And, an another mc-trick:
My idea: write as default into the /Programs/Scripts/Settings/zshrc and
/Programs/Scripts/Settings/bashrc the following line:
*alias mc='. /Programs/MC/Current/Shared/mc/bin/mc-wrapper.sh' *
In this case, after "F10" the cursor to stick around, in place in the last
directory visited in MC! This is default behavior of UhuLinux, and good
usable.
Another tip:
The GoboLinux distro have Audacious. In these case is logic, if the user
click in MC to any audio-files, this file should be opened with Audacious.
Original in mc.ext are the following lines:
regex/\.([mM][pP]3)$
Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi
View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n
'/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
regex/\.([oO][gG][gG])$
Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi
View=%view{ascii} ogginfo %s
(NOTE: GoboLinux not have xmms - have audacious...)
I change its to the following:
regex/\.([mM][pP]3)$
Open=if [ "$DISPLAY" = "" ]; then audacious %f; else (audacious %f &); fi
View=%view{ascii} audacious -vtn1 %f 2>&1 | sed -n
'/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
regex/\.([oO][gG][gG])$
Open=if [ "$DISPLAY" = "" ]; then audacious %f; else (audacious %f &); fi
View=%view{ascii} ogginfo %s
It work good.
Thanks!
Zoli
--
Honlapom: http://poliverzum.birodalom.net/powi
Fórumom: http://birodalom.net/forum
A #86-os sorszámú hivatalosan bejegyzett GoboLinux felhasználó
The #86 official GoboLinux-user
A GoboLinux felhasználók hivatalos magyar fóruma:
The official forum for the hungarian GoboLinux-users:
http://linux.birodalom.net/smf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gobolinux.org/pipermail/gobolinux-users/attachments/20070504/21f5febc/attachment.htm
More information about the gobolinux-users
mailing list