[evince] retrieving list of opened evince documents
- From: harsha <harsha v r gmail com>
- To: evince-list gnome org
- Subject: [evince] retrieving list of opened evince documents
- Date: Tue, 22 Feb 2011 21:53:09 -0500
Hello,
I am trying to write a script which records the list of open evince
documents. I've been using lsof command till now
for i in `lsof -t /usr/bin/evince`;do lsof -Fn +p $i | grep
"\.pdf$\|\.djvu$\|\.ps$\|\.dvi$" | sed -e 's,n\(.*\),\1,' ; done
But this doesn't seem to work with djvu files(maybe evince doesn't
need to keep the file opened for some reason).
Is there a way to directly retrieve the list of open files? Perhaps a
dbus query?
thanks,
Harsha
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]