gedit-restore-tabs icon indicating copy to clipboard operation
gedit-restore-tabs copied to clipboard

How to make it work on Ubuntu 14.04

Open raelgc opened this issue 10 years ago • 6 comments

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():

raelgc avatar Mar 29 '14 16:03 raelgc

Working ! Thanks :)

rajeshksv avatar Mar 29 '14 17:03 rajeshksv

Ok, I created a fork with this fix and updated instructions: https://github.com/raelgc/gedit-restore-tabs

raelgc avatar Apr 04 '14 13:04 raelgc

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 avatar Nov 27 '15 17:11 fedelibre

@fedelibre yw!

raelgc avatar Nov 27 '15 17:11 raelgc

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.

SuzanaK avatar Dec 17 '15 16:12 SuzanaK

This resolved the issue for me on Ubuntu 16.04.

marty331 avatar May 16 '16 10:05 marty331