Nautilus precise unity quicklist gets bookmarks!

Nautilus quicklilstFlying back from Budapest, I hacked on a long-time awaited design whishlist: "Nautilus quicklist does not contain the locations previously found under the 'Places' menu.". This is about getting the Unity quicklist for the nautilus launcher icon to display the list of the user's bookmark. It was unexpecdictly more "fun" that what I thought it would be.

Indeed, there is already one dynamic quicklist, appearing when you are making a copy operation which can take some time (when the copy dialog appears), giving the possibility to "display the copy dialog" and "stop all current copy operation". In addition to that, nautilus removes quite regularly all bookmarks and read them.

Surprinsingly, there is no API in libunity/dbusmenu to create "chunks" of menu and merge them at the end, which would be useful in cases like this one when an application have multiple quicklist update source. That means that we need to be nitpick so that one quicklist source doesn't erase the other. I've created some UnityQuicklistHandler GObject class for that impemented into Nautilus. Also, Nautilus can have multiple desktop files in the launcher, all of them are updated in the quicklist (and I tried to minimize memory consumption there).

As a small bonus, there is as well now the static "open a new window" quicklist entry to easily open a new nautilus window. I just uploaded it in precise right now. Enjoy! :)

Share Comments
comments powered by Disqus