<div dir="ltr"><div><div><div>Hi Patrick, thanks for the replay. It worked now if I set the env variable to the parent folder of my plugin.<br><br></div>Thanks.<br><br></div>Best regards,<br></div>Zhang Qun<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 16, 2017 at 6:47 PM, Patrick Dunford <span dir="ltr"><<a href="mailto:enzedrailmaps@gmail.com" target="_blank">enzedrailmaps@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>There are sometimes reasons why this method may not work (I think
      Ubuntu does have a particular limitation in this regard)</p>
    <p>One option is you can create a shortcut on the menu and pass the
      variable value in that shortcut.<br>
    </p>
    For example one of the Qgis shortcuts on the Whiskers menu in XFCE
    on my computer uses this command to start a version of Qgis that I
    built from source and installed to a different path:<br>
    <br>
    env LD_LIBRARY_PATH=/home/patrick/<wbr>apps/lib
    /home/patrick/apps/bin/qgis<br>
    <br>
    where env is passing that variable into the environment that Qgis
    starts with.<div><div class="h5"><br>
    <br>
    <div class="m_-1285017211688058039moz-cite-prefix">On 16/11/17 23:33, Zhang Qun wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>Dear all,<br>
                        <br>
                      </div>
                      I want to use the <code class="m_-1285017211688058039gmail-docutils m_-1285017211688058039gmail-literal"><span class="m_-1285017211688058039gmail-pre">QGIS_PLUGINPATH</span></code>
                      environment variable to point to the directory
                      where my plugin are located but did not manage to
                      get it work.<br>
                      <br>
                    </div>
                    I'm on Ubuntu16.04 and running QGIS 2.18.<br>
                    <br>
                  </div>
                  I set the variable in terminal by:<br>
                  $ export
                  QGIS_PLUGINPATH=~/QGIS_<wbr>Plugins/rndf-editor/<wbr>RNDFEditor/<br>
                  <br>
                </div>
                and launch the QGIS in this terminal (I guess in order
                to get the variable effective I have to run within the
                terminal right?)<br>
                <br>
              </div>
              $ qgis<br>
              <br>
            </div>
            But my plugin still did not get to show under the manu
            Plugin.<br>
            <br>
          </div>
          Can anyone advise me the correct way to do it? Thanks.</div>
        <div><br>
        </div>
        <div>Best regards,</div>
        <div>Zhang Qun<br>
        </div>
      </div>
      <br>
      <fieldset class="m_-1285017211688058039mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
QGIS-Developer mailing list
<a class="m_-1285017211688058039moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="m_-1285017211688058039moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a>
Unsubscribe: <a class="m_-1285017211688058039moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></pre>
    </blockquote>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br></blockquote></div><br></div>