GNOME Bugzilla – Bug 462338
[plugin] python console
Last modified: 2019-02-22 03:17:09 UTC
Adapted from gedit's epiphany's adaptation. See attachment.
Created attachment 92829 [details] pythonconsole plugin Note that this exposes a bug that makes eog keep running after being closed.
Comment on attachment 92829 [details] pythonconsole plugin Setting correct MIME type.
Comment on attachment 92829 [details] pythonconsole plugin Sorry.
Just tried it and I get this output upon unloading: Traceback (most recent call last):
+ Trace 164936
ui_manager.remove_ui(ui_id)
Created attachment 115696 [details] [review] [PATCH] Python Console plugin The python console plugin, still rough edges, but updated to svn trunk. --- plugins/pythonconsole/Makefile.am | 16 + plugins/pythonconsole/console.py | 304 ++++++++++++++++++++ .../pythonconsole.eog-plugin.desktop.in | 10 + plugins/pythonconsole/pythonconsole.py | 79 +++++ 4 files changed, 409 insertions(+), 0 deletions(-)
Created attachment 115697 [details] [review] [PATCH] Build modifications for Python Console plugin This enables the Python Console build --- configure.ac | 1 + plugins/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
Hey, updated to trunk, attached with git sweetness. It works fine again, the only issue is that the console window pops up like 20x20. Which is not good :). But, since I don't want to get blocked by freeze... what do you think?
Looks like we have a "plugins" component now. :-) Switching to it.
Well, I guess the biggest problem is that we still haven't found a solution for bug #460781 yet. We can't ship it unless eog behaves normally when using it. As a minor "optimization" it should be only built/installed if eog is actually being built with python support. See how it is done for the statusbar-date plugin. It's only added to SUBDIRS if dbus support is compiled in. But this is only minor as it won't break the build anyways.
Created attachment 128617 [details] [review] patch It's been a while that nobody comment this bug. This patch it close to fix the problem. if you deactivate the plugin before quit eog, eog quit. I know isn't fix the problem, but I just want show my code :-P.
Works pretty well now. I also tried adding a little hack/workaround locally to disable the plugin when the window that was used for activation (aka the first one) is closed. That way you can even leave it active. Makes working with multiple windows harder though. Let's see if I can push it to eog-plugins.
Just landed in the eog-plugins tree. Thanks guys: 2009-02-15 Felix Riemann <> * configure.ac: * plugins/pythonconsole/*: Add pythonconsole plugin based on the gedit plugin of the same name. Fixes bug #462338 (Diego Escalante Urrelo, Francisco Rojas). This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.