Recovering evince session in Ubuntu 16.04












1















How can I recover documents which were open in Evince prior to a system crash in Ubuntu 16.04? Ideally, I would like to find a list of files which were open just before the crash. At the least, I would like to find some sort of history.



I did a crash simulation on another computer and found out that after opening evince after an unexpected shutdown it does offer a list of "recently viewed filed". Where is this list of recently opened (in Evince) files stored in Ubuntu 16.04? Can I also extract the dates when each document was opened or at least the order in which they had been opened?



I tried using gvfs-info, but the result produced looked rather unsystematic: it both showed files which were opened a long time ago, but never recently, and did not show files which were opened during the crashed session. Is there a more efficient way of using gvfs for my purpose?










share|improve this question























  • Could try searching all files in your home for some of the specific filenames, with grep for example

    – Xen2050
    Dec 18 '18 at 18:35











  • @Xen2050: Thank you for the very good suggestion! It looks like there is a hope to recover the previous session by looking more carefully in gvfs-metadata and .cache/thumbnails/large/ I am more hopeful about the latter, because the cache files are date-stamped. Do you know the rules for creating those thumbnails? Are they created every time a new document is opened in Evince or another application? When are they deleted?

    – D.T.
    Dec 18 '18 at 21:23
















1















How can I recover documents which were open in Evince prior to a system crash in Ubuntu 16.04? Ideally, I would like to find a list of files which were open just before the crash. At the least, I would like to find some sort of history.



I did a crash simulation on another computer and found out that after opening evince after an unexpected shutdown it does offer a list of "recently viewed filed". Where is this list of recently opened (in Evince) files stored in Ubuntu 16.04? Can I also extract the dates when each document was opened or at least the order in which they had been opened?



I tried using gvfs-info, but the result produced looked rather unsystematic: it both showed files which were opened a long time ago, but never recently, and did not show files which were opened during the crashed session. Is there a more efficient way of using gvfs for my purpose?










share|improve this question























  • Could try searching all files in your home for some of the specific filenames, with grep for example

    – Xen2050
    Dec 18 '18 at 18:35











  • @Xen2050: Thank you for the very good suggestion! It looks like there is a hope to recover the previous session by looking more carefully in gvfs-metadata and .cache/thumbnails/large/ I am more hopeful about the latter, because the cache files are date-stamped. Do you know the rules for creating those thumbnails? Are they created every time a new document is opened in Evince or another application? When are they deleted?

    – D.T.
    Dec 18 '18 at 21:23














1












1








1








How can I recover documents which were open in Evince prior to a system crash in Ubuntu 16.04? Ideally, I would like to find a list of files which were open just before the crash. At the least, I would like to find some sort of history.



I did a crash simulation on another computer and found out that after opening evince after an unexpected shutdown it does offer a list of "recently viewed filed". Where is this list of recently opened (in Evince) files stored in Ubuntu 16.04? Can I also extract the dates when each document was opened or at least the order in which they had been opened?



I tried using gvfs-info, but the result produced looked rather unsystematic: it both showed files which were opened a long time ago, but never recently, and did not show files which were opened during the crashed session. Is there a more efficient way of using gvfs for my purpose?










share|improve this question














How can I recover documents which were open in Evince prior to a system crash in Ubuntu 16.04? Ideally, I would like to find a list of files which were open just before the crash. At the least, I would like to find some sort of history.



I did a crash simulation on another computer and found out that after opening evince after an unexpected shutdown it does offer a list of "recently viewed filed". Where is this list of recently opened (in Evince) files stored in Ubuntu 16.04? Can I also extract the dates when each document was opened or at least the order in which they had been opened?



I tried using gvfs-info, but the result produced looked rather unsystematic: it both showed files which were opened a long time ago, but never recently, and did not show files which were opened during the crashed session. Is there a more efficient way of using gvfs for my purpose?







data-recovery logging ubuntu-16.04 evince






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 18 '18 at 15:35









D.T.D.T.

62




