3

In order to edit which whitelisted apps are visible in the notification area, I normally could use dconf editor and edit from the unity panel entry as shown here.

The thing is, I have gnome fallback installed only, so the unity panel entry is obviously not present in dconf

So how can i edit the notification area, in order to remove the second battery icon that is visible?

Thanks for your help

(EDIT) here is a pic of what i need to remove, its the first battery icon, which is in the notification applet, not the indicator applet

panel

Jayo
  • 1,251

3 Answers3

5

In a nutshell, what you are trying to achieve is not possible. This is caused by a bug, which will be a bit difficult to solve, due to some changes in GNOME3.

  • There is not longer a separate gnome-power-manager process. It's now a plugin of gnome-settings-daemon.
  • If you disable the plugin, you will lose power management.
  • If you use another power manager, such as xfce4-power-manager, you will not get the indicator (which you want).
  • There is no system tray whitelist in GNOME Classic.

All in all, there is no direct solution, and your best bet is to wait until the bug is solved.


How to use xfce4-power-manager instead of GNOME Power Manager (the plugin) in GNOME 3

This will show you how to disable GNOME Power Manager in GNOME 3, and then how to enable xfce4-power-manager.

  • Install dconf-editor.
  • Navigate to org.gnome.setting-daemon.plugins.power and untick the active option.
    enter image description here
  • Install xfce4-power-manager (sudo apt-get install xfce4-power-manager).
  • Add this to your start up applications.
  • Log out and log back in.
  • You should now see a single battery icon, which will be provided by xfce4-power-manager.
RolandiXor
  • 51,797
2

I have one solution with this ppa:jconti/gnome3.

It is simple, modify gnome-settings-daemon to hide the battery icon (like in unity) :

sudo apt-get build-dep gnome-settings-daemon
sudo apt-get install build-essential fakeroot devscripts
mkdir tmp
cd tmp
gedit patch_gnome-fallback.patch

Copy that in the patch_gnome-fallback.patch file:

--- gsd-power-manager.c 2012-02-05 21:27:41.000000000 +0100
+++ ../../gnome-settings-daemon-3.2.2/plugins/power/gsd-power-manager.c 2012-02-05 20:20:36.000000000 +0100
@@ -646,8 +646,7 @@
         if (manager->priv->previous_icon == NULL) {

                 /* set fallback icon */
-                if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity") != 0)
-                        gtk_status_icon_set_visible (manager->priv->status_icon, TRUE);
+                gtk_status_icon_set_visible (manager->priv->status_icon, FALSE);
                 gtk_status_icon_set_from_gicon (manager->priv->status_icon, icon);
                 manager->priv->previous_icon = icon;
                 return TRUE;

Then run these commands:

apt-get source gnome-settings-daemon
cd gnome-settings-daemon-*/plugins/power
patch < ../../../patch_gnome-fallback.patch
cd ../..
debchange -i

[Tape some comments]

debuild -us -uc -i -I

And for the installation:

sudo debi

Restart and it works (if you have install indicator-power package).

Thanks to quantenemitter for the todo with another package https://bugs.launchpad.net/desktopnova/+bug/844983/comments/8

Octavian Helm
  • 14,515
Mohegan
  • 41
1

One solution is to remove the indicator and leave the notification icon:

sudo apt-get remove indicator-power

The indicator is more full-featured than the battery icon (which doesn't really do anything) but at least you'll only have one battery icon.

Owen W.
  • 11