Bryan Clark

Desklets

Recently Used Files

The recented-used file desklet displays the latest recently used files according to your ~/.recently-used XML file.

The files are displayed as a toolbar that expands a you hover over the icons inside of the toolbar. When you left click on one of the icons it will launch the proper application to handle that type according to the GNOME url handler.

A right click on the image will bring up the configuration menu where you can change the orientation and the number of items that show up.

Yeah, we now have icon theme support built into the Rubar! Look at those nice SVG's yes, they work too!

Screenshots

Ebuild

Yeah, I use Gentoo, so here's the ebuild.

Simply untar into your $PORTDIR_OVERLAY directory like so:

cd $PORTDIR_OVERLAY; tar -zxvf recently-used-*.tar.gz
Then emerge it like this:
emerge x11-plugins/recently-used
Ta da!

How to Debug Desklets

Here's what I've found is the best way to debug your gdesklets:

Test all of your extra classes with simple Test python scripts. For the Recently Used desklet I created all of these:

Each of these test scripts tests a different aspect of the critical python files that I was using. Once I tested those and made sure they were working how I expected I could move on...

Testing the main script isn't that hard really. If you know that all your imported scripts will work then you can realiably test this main script by running everything through the command line. The library files were very well done and will usually print out any errors that you've made.

Create the Sensor installer

clarkbw@bryan recently-used $ ./pack_sensor RecentlyUsed
Install the desklet Sensor
clarkbw@bryan recently-used $ ./Install_RecentlyUsed_Sensor.bin
Start gdesklets
clarkbw@bryan recently-used $ gdesklets &
Start your Display
clarkbw@bryan recently-used $ gdesklets recently-used.display

If something went wrong then you'll see output spew out onto the console window. Maybe you have to trigger your bug, go play with the Desklet and come back to the window to see if anything changed.

More Information

Email
clarkbw_AT_clarkson_DOT_edu
for pats on the back or gripes