Re: patch for viewing DjVu files
On Fri, 8 Sep 2006 22:38:46 +0400 (MSD) [EMAIL PROTECTED] wrote: now in my mc.ext : Open=if [ $DESKTOP_SESSION = kde ]; then (nohup kdvi %f /dev/null 21 ); else (if [ -e /usr/bin/evince ]; then (evince %f /dev/null 21 ); else (nohup djview %f /dev/null 21 ); fi); fi There was a thread a year ago. I am proposing not using nohup, because it creates nohup.out files. We could use setsid, but let's not do it for now, because there are other types (pdf for example) which suffer from the same problem - a viewer app is closed when mc is closed. So either let's fix it for all types or not fix it for now. evince 0.5.1 does not open djvu files here. From evince readme: Evince Optional Backend Libraries DjVuLibre for DjVu viewing [ http://djvulibre.djvuzone.org/ ] Fedora 7 evince (0.8.2 this year) does not open djvu files, even if I have djvulibre rpm installed. And there is no evince-plugins or similar package. So as a final version I propose this patch (I also modified dvi type accordingly): --- mc.ext.orig 2007-04-16 19:50:14.0 +0300 +++ mc.ext 2007-11-06 01:49:08.0 +0200 @@ -520,9 +520,13 @@ # DVI regex/\.([dD][vV][iI])$ - Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f ); fi + Open=if [ $DESKTOP_SESSION = kde ]; then (kdvi %f ); else if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f ); fi; fi View=%view{ascii} dvi2tty %f +# DjVu +regex/\.([dD][jJ][vV][uU])$ + Open=if [ $DESKTOP_SESSION = kde ]; then (kdvi %f ); else (djview %f ); fi + # TeX regex/\.([Tt][Ee][Xx])$ Open=%var{EDITOR:vi} %f Regards, Nerijus ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: patch for viewing DjVu files
On Fri, 8 Sep 2006 22:38:46 +0400 (MSD) [EMAIL PROTECTED] wrote: now in my mc.ext : Open=if [ $DESKTOP_SESSION = kde ]; then (nohup kdvi %f /dev/null 21 ); else (if [ -e /usr/bin/evince ]; then (evince %f /dev/null 21 ); else (nohup djview %f /dev/null 21 ); fi); fi evince 0.5.1 does not open djvu files here. ps I will wait Open/Xopen/KOpen/GOpen :) What is it? Regards, Nerijus ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: patch for viewing DjVu files
Hi, Nerijus Baliunas! evince 0.5.1 does not open djvu files here. From evince readmy: Evince Optional Backend Libraries == DjVuLibre for DjVu viewing [ http://djvulibre.djvuzone.org/ ] ps I will wait Open/Xopen/KOpen/GOpen :) What is it? See top of mc.ext: ### TODO ### # # PostscriptOpen: ps2svga [gs -DEVICE=jpeg|zgv or something] # Imagesasciiview # # All X Apps[Nothing/Warning] if no DISPLAY # Not found [Default/Warning] # Empty Output [Default/Warning] # Edit: CopyOut+EDIT+CopyIn # Security Check gzip/bzip EDIT (mktemp) # # Maybe:Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc. -- Sincerely Yours, Vadim Likhota ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Fw: Re: patch for viewing DjVu files
--- Forwarded message -- From: Nerijus Baliunas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: 08.09.06 00:41 Subject: Re: patch for viewing DjVu files On Fri, 8 Sep 2006 00:32:51 +0400 (MSD) [EMAIL PROTECTED] wrote: if mc is running under Konsole with kdvi been running from mc then kdvi will be closed if you exit from mc. Please reply to mailing list. Regards, Nerijus --- End of forwarded message -- ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: patch for viewing DjVu files
On Thu, 7 Sep 2006, Nerijus Baliunas wrote: On Thu, 7 Sep 2006 19:46:39 +0400 (MSD) [EMAIL PROTECTED] wrote: I use kdvi for djvu, it more handy then djview: Open=if [ $DESKTOP_SESSION = kde ]; then (nohup kdvi %f ); else (nohup djview %f ); fi No problem about using kdvi with me, but why nohup? No entry in mc.ext.in currently has it. Does everyone agree ? ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: patch for viewing DjVu files
On Fri, Sep 08, 2006 at 07:40:48PM +0300, Pavel Tsekov wrote: Open=if [ $DESKTOP_SESSION = kde ]; then (nohup kdvi %f ); else (nohup djview %f ); fi No problem about using kdvi with me, but why nohup? No entry in mc.ext.in currently has it. Does everyone agree ? nohup redirects output to nohup.out. Even thought it does it in append mode, it may ruin my file that I used for other purpose. We should check if another utility (e.g. setsid) which doesn't modify my files is suitable instead. -- Egmont ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: patch for viewing DjVu files
now in my mc.ext : Open=if [ $DESKTOP_SESSION = kde ]; then (nohup kdvi %f /dev/null 21 ); else (if [ -e /usr/bin/evince ]; then (evince %f /dev/null 21 ); else (nohup djview %f /dev/null 21 ); fi); fi ps I will wait Open/Xopen/KOpen/GOpen :) -- Sincerely Yours, Vadim Likhota ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: patch for viewing DjVu files
On Thu, 7 Sep 2006, Nerijus Baliunas wrote: Anyone? It's really a simple patch, and Changelog is not really needed, but if you want it: 2006-09-07 Nerijus Baliunas [EMAIL PROTECTED] * mc.ext.in: Add support for .djvu files. I am just not sure what is the current policy for adding entries to mc.ext.in. Otherwise its fine with me. ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: patch for viewing DjVu files
On Thu, 7 Sep 2006 15:47:15 +0300 (EEST) Pavel Tsekov [EMAIL PROTECTED] wrote: I am just not sure what is the current policy for adding entries to mc.ext.in. Otherwise its fine with me. There are quite a lot of djvu books now, and djview comes from http://djvulibre.djvuzone.org/ : DjVu is a web-centric format and software platform for distributing documents and images. DjVu can advantageously replace PDF, PS, TIFF, JPEG, and GIF for distributing scanned documents, digital documents, or high-resolution pictures. DjVu content downloads faster, displays and renders faster, looks nicer on a screen, and consume less client resources than competing formats. DjVu images display instantly and can be smoothly zoomed and panned with no lengthy re-rendering. DjVu is used by hundreds of academic, commercial, governmental, and non-commercial web sites around the world. DjVuLibre is an open source (GPL'ed) implementation of DjVu, including viewers, browser plugins, decoders, simple encoders, and utilities. I see no harm for adding it. Regards, Nerijus ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: patch for viewing DjVu files
Hi! I use kdvi for djvu, it more handy then djview: Open=if [ $DESKTOP_SESSION = kde ]; then (nohup kdvi %f ); else (nohup djview %f ); fi -- Sincerely Yours, Vadim Likhota ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: patch for viewing DjVu files
On Thu, 7 Sep 2006 19:46:39 +0400 (MSD) [EMAIL PROTECTED] wrote: I use kdvi for djvu, it more handy then djview: Open=if [ $DESKTOP_SESSION = kde ]; then (nohup kdvi %f ); else (nohup djview %f ); fi No problem about using kdvi with me, but why nohup? No entry in mc.ext.in currently has it. Regards, Nerijus ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel