Bug#717240: alacarte empties gnome-applications.menu

2013-07-18 Thread David GUYOT
Package: alacarte
Version: 3.5.3-1
Severity: grave
Tags: upstream
Justification: renders package unusable

When trying to hide Icedove entry, the left panel of alacarte empties and the
console displays :

Traceback (most recent call last):
  File /usr/share/alacarte/Alacarte/MainWindow.py, line 367, in
on_item_tree_show_toggled
self.editor.setVisible(item, False)
  File /usr/share/alacarte/Alacarte/MenuEditor.py, line 195, in setVisible
self.save()
  File /usr/share/alacarte/Alacarte/MenuEditor.py, line 54, in save
fd.write(self.dom.toprettyxml())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position
835: ordinal not in range(128)
Traceback (most recent call last):
  File /usr/share/alacarte/Alacarte/MenuEditor.py, line 50, in menuChanged
self.load()
  File /usr/share/alacarte/Alacarte/MenuEditor.py, line 47, in load
raise ValueError(can not load menu tree %r % (self.name,))
ValueError: can not load menu tree 'gnome-applications.menu'

** (alacarte:21123): CRITICAL **: gmenu_tree_get_root_directory: assertion
`tree-loaded' failed
Traceback (most recent call last):
  File /usr/share/alacarte/Alacarte/MainWindow.py, line 69, in menuChanged
self.loadUpdates()
  File /usr/share/alacarte/Alacarte/MainWindow.py, line 98, in loadUpdates
self.loadMenus()
  File /usr/share/alacarte/Alacarte/MainWindow.py, line 194, in loadMenus
self.loadMenu({ None: None })
  File /usr/share/alacarte/Alacarte/MainWindow.py, line 205, in loadMenu
name = cgi.escape(menu.get_name())
AttributeError: 'NoneType' object has no attribute 'get_name'

At next launches, alacarte will fail saying :
Traceback (most recent call last):
  File /usr/bin/alacarte, line 37, in module
main()
  File /usr/bin/alacarte, line 33, in main
app = MainWindow(datadir, version)
  File /usr/share/alacarte/Alacarte/MainWindow.py, line 43, in __init__
self.editor = MenuEditor()
  File /usr/share/alacarte/Alacarte/MenuEditor.py, line 33, in __init__
self.load()
  File /usr/share/alacarte/Alacarte/MenuEditor.py, line 47, in load
raise ValueError(can not load menu tree %r % (self.name,))
ValueError: can not load menu tree 'gnome-applications.menu'

When checked, the gnome-applications.menu file has been emptied, and I have to
restore it from a backup — happily, this backup is launched daily —.

I saw the #630017 bug, but the error messages seemed very different, so I
opened this new bug report, but I may be mistaken.

-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9.6 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages alacarte depends on:
ii  gir1.2-gdkpixbuf-2.0  2.26.1-1
ii  gir1.2-glib-2.0   1.32.1-1
ii  gir1.2-gmenu-3.0  3.4.2-5
ii  gir1.2-gtk-3.03.4.2-6
ii  python2.7.3-4
ii  python-gi 3.2.2-2

Versions of packages alacarte recommends:
ii  gnome-panel  3.4.2.1-4

alacarte suggests no packages.

-- no debconf information

*** /home/penegal/.config/menus/gnome-applications.menu
!DOCTYPE Menu
  PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
  'http://standards.freedesktop.org/menu-spec/menu-1.0.dtd'
Menu
NameApplications/Name
MergeFile type=parent/etc/xdg/menus/gnome-
applications.menu/MergeFile
Menu
NameGames/Name
Include
Filenamealacarte-made.desktop/Filename
/Include
/Menu
Menu
NameOther/Name
Exclude
Filenamealacarte-made-1.desktop/Filename
/Exclude
AppDir/home/penegal/.local/share/applications/AppDir
Exclude
Filenamegnome-font-viewer.desktop/Filename
/Exclude
Exclude
Filenamegmenu-simple-editor.desktop/Filename
/Exclude
Exclude
FilenameTrueCrypt.desktop/Filename
/Exclude
Exclude
FilenameEvolution.desktop/Filename
/Exclude
Exclude
FilenameÉditeur de menus.desktop/Filename
/Exclude
Exclude
Filenamenautilus-autorun-software.desktop/Filename
/Exclude
/Menu
Menu
NameGraphics/Name
Include
Filenameevince.desktop/Filename
/Include
AppDir/home/penegal/.local/share/applications/AppDir
Include
Filenamekde4-kcolorchooser.desktop/Filename
/Include
/Menu
Menu
NameInternet/Name
Exclude

Bug#717240: alacarte empties gnome-applications.menu

2013-07-18 Thread Michael Biebl
Am 18.07.2013 11:58, schrieb David GUYOT:
 Package: alacarte
 Version: 3.5.3-1
 Severity: grave
 Tags: upstream
 Justification: renders package unusable
 
 When trying to hide Icedove entry, the left panel of alacarte empties and the
 console displays :
 
 Traceback (most recent call last):
   File /usr/share/alacarte/Alacarte/MainWindow.py, line 367, in
 on_item_tree_show_toggled
 self.editor.setVisible(item, False)
   File /usr/share/alacarte/Alacarte/MenuEditor.py, line 195, in setVisible
 self.save()
   File /usr/share/alacarte/Alacarte/MenuEditor.py, line 54, in save
 fd.write(self.dom.toprettyxml())
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position
 835: ordinal not in range(128)
 Traceback (most recent call last):
   File /usr/share/alacarte/Alacarte/MenuEditor.py, line 50, in menuChanged
 self.load()
   File /usr/share/alacarte/Alacarte/MenuEditor.py, line 47, in load
 raise ValueError(can not load menu tree %r % (self.name,))
 ValueError: can not load menu tree 'gnome-applications.menu'

Installing gnome-menus should fix that.
Not quite sure why we dropped that and if alacarte is really supposed to
work without that dependency.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#717240: alacarte empties gnome-applications.menu

2013-07-18 Thread David Guyot
Hello.

Well, it was already installed :
penegal@Arcturus:~/Téléchargements$ sudo aptitude search gnome-menus
i  
gnome-menus 
  
- implémentation GNOME des spécifications freedesktop de menu

Actually, the AppDir target inside the Internet section does not contain
any .desktop file related to Icedove; the only on I was able to find was
in /home/penegal/.gnome2/panel2.d/default/launchers/icedove.desktop and
contained :
#!/usr/bin/env xdg-open

[Desktop Entry]
Name=Icedove Mail/News
Comment=Read/Write Mail/News with Icedove
GenericName=Mail Client
Exec=/opt/thunderbird/launcher.sh
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=icedove
Categories=Network;Email;News;GTK;
MimeType=message/rfc822;
StartupWMClass=Icedove-bin
Name[ca]=Client de correu Icedove
Name[cs]=Poštovní klient Icedove
Name[fi]=Icedove-sähköposti
Name[fr]=Messagerie Icedove
Name[pl]=Klient poczty Icedove
Name[pt_BR]=Cliente de E-mail Icedove
Name[sv]=E-postklienten Icedove
Comment[ca]=Llegiu i escriviu correu
Comment[cs]=Čtení a psaní pošty
Comment[de]=Emails lesen und verfassen
Comment[fi]=Lue ja kirjoita sähköposteja
Comment[fr]=Lire et écrire des courriels
Comment[it]=Leggere e scrivere email
Comment[ja]=メールの読み書き
Comment[pl]=Czytanie i wysyłanie e-maili
Comment[pt_BR]=Ler e escrever suas mensagens
Comment[sv]=Läs och skriv e-post
Name[fr_FR]=Messagerie Thunderbird
Icon[fr_FR]=thunderbird

I just launched a search to find if there are other .desktop files
related to Icedove.

I don't know if that helps.

Regards.


Le 18/07/2013 12:07, Michael Biebl a écrit :
 Am 18.07.2013 11:58, schrieb David GUYOT:
 Package: alacarte
 Version: 3.5.3-1
 Severity: grave
 Tags: upstream
 Justification: renders package unusable

 When trying to hide Icedove entry, the left panel of alacarte empties and the
 console displays :

 Traceback (most recent call last):
   File /usr/share/alacarte/Alacarte/MainWindow.py, line 367, in
 on_item_tree_show_toggled
 self.editor.setVisible(item, False)
   File /usr/share/alacarte/Alacarte/MenuEditor.py, line 195, in setVisible
 self.save()
   File /usr/share/alacarte/Alacarte/MenuEditor.py, line 54, in save
 fd.write(self.dom.toprettyxml())
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position
 835: ordinal not in range(128)
 Traceback (most recent call last):
   File /usr/share/alacarte/Alacarte/MenuEditor.py, line 50, in menuChanged
 self.load()
   File /usr/share/alacarte/Alacarte/MenuEditor.py, line 47, in load
 raise ValueError(can not load menu tree %r % (self.name,))
 ValueError: can not load menu tree 'gnome-applications.menu'
 Installing gnome-menus should fix that.
 Not quite sure why we dropped that and if alacarte is really supposed to
 work without that dependency.



-- 
David Guyot
Administrateur système, réseau et télécommunications
Europe Camions Interactive
Moulin Collot
F-88500 Ambacourt

Tel: +33 (0)3 29 30 47 85
Fax : +33 (0)3 29 31 31 31




signature.asc
Description: OpenPGP digital signature


Bug#717240: Info received (Bug#717240: alacarte empties gnome-applications.menu)

2013-07-18 Thread David Guyot
I found another icedove-related .desktop file, but I don't think it's
the file I'm looking for, because it was on my desktop :

[Desktop Entry]
Name=Icedove Mail/News
Comment=Read/Write Mail/News with Icedove
GenericName=Mail Client
Exec=/opt/thunderbird/thunderbird
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/home/penegal/.icons/Hydronium/64x64/apps/thunderbird05.png
Categories=Network;Email;News;GTK;
MimeType=message/rfc822;
StartupWMClass=Icedove-bin
Name[fr]=Messagerie Icedove
Comment[fr]=Lire et écrire des courriels
Name[fr_FR]=Messagerie Thunderbird
Icon[fr_FR]=thunderbird

Regards.

-- 
David Guyot
Administrateur système, réseau et télécommunications
Europe Camions Interactive
Moulin Collot
F-88500 Ambacourt

Tel: +33 (0)3 29 30 47 85
Fax : +33 (0)3 29 31 31 31




signature.asc
Description: OpenPGP digital signature