← Back to team overview

desktop-packages team mailing list archive

[Bug 1450147] Re: language-selector-gnome zenity dependancy missing

 

Thanks for your report, Mélodie. language-selector is the source package
from which the binary package language-selector-gnome is built.

Adding zenity as a dependency might fix it, but it wouldn't make much
sense, since language-selector-gnome does not make use of it. language-
selector-gnome calls im-config via the shell command "im-config -l", and
it's the latter which complains about zenity not being installed. Since
that command just echos a variable, that complaint is unwarranted.

I think this is best fixed in im-config, so I changed the affected
package and I attached a patch that simply moves a piece of code before
the UI sanity check.

@Osamu: Do you think that change would be ok?

@Mélodie: Out of curiosity: What's the reason why zenity was not
installed on your machine? It's shipped by default in standard Ubuntu
(depends on ubuntu-desktop). Are you using one of the flavours?

** Patch added: "im-config_l-option.patch"
   https://bugs.launchpad.net/ubuntu/+source/language-selector/+bug/1450147/+attachment/4387888/+files/im-config_l-option.patch

** Package changed: language-selector (Ubuntu) => im-config (Ubuntu)

** Changed in: im-config (Ubuntu)
   Importance: Undecided => High

** Changed in: im-config (Ubuntu)
       Status: New => Confirmed

** Summary changed:

- language-selector-gnome zenity dependancy missing
+ 'im-config -l' complains about zenity not installed

** Tags added: patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to language-selector in Ubuntu.
https://bugs.launchpad.net/bugs/1450147

Title:
  'im-config -l' complains about zenity not installed

Status in im-config package in Ubuntu:
  Confirmed

Bug description:
  The package language-selector-gnome 0.143 from the Vivid edition fails
  to start, complaining zenity is missing.

  $ gnome-language-selector 
  E : zenity doit être installé.
  Traceback (most recent call last):
    File "/usr/bin/gnome-language-selector", line 22, in on_activate
      options=options)
    File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 199, in __init__
      self.check_input_methods()
    File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 54, in wrapper
      res = f(*args, **kwargs)
    File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 454, in check_input_methods
      for (i, IM) in enumerate(self.ImConfig.getAvailableInputMethods()):
    File "/usr/lib/python3/dist-packages/LanguageSelector/ImConfig.py", line 19, in getAvailableInputMethods
      inputMethods = subprocess.check_output(['im-config', '-l']).decode().split()
    File "/usr/lib/python3.4/subprocess.py", line 620, in check_output
      raise CalledProcessError(retcode, process.args, output=output)
  subprocess.CalledProcessError: Command '['im-config', '-l']' returned non-zero exit status 1
  $

  Once zenity is installed it starts and works perfectly.

  Thanks for fixing.

  Best regards,
  Mélodie

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/im-config/+bug/1450147/+subscriptions


Follow ups

References