Session Saver plugin doesn't work at gedit 40: AttributeError: 'Document' object has no attribute 'is_untouched'
In Gedit 40, when I try to restore a session saved with Session Saver plugin, it fails and shows an error at the CLI output.
The error with the RPM version at Fedora 34:
$ gedit
Traceback (most recent call last):
File "/usr/lib64/gedit/plugins/sessionsaver/windowactivable.py", line 74, in _session_menu_action
self.load_session(session)
File "/usr/lib64/gedit/plugins/sessionsaver/windowactivable.py", line 102, in load_session
not (tab.get_document().is_untouched() and
AttributeError: 'Document' object has no attribute 'is_untouched'
$
The error with the Flatpak version from Flathub:
$ org.gnome.gedit
Gtk-Message: 11:45:33.666: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:45:33.667: Failed to load module "canberra-gtk-module"
Traceback (most recent call last):
File "/app/lib/gedit/plugins/sessionsaver/windowactivable.py", line 74, in _session_menu_action
self.load_session(session)
File "/app/lib/gedit/plugins/sessionsaver/windowactivable.py", line 102, in load_session
not (tab.get_document().is_untouched() and
AttributeError: 'Document' object has no attribute 'is_untouched'
$
Edited by Andre Klapper