gedit-restore-tabs
gedit-restore-tabs copied to clipboard
How to make it work on Ubuntu 14.04
Ubuntu 14.04 is using Gedit 3.10, and this plugin is not working, due: python loader wrong version, and one missing checking.
1 - First, fix python loader version at ~/.local/share/gedit/plugins/restoretabs.plugin
:
Change:
[Plugin]
Loader=python
To:
[Plugin]
Loader=python3
2 - Then on ~/.local/share/gedit/plugins/restoretabs.py
line 61:
Change:
if tab.get_state() == 0 and not tab.get_document().get_location():
To:
if tab and tab.get_state() == 0 and not tab.get_document().get_location():
Working ! Thanks :)
Ok, I created a fork with this fix and updated instructions: https://github.com/raelgc/gedit-restore-tabs
thank you @raelgc I was getting this error when enabling the plugin in gedit preferences:
(gedit:17251): libpeas-WARNING **: The 'python' plugin loader has not been enabled
your fork works fine
@fedelibre yw!
When the plugin was installed with the gedit-gmate package, just the second change is needed, and the file path is /usr/lib/gedit/plugins/restoretabs/restoretabs.py.
This resolved the issue for me on Ubuntu 16.04.