62













  • Could try searching all files in your home for some of the specific filenames, with grep for example

    – Xen2050
    Dec 18 '18 at 18:35











  • @Xen2050: Thank you for the very good suggestion! It looks like there is a hope to recover the previous session by looking more carefully in gvfs-metadata and .cache/thumbnails/large/ I am more hopeful about the latter, because the cache files are date-stamped. Do you know the rules for creating those thumbnails? Are they created every time a new document is opened in Evince or another application? When are they deleted?

    – D.T.
    Dec 18 '18 at 21:23



















  • Could try searching all files in your home for some of the specific filenames, with grep for example

    – Xen2050
    Dec 18 '18 at 18:35











  • @Xen2050: Thank you for the very good suggestion! It looks like there is a hope to recover the previous session by looking more carefully in gvfs-metadata and .cache/thumbnails/large/ I am more hopeful about the latter, because the cache files are date-stamped. Do you know the rules for creating those thumbnails? Are they created every time a new document is opened in Evince or another application? When are they deleted?

    – D.T.
    Dec 18 '18 at 21:23

















Could try searching all files in your home for some of the specific filenames, with grep for example

– Xen2050
Dec 18 '18 at 18:35





Could try searching all files in your home for some of the specific filenames, with grep for example

– Xen2050
Dec 18 '18 at 18:35













@Xen2050: Thank you for the very good suggestion! It looks like there is a hope to recover the previous session by looking more carefully in gvfs-metadata and .cache/thumbnails/large/ I am more hopeful about the latter, because the cache files are date-stamped. Do you know the rules for creating those thumbnails? Are they created every time a new document is opened in Evince or another application? When are they deleted?

– D.T.
Dec 18 '18 at 21:23





@Xen2050: Thank you for the very good suggestion! It looks like there is a hope to recover the previous session by looking more carefully in gvfs-metadata and .cache/thumbnails/large/ I am more hopeful about the latter, because the cache files are date-stamped. Do you know the rules for creating those thumbnails? Are they created every time a new document is opened in Evince or another application? When are they deleted?

– D.T.
Dec 18 '18 at 21:23










1 Answer
1






active

oldest

votes


















0














Evince 3.18.2 (which is the version that comes with the current Ubuntu 16.04) uses Gtk's mechanism of storing recently-used files in .local/share/recently-used.xbel .



You can either read this XML file directly, or use Gtk methods to interpret it, for example, using Python: python2 -c "import gtk; print('n'.join([o.get_uri() for o in gtk.RecentManager().get_items() if o.get_mime_type()=='application/pdf']))"



See the GNOME documentation for documentation of the latter method (along with ways to get timestamp of when the file was last visited etc.)






share|improve this answer
























  • Thank you for the answer! Unfortunately, in my case, recently-used.xbel is almost empty even though there had been a dozen of pdf's open at the time of the crash. The crash, by the way, happened when the laptop's battery completely discharged and somehow failed to suspend.

    – D.T.
    Dec 18 '18 at 18:56











  • Hmm. So you are saying evince shows lots of files as "recently viewed", but recently-used.xbel is almost empty? In this case, I'm stumped.

    – Christoph Sommer
    Dec 18 '18 at 19:08











  • I am sorry. Your answer is definitely correct. I just checked on another computer and indeed Evince writes quite a lot of history into recently-used.xbel. On that computer it shows "recently viewed" files. However, I am much more interested in Evince on another laptop which crashed because of the battry discharge. On this laptop recently-used.xbel is unfortunately empty and I hesitate launching Evince. I actually do not know if it will show any "recently viewed" files there.

    – D.T.
    Dec 18 '18 at 19:52











  • Maybe I can use Zeitgeist? In fact, it contains a ton of data. I just do not know how to handle it. More specifically, I do not know how to transform Zeitgeist's "timestamp" into human-readable date. Or maybe some binary file can help?

    – D.T.
    Dec 18 '18 at 19:57











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385605%2frecovering-evince-session-in-ubuntu-16-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Evince 3.18.2 (which is the version that comes with the current Ubuntu 16.04) uses Gtk's mechanism of storing recently-used files in .local/share/recently-used.xbel .



You can either read this XML file directly, or use Gtk methods to interpret it, for example, using Python: python2 -c "import gtk; print('n'.join([o.get_uri() for o in gtk.RecentManager().get_items() if o.get_mime_type()=='application/pdf']))"



See the GNOME documentation for documentation of the latter method (along with ways to get timestamp of when the file was last visited etc.)






