From zwhuang at gmail.com  Sat Apr  4 00:18:51 2009
From: zwhuang at gmail.com (Zhi-Wei Huang)
Date: Sat, 4 Apr 2009 12:18:51 +0800
Subject: [referencer] startup time
In-Reply-To: <200811301724.29303.giorgis.m@gmail.com>
References: <200811301724.29303.giorgis.m@gmail.com>
Message-ID: <56775e810904032118oa31be20s6862a21ff6b6752@mail.gmail.com>

Hi,

On Mon, Dec 1, 2008 at 12:24 AM, Giorgos Michalogiorgakis
<giorgis.m at gmail.com> wrote:
> Hello list,
>
>  I apologize for the probably misleading subject.  I have a small problem
> with the amount of time referencer needs to start.  In an older machine it
> takes about 8-10 secs to start for a ~1500 papers library.  Most of the
> time seems to be related to thumbnails.  Starting from the command line
> there are many messages like
>
> Couldn't find
> thumbnail:'file:///home/giorgos/bibliography/arxiv/pdf/2005/01/0501109.pdf'
>  or
>
> Has valid failed
> thumbnail: 'file:///home/giorgos/bibliography/arxiv/pdf/2004/10/0410076.pdf'
>
> As I only use the list view and never the icon view, is there a way to not
> check for thumbnails at startup?

you can modify src/ThumbnailGenerator.C to disable the "lookupThumb"
function. The following is the patch code:

diff -r e477f85683a5 src/ThumbnailGenerator.C
--- a/src/ThumbnailGenerator.C	Sun Mar 08 17:50:56 2009 +0000
+++ b/src/ThumbnailGenerator.C	Sat Apr 04 12:13:06 2009 +0800
@@ -45,28 +45,28 @@
 			continue;
 		}
 		
-		Glib::RefPtr<Gdk::Pixbuf> result;
-		gdk_threads_enter ();
-		result = lookupThumb (file);
-		gdk_threads_leave ();
-		
-		if (result) {
-			gdk_threads_enter ();
-			taskLock_.lock ();
-
-			typedef std::multimap<Glib::ustring, Document*>::iterator Iterator;
-			const std::pair<Iterator,Iterator> docs = taskList_.equal_range(file);
-			for (Iterator i = docs.first; i!= docs.second; ++i) {
-				Document *doc = i->second;
-				doc->setThumbnail (result);
-			}
-
-			taskList_.erase (file);
-
-			taskLock_.unlock ();
-			gdk_threads_leave ();
-			sleep (0.1);
-		}
+//Z		Glib::RefPtr<Gdk::Pixbuf> result;
+//Z		gdk_threads_enter ();
+//Z		result = lookupThumb (file);
+//Z		gdk_threads_leave ();
+//Z		
+//Z		if (result) {
+//Z			gdk_threads_enter ();
+//Z			taskLock_.lock ();
+//Z
+//Z			typedef std::multimap<Glib::ustring, Document*>::iterator Iterator;
+//Z			const std::pair<Iterator,Iterator> docs = taskList_.equal_range(file);
+//Z			for (Iterator i = docs.first; i!= docs.second; ++i) {
+//Z				Document *doc = i->second;
+//Z				doc->setThumbnail (result);
+//Z			}
+//Z
+//Z			taskList_.erase (file);
+//Z
+//Z			taskLock_.unlock ();
+//Z			gdk_threads_leave ();
+//Z			sleep (0.1);
+//Z		}
 	}
 }

>
> By the way, I really like this project, keep up the good work!
>
> Thanks,
> Giorgos
>
> ---
> To unsubscribe, send a blank email to referencer-unsubscribe at icculus.org
> Mailing list archives: http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?60
>
>
>

regards,
Huang

From pasp at ll.pl  Mon Apr 13 20:04:12 2009
From: pasp at ll.pl (pasp)
Date: Tue, 14 Apr 2009 02:04:12 +0200
Subject: [referencer] opening pdf problem
Message-ID: <20090414020412.69e08a8a@ll.pl>

Hello,

After some updates in my linux box (F10), every time when I'm trying
to open PDF paper in Referencer (via 'Open' in popup menu) I got
exception like this:

http://clay.ll.pl/repository/referencer-exception.png

My default PDF viewer is AcrobatReader 9. Before updates (when
AcrobatReader 8 was installed) Referencer opened PDF files using Evince
which is now also installed (v 2.24.2).

Any suggestions?

Thanks,
Tomek

