odg export: can't save to odg

Summary:

Can't save to ODG extension.

Steps to reproduce:

  • open Inkscape
  • create rectangle (or any object)
  • save as to svg
  • save as to odg

or via terminal:

$ inkscape --export-type=odg --export-filename=image.odg test.svg

What happened?

There is no ODG file.

warning output (terminal):

** (org.inkscape.Inkscape:5488): WARNING **: 09:14:05.891: OdfOutput can only save the active document

What should have happened?

There should be a ODG file, when save to another format (PDF) looks normal.

Version info

Inkscape 1.1.2 (0a00cf5339, 2022-02-04)

    GLib version:     2.72.0
    GTK version:      3.24.31
    glibmm version:   2.66.2
    gtkmm version:    3.24.5
    libxml2 version:  2.9.10
    libxslt version:  1.1.34
    Cairo version:    1.16.0
    Pango version:    1.50.3
    HarfBuzz version: 3.3.1
    Poppler version:  21.07.0

    OS version:       voidlinux