<p><a href="https://github.com/elextr" class="user-mention">@elextr</a> <a href="https://github.com/codebrainz" class="user-mention">@codebrainz</a> 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 <code>togglebars</code>: to keep the menu bar away from children's' curiosity). So, precisely like <code>savewhenoutoffocus</code> is enabled, I need this plugin enabled by default.<br>
The problem above has been fixed with a <code>find</code> and a <code>sed</code> commands that updates <code>geany.conf</code>, 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 <code>geany.conf</code> in a directory (from where Geany is to be configured), and it contains the line:<br>
`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;´</p>
<ul>
<li><code>togglebars.pyc</code> is built by <code>python -m compileall togglebars.py</code>, placing the py file in the same directory plus <code>plugins</code> folder, and</li>
<li><code>togglebars.on</code> is just copied in the same <code>plubins</code> folder.<br>
When the environment is run, it launces Geany, it is configured from this directory, and I see <code>GeanyPy</code> enabled, and <code>Toogle bars</code> disabled.<br>
What is left in the process to have it enabled by default?</li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1562#issuecomment-318424149">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ4oBbWBAPKKDQQVvOaIikDhY3FT3ks5sSMKMgaJpZM4Okf3i">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ89UWo5jnXdusUoBi4Vs6vwWVOX_ks5sSMKMgaJpZM4Okf3i.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1562#issuecomment-318424149"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@fjvico in #1562: @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.\r\nThe 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:\r\n`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;´\r\n- `togglebars.pyc` is built by `python -m compileall togglebars.py`, placing the py file in the same directory plus `plugins` folder, and\r\n- `togglebars.on` is just copied in the same `plubins` folder.\r\nWhen the environment is run, it launces Geany, it is configured from this directory, and I see `GeanyPy` enabled, and `Toogle bars` disabled.\r\nWhat is left in the process to have it enabled by default?\r\n"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1562#issuecomment-318424149"}}}</script>