filepath - In Python: Get path and name of file that is open in LibreOffice and Evince -


in python, determine path , name of (all) file(s), have been opened in libreoffice writer , in evince before.

is there mean this, of os?

i'm working under ubuntu linux 14.04 64 bit.

thanks comments.

you can see list of recent files in ~/.config/libreoffice/4/user/registrymodifications.xcu. i'm not 100% /4/user/ part of path absolute; looking on machine.

you can add following lines xcu file edit amount of history keep, wont' old files.

<prop oor:name="picklistsize" oor:type="xs:int">  <value>20</value> </prop> 

to keep running list, monitor file , extract opened documents when changes. effective files opened after write program - i'm not sure of way find out ever opened before started watching it, though.

there couple of history manager extensions, might provide insight. i'm not sure evince specifically, recent files stored @ ~/.local/share/recently-used.xbel, , take similar approach regularly monitoring file , aggregating contents.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -