One possible solution would be falling back to gtk.gdk.Screen. Can you see which part exactly fails in xlgui.guiutil.get_workarea_dimensions()?
One possible solution would be falling back to gtk.gdk.Screen. Can you see which part exactly fails in xlgui.guiutil. get_workarea_ dimensions( )?