SliTaz SliTaz Forum

You are not logged in.

#1 2012-02-02 03:50:49

black dog
Member
Registered: 2011-04-09
Posts: 331

File associations in mc

How to set up file associations in the mc?

Please tell us the example images. To all the images (by clicking) to open in viewnior.

I looked through dozens of pages on the Internet, but did not understand. sad

Offline

#2 2012-02-02 09:15:47

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: File associations in mc

here is a tutorial for video - http://ubuntuincident.wordpress.com/2010/12/08/configure-mc-open-files/

for images go to the image section (mine is line 350) and try

include/image

    Open=(viewnior %f >/dev/null 2>&1 &)

if that does not work ask in the mailing list  http://mail.gnome.org/mailman/listinfo/mc

Offline

#3 2012-02-02 10:05:11

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: File associations in mc

Commented out what happened. Wrote a new rule. Did not work. It is not clear.

$ ./224043-1440x900.jpg

./224043-1440x900.jpg: line 1: ���JFIFHH��

                                          GoodFon.ru��C: not found

./224043-1440x900.jpg: line 6:

                              : not found

./224043-1440x900.jpg: line 7:

                               : not found

./224043-1440x900.jpg: line 10: ��C: not found

./224043-1440x900.jpg: line 11: : not found

./224043-1440x900.jpg: line 63: syntax error: unexpected ")"

Offline

#4 2012-02-02 16:57:27

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: File associations in mc

@black dog

X session running

mc/Command/Edit extension file

stable:

include/image

Open=(gpicview %f >/dev/null 2>&1 &)

cooking:

include/image

Open=(viewnior %f >/dev/null 2>&1 &)

Highlight a jpg file within mc

Hit enter/return

or

Dbl click jpg filename within mc with mouse.

Image viewer program opens displaying highlighted/clicked on jpg file

Offline

#5 2012-02-03 01:54:19

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: File associations in mc

I installed slitaz-cooking (in VirtualBox). Mc I run in the X-session. I click the mouse on a jpg file and there are strange messages.

Now I'm finished writing the file bindings (end):

[c]# Default target for anything not descriebed above
default/*
       Open=pcmanfm %f
       Viev=[/c]
Now open the image. But music is not playing. Perhaps all you need to reconfigure. But in pcmanfm still works!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 8 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]