[Github-comments] [geany/geany] Activate local plugin from configuration file (#1562)

fjvico notifications at xxxxx
Thu Jul 27 17:02:04 UTC 2017


@elextr @codebrainz fully understand your point, it's the user who has to enable what has been installed. But this is a particular situation, where Geany is the editor of a programming environment for children which is to be used at schools, meaning that after a fresh installation by the admin, the (normally) computer-illiterate teacher is not supposed to follow instructions to activate plugins, and the child is not intended to have access to such a thing (actually, that's the reason to use `togglebars`: to keep the menu bar away from children's' curiosity). So, precisely like `savewhenoutoffocus` is enabled, I need this plugin enabled by default.
The problem above has been fixed with a `find` and a `sed` commands that updates `geany.conf`, but now I need help to make it active by default. By now, when the program is run for the first time (after been installed), it copies `geany.conf` in a directory (from where Geany is to be configured), and it contains the line:
`active_plugins=/usr/lib/x86_64-linux-gnu/geany/geanypy.so;/usr/lib/x86_64-linux-gnu/geany/saveactions.so;/home/fjv/.toolbox//util/geany/plugins/togglebars.py;ยด
- `togglebars.pyc` is built by `python -m compileall togglebars.py`, placing the py file in the same directory plus `plugins` folder, and
- `togglebars.on` is just copied in the same `plubins` folder.
When the environment is run, it launces Geany, it is configured from this directory, and I see `GeanyPy` enabled, and `Toogle bars` disabled.
What is left in the process to have it enabled by default?


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1562#issuecomment-318424149
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170727/4bdc257e/attachment.html>


More information about the Github-comments mailing list