Using Custom Shortcuts of DE as Diodon hotkey

A hotkey feature to open the clipboard history has been available in Diodon since its very first release and is a major part of its usability. Unfortunately this hotkey has not always worked as expected, causing issues on certain desktop environments or stopped working altogether caused by regressions of updated libraries. Furthermore, customization of the hotkey did not always work such as using Symbols. Sometimes even the order how the keys were pressed mattered. All in all this feature has not been very stable. The main underlying problem for this is that there is no standard across desktop environments to register global hotkeys.

Looking at all those issues it is kind of obvious that handling of a hotkey should not be the responsibility of Diodon but be handled by the desktop environment itself. Therefore the decision has been made to drop the internal Diodon hotkey feature altogether as per version 1.4.0. Instead a custom shortcut needs to be registered through the settings offered by whatever desktop environment you use.

For GNOME/Unity this can be done by opening Keyboard app through the Dash/Activities overview. There you go to Shortcuts -> Custom Shortcuts and add a new one with the name “Diodon” and command “/usr/bin/diodon”. Afterwards assign your preferred hotkey and you are done.
Custom-Shortcut-Diodon

Unfortunately for Diodon at this point it is not possible to register this Custom Shortcut during package installation. So as of version 1.4.0 registration of a hotkey needs to be done manually. Additionally the special keybinding to browse through the history will not work anymore as Diodon doesn’t know anymore what keybinding was used. (Of course you can still use the up and down or k and j keys to cycle through the history.)
We believe though the additional stability in the hotkey feature makes up for this one-time manual step.

If you have any questions or concerns about this change leave a comment – feedback is always appreciated. And if you actually know a way how an application could register a custom shortcut during installation best have a look at this question.

A stability release – Diodon 1.3.0

After a long time of silence have we released a new Diodon version 1.3.0 focusing on stability of the clipboard manager. You can find a extensive list of what has been changed on the release page.

You can either download the new version as a tarball or if you use Ubuntu or an Ubuntu based distribution use the stable ppa by running following commands:

sudo apt-add-repository ppa:diodon-team/stable
sudo apt-get update
sudo apt-get install diodon
# and for all Unity users there is also a scope
sudo apt-get install unity-scope-diodon

I herewith also specifically wanted to take the opportunity to say thanks to you all reporting bugs. All those reports are really helpful and essential to make Diodon better. Also if in the future Diodon doesn’t behave as you expect it to, please do not hesitate to report it.

This said happy copying and there are certainly more Diodon versions coming up in the future.

Why does Diodon not save anything to the clipboard history?

This question has been asked a couple of times also on AskUbuntu so I thought it is worth a blog post to elaborate on why in certain circumstances Diodon doesn’t save anything to the clipboard history and what you can do about it.

Since version 1.1.0 the way how Diodon stores its clipboard storage has changed – it used to be that the history was simply stored in the storage.xml file located in ~/.local/share/diodon/. This was fairly simple but had the limitation that the clipboard history was limited to a certain number of entries. If we wanted to increase this number but still using the single xml file Diodon would consume way too much memory and would have become too slow as well. To overcome this limitation have we moved away from this xml file and integrated a library called Zeitgeist.

Quick quote what Zeitgeist actually is:

Zeitgeist is a service which logs the users’ activities and events, anywhere from files opened to websites visited and conversations had.

As Diodon pretty much records users’ copy events is using Zeitgeist service a really good match. Besides recording Zeitgeist also provides a simple way to search certain activities and managing history which gives Diodon beside an infinitive clipboard history many more opportunities read more about it here.

But let’s get back to our initial question on why Diodon does not save anything to the clipboard history. For this we have to know that Zeitgeist has a privacy feature so it is possible to disable recording of any users’ events. This option is to be found in your “System Settings” -> “Security & Privacy” -> “Files & Applications” where it says “Record file and application usage”. When you turn this option off no users’ events will be recorded including copy events by Diodon. This means you can still access previous copy events recorded before disabling this option but no new items will be added. You properly ask yourself now how you can simply allow Diodon to save copy events but disable other applications from recording anything?

This is possible but at this stage not as apparent as it could be. In the same Security & Privacy dialog from above there is the possibility to enable recording but only including certain activities. Unfortunately is there no entry to simply include Clipboard. This is something we would really like to see in the future and are working on it – you can follow progress in this bug report. For now as a workaround to still allow Diodon to save copy events is to at least allow activity “Documents” to be recorded.

This could look like the following:Security & Privacy

When this option is set you should be good to go and Diodon should start adding clipboard items to the history again.

Changes underneath the surface – Diodon 1.2.0

I am glad to announce that another Diodon version has been released today with mainly changes underneath the surface such as improving API for plugin developers but also fixing some annoying bugs.

Here in detail what has changed:

  • Fixed issue which could cause Diodon not starting when upgrading to a newer version (#1347181)
  • Fixed issue that under certain desktop environments Diodon was not always added as startup application (#1348989)
  • Improved plugin API (#1323947, #1309893, #1324309)
  • Cleaning up dependencies for easier integration into other distributions (#1348994, #1310360)
  • Updated translations

You can either download the new Diodon as a tarball or if you use Ubuntu or an Ubuntu based distribution use the stable ppa by running following commands:

sudo apt-add-repository ppa:diodon-team/stable
sudo apt-get update
sudo apt-get install diodon
# and for all Unity users there is also a scope
sudo apt-get install unity-scope-diodon

Thanks to everyone involved who made this release happen providing translations, reporting bugs, working on packaging, contributing source code or just simply using and advocating Diodon. Hope to see many more releases ahead.