How to Add Recent Files Quicklists in Ubuntu Unity Launcher

Regardless of your profession, if your work involves computers, you can’t deny the importance of productivity enhancement tools that either make your work easier or less time consuming.

If you’re on Ubuntu Linux, it’d be reasonable to assume that you’d be using a version that ships with the Unity desktop. If that’s the case, then you must surely be launching apps by clicking the corresponding icons pinned to the Unity launcher bar.

Now, some of these apps – like gedit, LibreOffice Writer, and more – deal with files. What if you could directly launch an app with one of the recently opened files? Won’t that save some of your precious time? In this article we will discuss an app, Ubuntu-Recentquicklists, that lets you do this.

Note: All commands, instructions, and features mentioned in this article have been tested on Ubuntu 14.04.

Ubuntu-Recentquicklists is basically a Python script that adds recent files to the right-click menu of the apps pinned on the Unity launcher bar, allowing you to directly launch an app with one of the recently opened files.

The tool also offers some configuration options that, for example, let you specify the max age of files (how old they should be), whether or not to produce a notification of you trying to open a renamed/moved/deleted file, and more.

You can easily download and install the tool on your Ubuntu box by running the following commands in a terminal:

cd ~/
git clone https://github.com/thirschbuechler/ubuntu-recentquicklists.git

Next, run the following commands to properly set up the tool for launch:

cd ubuntu-recentquicklists
sudo chmod a+x ubuntu-recentquicklists.py
sudo chmod a+x log3.py

Finally, run the following command to launch the application:

python3 "ubuntu-recentquicklists.py"

As is clear from the last command mentioned above, you need to have Python3 installed on your system. When Ubuntu-Recentquicklists is launched, you’ll see a notification similar to the one shown in the screenshot below.

urql-start

Once you’ve launched the tool, all you have to do is right-click on an app icon pinned to the Unity launcher bar, and you’ll see the name of some recently opened files in the menu.

urql-tool-working

Click any of them and the app will launch with that particular file opened.

Ubuntu-Recentquicklists also provides some configuration options which are there in a file named “urq.conf.” Found in the same directory as the main python script, the configuration file contains the following options:

  • maxage [integer]: An integer value that tells the tool to ignore files that were opened or modified earlier than this many days
  • onlycritical [True/False]: Only logs events that prevent tool’s execution
  • verboselogging [True/False]: Allows the tool to log minor activities
  • startupsplash [True/False]: Shows a notification bubble when the tool launches
  • shortnagging [True/False]: If enabled, tells the tool to display a short notification when a renamed/moved/deleted file is opened
  • showfullpath [True/False]: Show the file names with complete path
  • maxentriesperlist [integer]: Specifies how many recently-opened file names can be displayed in the right-click menu

The tool’s official website says that it should work with any app that handles files, although some apps have been explicitly confirmed. These include Libre Office (Writer1, Calc, Impress), gedit2 (standard plain text editor), Google-chrome (local html), Firefox3 (local html), VLC, Audacity, Clementine, Evince (standard pdf reader), Vivaldi browser, and Atom text editor.

Ubuntu-Recentquicklists may seem like a very basic tool centered around a single feature, but its true potential can only be judged when you make it a part of your daily work. Those small number of seconds that it saves each time you use it add up to some valuable number of minutes at the end of each day and hours every week.

As for the tool itself, there’s practically no learning curve, and a decent amount of documentation is available on the official website, making it ideal for both beginners and experienced Ubuntu users.

Leave a Reply

Yeah! You've decided to leave a comment. That's fantastic! Check out our comment policy here. Let's have a personal and meaningful conversation.