← Back to team overview

dx-packages team mailing list archive

[Bug 1363277] Re: Indicator not shown in fallback mode when a subdir/file with the same name of icon exists in current work dir

 

Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: libappindicator (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to libappindicator in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1363277

Title:
  Indicator not shown in fallback mode when a subdir/file with the same
  name of icon exists in current work dir

Status in libappindicator:
  New
Status in libappindicator package in Ubuntu:
  Confirmed

Bug description:
  Take the attached python script and execute it in a non-unity desktop
  which does not support appindicators but can show gtk_status_icon (see
  at the end of the post under the "Tested on" paragraph).

  The attached script will fallback correctly to the old gtk_status_icon
  and will show the "battery-good" indicator icon on the system tray.

  Now exit from the script (with ^C).
  In your current directory create a subdir named "battery-good".
  Do not change directory and relaunch the script.

  The fallback mechanism will be unable to find the icon, and now the
  indicator will not be shown.

  The problem could be in app-indicator.c, near line 1641

  if (g_file_test(icon_name, G_FILE_TEST_EXISTS)) {
  			gtk_status_icon_set_from_file(icon, icon_name);
  }

  This code will find the subdir "battery-good" you created, and it will
  try to load it as a icon. But if it fails, as it does, it will never
  load an icon for your indicator.

  Tested on xubuntu 14.04.1 64bit  without indicator panel element and
  with indicator application removed from autostart. Tested also on
  Fedora 20 64bit with XFCE.

To manage notifications about this bug go to:
https://bugs.launchpad.net/libappindicator/+bug/1363277/+subscriptions