From jcspray at gmail.com  Sat Apr 18 14:20:40 2009
From: jcspray at gmail.com (John Spray)
Date: Sat, 18 Apr 2009 19:20:40 +0100
Subject: [referencer] opening pdf problem
In-Reply-To: <20090414020412.69e08a8a@ll.pl>
References: <20090414020412.69e08a8a@ll.pl>
Message-ID: <a4f64050904181120x7c462164n9cbac717eef0d7e3@mail.gmail.com>

When you're setting the default PDF viewer, is that in nautilus?
Referencer just uses the gnome-vfs 'run' method, so it should pick up
whatever is set there.  To be honest I've never changed it from
evince, so I don't know exactly how it works.

John

On Tue, Apr 14, 2009 at 1:04 AM, pasp <pasp at ll.pl> wrote:
> Hello,
>
> After some updates in my linux box (F10), every time when I'm trying
> to open PDF paper in Referencer (via 'Open' in popup menu) I got
> exception like this:
>
> http://clay.ll.pl/repository/referencer-exception.png
>
> My default PDF viewer is AcrobatReader 9. Before updates (when
> AcrobatReader 8 was installed) Referencer opened PDF files using Evince
> which is now also installed (v 2.24.2).
>
> Any suggestions?
>
> Thanks,
> Tomek
> _______________________________________________
> referencer mailing list
> referencer at icculus.org
> http://icculus.org/mailman/listinfo/referencer
>

From kassick at gmail.com  Sat Apr 18 18:47:12 2009
From: kassick at gmail.com (Rodrigo Kassick)
Date: Sat, 18 Apr 2009 19:47:12 -0300
Subject: [referencer] opening pdf problem
In-Reply-To: <20090414020412.69e08a8a@ll.pl>
References: <20090414020412.69e08a8a@ll.pl>
Message-ID: <c5b52ccc0904181547h2743ce67h9245d15bdf40309f@mail.gmail.com>

Tomek,
Try selecting a PDF on nautilus, opening properties and the default program
to evince in the "Open With" page

On Mon, Apr 13, 2009 at 9:04 PM, pasp <pasp at ll.pl> wrote:

> Hello,
>
> After some updates in my linux box (F10), every time when I'm trying
> to open PDF paper in Referencer (via 'Open' in popup menu) I got
> exception like this:
>
> http://clay.ll.pl/repository/referencer-exception.png
>
> My default PDF viewer is AcrobatReader 9. Before updates (when
> AcrobatReader 8 was installed) Referencer opened PDF files using Evince
> which is now also installed (v 2.24.2).
>
> Any suggestions?
>
> Thanks,
> Tomek
> _______________________________________________
> referencer mailing list
> referencer at icculus.org
> http://icculus.org/mailman/listinfo/referencer
>



-- 
Rodrigo Virote Kassick
(k?zic)
------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/referencer/attachments/20090418/2bd89065/attachment.htm>

From pasp at ll.pl  Mon Apr 20 19:08:44 2009
From: pasp at ll.pl (pasp)
Date: Tue, 21 Apr 2009 01:08:44 +0200
Subject: [referencer] opening pdf problem
In-Reply-To: <a4f64050904181120x7c462164n9cbac717eef0d7e3@mail.gmail.com>
References: <20090414020412.69e08a8a@ll.pl>
	<a4f64050904181120x7c462164n9cbac717eef0d7e3@mail.gmail.com>
Message-ID: <20090421010844.4e9428dd@ll.pl>

On Sat, 18 Apr 2009 19:20:40 +0100
John Spray <jcspray at gmail.com> wrote:

> When you're setting the default PDF viewer, is that in nautilus?

True :)

> Referencer just uses the gnome-vfs 'run' method, so it should pick up
> whatever is set there.  To be honest I've never changed it from
> evince, so I don't know exactly how it works.

I've strace'd Referencer and found problem with AcrobatReader.desktop
file located in $HOME/.local/share/applications.

For some reason i can't explain, the Exec key in that file has malformed
path into Adobe reader executable. So, I fixed it and voil'a - it works!

Tomek

From paul.emsley at bioch.ox.ac.uk  Wed Apr 22 13:40:09 2009
From: paul.emsley at bioch.ox.ac.uk (Paul Emsley)
Date: Wed, 22 Apr 2009 18:40:09 +0100
Subject: [referencer] problem opening pdf
Message-ID: <49EF5679.8080507@bioch.ox.ac.uk>


Often I want to open a PDF after looking at its Properties (e.g. to fix 
the journal title or author list).  However, referencer (1.1.5)  doesn't 
allow me to do this.  I have to close the Properties, open the PDF then 
open the Properties again.  Tedious.

Paul.

(Oh, and I think referencer is great, BTW - nice job!  It looks great 
and does useful things (people walk by and say "hey! how can I get that 
on  *my* computer?")