share|improve this answer
























  • Thank you for the answer! Unfortunately, in my case, recently-used.xbel is almost empty even though there had been a dozen of pdf's open at the time of the crash. The crash, by the way, happened when the laptop's battery completely discharged and somehow failed to suspend.

    – D.T.
    Dec 18 '18 at 18:56











  • Hmm. So you are saying evince shows lots of files as "recently viewed", but recently-used.xbel is almost empty? In this case, I'm stumped.

    – Christoph Sommer
    Dec 18 '18 at 19:08











  • I am sorry. Your answer is definitely correct. I just checked on another computer and indeed Evince writes quite a lot of history into recently-used.xbel. On that computer it shows "recently viewed" files. However, I am much more interested in Evince on another laptop which crashed because of the battry discharge. On this laptop recently-used.xbel is unfortunately empty and I hesitate launching Evince. I actually do not know if it will show any "recently viewed" files there.

    – D.T.
    Dec 18 '18 at 19:52











  • Maybe I can use Zeitgeist? In fact, it contains a ton of data. I just do not know how to handle it. More specifically, I do not know how to transform Zeitgeist's "timestamp" into human-readable date. Or maybe some binary file can help?

    – D.T.
    Dec 18 '18 at 19:57
















0














Evince 3.18.2 (which is the version that comes with the current Ubuntu 16.04) uses Gtk's mechanism of storing recently-used files in .local/share/recently-used.xbel .



You can either read this XML file directly, or use Gtk methods to interpret it, for example, using Python: python2 -c "import gtk; print('n'.join([o.get_uri() for o in gtk.RecentManager().get_items() if o.get_mime_type()=='application/pdf']))"



See the GNOME documentation for documentation of the latter method (along with ways to get timestamp of when the file was last visited etc.)






share|improve this answer
























  • Thank you for the answer! Unfortunately, in my case, recently-used.xbel is almost empty even though there had been a dozen of pdf's open at the time of the crash. The crash, by the way, happened when the laptop's battery completely discharged and somehow failed to suspend.

    – D.T.
    Dec 18 '18 at 18:56











  • Hmm. So you are saying evince shows lots of files as "recently viewed", but recently-used.xbel is almost empty? In this case, I'm stumped.

    – Christoph Sommer
    Dec 18 '18 at 19:08











  • I am sorry. Your answer is definitely correct. I just checked on another computer and indeed Evince writes quite a lot of history into recently-used.xbel. On that computer it shows "recently viewed" files. However, I am much more interested in Evince on another laptop which crashed because of the battry discharge. On this laptop recently-used.xbel is unfortunately empty and I hesitate launching Evince. I actually do not know if it will show any "recently viewed" files there.

    – D.T.
    Dec 18 '18 at 19:52











  • Maybe I can use Zeitgeist? In fact, it contains a ton of data. I just do not know how to handle it. More specifically, I do not know how to transform Zeitgeist's "timestamp" into human-readable date. Or maybe some binary file can help?

    – D.T.
    Dec 18 '18 at 19:57














0












0








0







Evince 3.18.2 (which is the version that comes with the current Ubuntu 16.04) uses Gtk's mechanism of storing recently-used files in .local/share/recently-used.xbel .



You can either read this XML file directly, or use Gtk methods to interpret it, for example, using Python: python2 -c "import gtk; print('n'.join([o.get_uri() for o in gtk.RecentManager().get_items() if o.get_mime_type()=='application/pdf']))"



See the GNOME documentation for documentation of the latter method (along with ways to get timestamp of when the file was last visited etc.)






share|improve this answer













Evince 3.18.2 (which is the version that comes with the current Ubuntu 16.04) uses Gtk's mechanism of storing recently-used files in .local/share/recently-used.xbel .



You can either read this XML file directly, or use Gtk methods to interpret it, for example, using Python: python2 -c "import gtk; print('n'.join([o.get_uri() for o in gtk.RecentManager().get_items() if o.get_mime_type()=='application/pdf']))"



See the GNOME documentation for documentation of the latter method (along with ways to get timestamp of when the file was last visited etc.)







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 18 '18 at 18:50









Christoph SommerChristoph Sommer

2244




