Okular: Remember Last Session & Re-open Last Open Files in Ubuntu 22.04 (KDE)
Okular is a popular document viewer developed by KDE, which is the default document viewer in KDE Plasma. It supports various document formats such as PDF, PostScript, DjVu, CHM, XPS, and Tiff. One of the useful features of Okular is the ability to remember the last session and re-open the last open files. This feature can be very helpful for users who frequently work with multiple documents and want to quickly resume their work.
Enabling "Remember Last Session" in Okular
To enable the "Remember Last Session" feature in Okular, follow these steps:
- Launch Okular.
- Go to "Settings" -> "Configure Okular...".
- In the "Configure Okular" window, go to the "General" tab.
- Check the box next to "Remember last session on exit".
- Click "Apply" and then "OK" to save the changes.
Re-opening Last Open Files in Okular
To re-open the last open files in Okular, simply launch Okular, and the last open files will be automatically re-opened.
Troubleshooting
If the "Remember Last Session" feature is not working in Okular, make sure that the "Remember last session on exit" option is checked in the "Configure Okular" window. If the option is already checked, try resetting Okular's configuration by deleting the configuration file.
The configuration file for Okular is located in the user's home directory in the following location:
~/.config/okularpartrcDelete this file and restart Okular. The configuration file will be automatically recreated with the default settings, and the "Remember Last Session" feature should work as expected.
The "Remember Last Session" feature in Okular can save users time and increase productivity by allowing them to quickly resume their work with multiple documents. By following the simple steps outlined in this article, users can easily enable this feature and re-open the last open files in Okular.
References
- Okular User Guide: Remember Last Session
- Okular does not remember open files after restart - Ask Ubuntu
- Okular Document Viewer Features and Usage in Ubuntu
Note: This article assumes that the user is using Okular version 21.12.3 in Ubuntu 22.04 with KDE.