Tag Archives: diodon

Ramping up plugin system for Diodon

I’ve been working on a plugin system for Diodon for quite a while. Now, finally, it is ready for testing in the daily ppa.

Before you go ahead testing the new version please remember that this code is in development state and therefore should not be used on a production system.

This said, let’s talk about what has really changed:
Basically Diodon still works as usual. However, under the hood a lot has changed.
First is to mention the update to gtk3 and dconf/GSettings. This changes bring about two consequences:

  • All your customized settings will be lost on a upgrade. So please check the preferences dialog.
  • Diodon will only be installable on Oneiric or higher (and of course on any other distribution with gtk3 support but then from source). Older versions of Diodon will still be available for older Ubuntu versions.

Furthermore, a lot of refactoring was needed to have a clean API for the plugin system. A blog post how you can develop your own plugin for Diodon will follow soon.
If you cannot wait :) you might take a look at Libpeas which is the library Diodon uses for its plugin system.

Currently, Diodon has two plugins. One is the application indicator which is installed and activated per default with the diodon package.
Additionally is there a diodon-plugins package which currently only contains the Unity Lens Plugin.
When installed the Unity Lens is not activated per default and needs to be enabled in the Preferences Dialog of Diodon.

I will soon write a few other posts about the new plugin system. However this should do for now ;) .

Looking forward to hear what you think about this move.

Diodon 0.5.0 and what to do when diodon does not start

Finally, the instant paste feature is available in a stable release and enabled by default. But no worries if you do not like it you can still disable it in the preferences.

When you suffer from the issue that Diodon does not start anymore, this new release might help you as well. There was an issue that Diodon did not handle some UTF-8 strings correctly what led to Diodon not starting. This issue is fixed in this release.

However it brought up the question what you can do when you suffer from a different issue which causes Diodon not to start either. (although I hope this will never happen to you).

Firstly checkout out the post After updating to Natty: Why has Diodon stopped working?.

If that is not the case on your machine another way is to remove (resp. move) the history file. You can do that with following command:
mv ~/.local/share/diodon/storage.xml ~/.local/share/diodon/storage.xml.old

Start diodon again. Hope you are lucky and it will work. However please file a bug on https://bugs.launchpad.net/diodon and attach the storage.xml.old file.

If diodon still does not start please still file a bug. Run Diodon on the console and add the output to the bug report.

Hope you will get happy with the new Diodon version. If not please let me know ;) .

Diodon with instant paste for testing

The instant paste feature has finally landed into the Diodon trunk. With this feature there is now no need to press Ctrl+V after choosing a clipboard item (which you wanted to paste anyway ;) )
Diodon does this now for you…

However, before this change gets released it needs intensive testing. And, of course, I want to hear your comments on what you think.

Before you go ahead please remember that this code is in development state and therefore should not be used on a production system:

So let’s start with the installation by running following commands:
sudo add-apt-repository ppa:diodon-team/daily
sudo apt-get update
sudo apt-get install diodon

Close Diodon and open it again. The instant paste feature should now be activated. Set the cursor at the position you want to paste, choose an item from the clipboard history and see how it works (hopefully anyway ;) )

Note that currently the instant paste feature only works for applications which do not ignore events of X (see here for details) and use
Ctrl+V to paste content.

Please file a bug when you find an application where the instant paste does not work.

New Diodon release and how to disable unity lens or indicator

After a testing phase of two weeks and fixing the rough edges a new release 0.4.0 of Diodon is now available in the stable ppa.

So if you want to get the new version with its new Unity Lens up and running, here are the commands to install it:
sudo add-apt-repository ppa:diodon-team/stable
sudo apt-get update
sudo apt-get install diodon

During the testing phase the question came up whether there is a way to disable the Unity Lens and/or indicator?
Firstly, I have to say currently there is no easy way to disable such. In the future, a plugin system is planned where each feature such as the indicator or unity lens can be installed independently. However for now there is a workaround.

If you want to disable the Unity Lens you can simply remove the file diodon.place with the following command:
sudo rm /usr/share/unity/places/diodon.place

Logout and login again and the Unity Lens should have disappeared. Note when a new version of diodon is installed, you might have to redo this step.

There is also a way to disable the Diodon indicator by changing the gconf setting /apps/diodon/show_indicator:

  • Press Alt+F2
  • run gconf-editor
  • browse to /apps/diodon
  • disable show_indicator

The indicator should disappear straight away.
If desired you can even disable indicator and unity lens. Diodon can than still be used with the hotkey Ctrl+Alt+V.

Call for testing: Unity lens for Diodon

The diodon unity lens has made it into the trunk and therefore is now available in the daily ppa. Before it will be released it needs intensive testing. So go for it and grab it.

But before you start here are some instructions. Please remember that this code is in development state and therefore should not be used on a production system:

So let’s start with the installation by running following commands:
sudo add-apt-repository ppa:diodon-team/daily
sudo apt-get update
sudo apt-get install diodon

After diodon is installed you have to logout from unity and login again. Now the Diodon Unity Lens should appear in the Launcher. Either use the mouse or press <Super>-v to show the dash for diodon.

That should be all you need to know. Oh wait, when you want to build from source, note that the Unity Lens is not built by default but needs to be enabled during compilation. Use following commands to do so:
bzr branch lp:diodon
cd diodon
./waf configure --enable-unity-lens
./waf build
sudo ./waf install
diodon

Looking forward to read your comments on what you think of the Diodon Unity Lens.

After updating to Natty: Why has Diodon stopped working?

The question has been raised why Diodon is not running anymore after updating from  Maverick to Natty. If you have encountered the same problem I hope the following explanation will clear it up.

So in Maverick Diodon is linked against several libraries such as libdbusmenu-glib.so.1. This library has been updated in Natty and is there available as libdbusmenu-glib.so.3. This is actually not a problem as there are different debian packages available for Maverick and Natty which link to the different libraries.

However a problem can be raised when updating from Maverick to Natty. During the update process Ubuntu disables all 3rd party apt installation sources including the Diodon ppa. So the system will get updated but the correct Diodon version for Natty won’t be installed. This means the old Diodon Maverick binary, which is linked against libdbusmenu-glib.so.1, is still on the system. As this library is not available on Natty, however, it can not be started anymore.

To get around this, the Natty Diodon ppa needs to be configured and the Natty Diodon version installed. This can be done with the following commands:
sudo add-apt-repository ppa:diodon-team/stable
sudo apt-get update
sudo apt-get install diodon

So this way Diodon should be up and running again.

Diodon available for Lucid

As Diodon has some dependencies not available per default in Lucid there was so far no package for it. However as Lucid is a LTS version and some user would still like to use Diodon on their machine I have some great news from you ;) :

After some dependency fiddling and adjusting code a new Diodon version 0.3.1 is available which can now be built on Lucid as well (Note: ppa:sao/backports is needed however).

Find a package in the official Diodon ppa.

Diodon: Looking for a designer

You might have heard about the Diodon project, a new clipboard manager for GNOME./Unity. No? If not so find more about it on the Lauchpad Project side.

Diodon is a project aiming to integrate well into the GNOME and Unity desktop thereby having a small footprint.

Currently Diodon uses a application indicator to access the clipboard history. However, plans are to replace this with a more accessible dialog with filtering ability.

Although such plans will integrate Diodon better into the desktop there is no way around for a better look and feel but having the right icons maybe even wallpapers etc… Hence, we are looking for a designer who can help us out in this area.

Interested? Please contact us over irc, mail or whatever way you prefer (see here). Your help would be very much appreciated.