2244













  • Thank you for the answer! Unfortunately, in my case, recently-used.xbel is almost empty even though there had been a dozen of pdf's open at the time of the crash. The crash, by the way, happened when the laptop's battery completely discharged and somehow failed to suspend.

    – D.T.
    Dec 18 '18 at 18:56











  • Hmm. So you are saying evince shows lots of files as "recently viewed", but recently-used.xbel is almost empty? In this case, I'm stumped.

    – Christoph Sommer
    Dec 18 '18 at 19:08











  • I am sorry. Your answer is definitely correct. I just checked on another computer and indeed Evince writes quite a lot of history into recently-used.xbel. On that computer it shows "recently viewed" files. However, I am much more interested in Evince on another laptop which crashed because of the battry discharge. On this laptop recently-used.xbel is unfortunately empty and I hesitate launching Evince. I actually do not know if it will show any "recently viewed" files there.

    – D.T.
    Dec 18 '18 at 19:52











  • Maybe I can use Zeitgeist? In fact, it contains a ton of data. I just do not know how to handle it. More specifically, I do not know how to transform Zeitgeist's "timestamp" into human-readable date. Or maybe some binary file can help?

    – D.T.
    Dec 18 '18 at 19:57



















  • Thank you for the answer! Unfortunately, in my case, recently-used.xbel is almost empty even though there had been a dozen of pdf's open at the time of the crash. The crash, by the way, happened when the laptop's battery completely discharged and somehow failed to suspend.

    – D.T.
    Dec 18 '18 at 18:56











  • Hmm. So you are saying evince shows lots of files as "recently viewed", but recently-used.xbel is almost empty? In this case, I'm stumped.

    – Christoph Sommer
    Dec 18 '18 at 19:08











  • I am sorry. Your answer is definitely correct. I just checked on another computer and indeed Evince writes quite a lot of history into recently-used.xbel. On that computer it shows "recently viewed" files. However, I am much more interested in Evince on another laptop which crashed because of the battry discharge. On this laptop recently-used.xbel is unfortunately empty and I hesitate launching Evince. I actually do not know if it will show any "recently viewed" files there.

    – D.T.
    Dec 18 '18 at 19:52











  • Maybe I can use Zeitgeist? In fact, it contains a ton of data. I just do not know how to handle it. More specifically, I do not know how to transform Zeitgeist's "timestamp" into human-readable date. Or maybe some binary file can help?

    – D.T.
    Dec 18 '18 at 19:57

















Thank you for the answer! Unfortunately, in my case, recently-used.xbel is almost empty even though there had been a dozen of pdf's open at the time of the crash. The crash, by the way, happened when the laptop's battery completely discharged and somehow failed to suspend.

– D.T.
Dec 18 '18 at 18:56





Thank you for the answer! Unfortunately, in my case, recently-used.xbel is almost empty even though there had been a dozen of pdf's open at the time of the crash. The crash, by the way, happened when the laptop's battery completely discharged and somehow failed to suspend.

– D.T.
Dec 18 '18 at 18:56













Hmm. So you are saying evince shows lots of files as "recently viewed", but recently-used.xbel is almost empty? In this case, I'm stumped.

– Christoph Sommer
Dec 18 '18 at 19:08





Hmm. So you are saying evince shows lots of files as "recently viewed", but recently-used.xbel is almost empty? In this case, I'm stumped.

– Christoph Sommer
Dec 18 '18 at 19:08













I am sorry. Your answer is definitely correct. I just checked on another computer and indeed Evince writes quite a lot of history into recently-used.xbel. On that computer it shows "recently viewed" files. However, I am much more interested in Evince on another laptop which crashed because of the battry discharge. On this laptop recently-used.xbel is unfortunately empty and I hesitate launching Evince. I actually do not know if it will show any "recently viewed" files there.

– D.T.
Dec 18 '18 at 19:52





I am sorry. Your answer is definitely correct. I just checked on another computer and indeed Evince writes quite a lot of history into recently-used.xbel. On that computer it shows "recently viewed" files. However, I am much more interested in Evince on another laptop which crashed because of the battry discharge. On this laptop recently-used.xbel is unfortunately empty and I hesitate launching Evince. I actually do not know if it will show any "recently viewed" files there.

– D.T.
Dec 18 '18 at 19:52













Maybe I can use Zeitgeist? In fact, it contains a ton of data. I just do not know how to handle it. More specifically, I do not know how to transform Zeitgeist's "timestamp" into human-readable date. Or maybe some binary file can help?

– D.T.
Dec 18 '18 at 19:57





Maybe I can use Zeitgeist? In fact, it contains a ton of data. I just do not know how to handle it. More specifically, I do not know how to transform Zeitgeist's "timestamp" into human-readable date. Or maybe some binary file can help?

– D.T.
Dec 18 '18 at 19:57


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385605%2frecovering-evince-session-in-ubuntu-16-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Brian Clough

Cáceres