Can I use GNOME applets in Unity?

Solution 1:

I think you can't. Unity only shows notification area and indicators. So if you port their code to use indicator-applet, they will work.

Solution 2:

Since both shells encourage you to position launchers closer to the workspace (using the sidebar in Unity and the favourite applications well in Gnome Shell), many of the more common panel applets are close to being obsolete (since they usually just launch things with their main windows appearing close to the launchers). Some cleverness will finish the job.

Both shells are going for better defined, stricter methods for extensions like panel applets. Ubuntu's indicator stuff fits that territory; indicators serve a single use case and they go in one place. Unity also has a feature called Lenses. By default, you have two Lenses in Unity: Applications and Files. In the future, you will be able to install lots more to do all sorts of cool things (like browse Youtube). There is some info about that on the Ubuntu wiki.

As the new shells evolve, additional extension points might emerge.

Solution 3:

I'm not sure about rec-applet, but clipart-finder looks like it could be integrated into Unity via the Lenses API.

In the Lenses API session at the recent UDS-N Neil Patel demoed a youtube place he hacked up over the course of two hours. It was sweet, and looked like it would be an excellent match for clipart-finder.

Solution 4:

Ok, neither Unity or GNOME Shell will have applets as we know them from GNOME 2.x. Applets are simply small GTK-applications, so if I can open the application window nearby the launcher button, then it would be a great solution.

I hope that Unity can help us with:

1) Find out the location of the launcher button. My applet application GTK-application will then create a window close to the button's location. The window is often small, so opening it in maximized mode or in the center of the screen would be very "rude".

2) To indicate status or advancement, the GTK-application may want to modify its launcher button. Can we change the launcher's image or color, or even draw on it?

3) Flip-flopping the window. Clicking the launcher button will show/hide the application window. This will mimic the original applet-launcher.

I want to make rec-applet and clipart-finder rock, also in Unity and GNOME Shell.

Solution 5:

If there is a Gnome Panel applet that you absolutely must use and it isn't feasible to get an indicator to replace it, then this might be a workaround:

  1. Install xfce4-panel
  2. Run "xfce4-panel"
  3. install the XfApplet plugin
  4. Add your Gnome Panel applet to the Xfce4 panel
  5. Arrange the panel in such a way as to not bother other parts of your system, i.e in the lower-right corner.