Libreoffice python scripting: crash on importing Gtk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libreoffice (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Running libreoffice 1:4.2.6.3-0ubuntu1 on trusty.
I put a script in ~/.config/
gabor@mycomputer:~$ loffice
/usr/lib/
g_type = info.get_g_type()
/usr/lib/
g_type = info.get_g_type()
/usr/lib/
g_type = info.get_g_type()
/usr/lib/
g_type = info.get_g_type()
/usr/lib/
g_type = info.get_g_type()
/usr/lib/
g_type = info.get_g_type()
/usr/lib/
g_type = info.get_g_type()
Steps to reproduce:
Put this minimal script in ~/.config/
# -*- coding: utf-8 -*-
from gi.repository import Gtk
def HelloWorld():
dialog = Gtk.MessageDial
dialog.run()
dialog.destroy()
Run it from Writer - Extras - Macros - Run macros (not sure about the english names, LANGUAGE=C libreoffice doesn't change the language)
Result: Libreoffice freezes, doesn't react anymore.
This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.