Re: [QGIS-Developer] pyqgis - canUninstallPlugin

2019-10-14 Thread Régis Haubourg
Hi Jacky,
just put your plugin dir on a readonly file system.
Régis

Le lun. 14 oct. 2019 à 09:25, Etienne Trimaille
 a écrit :
>
> Hi,
>
> I'm adding back the QGIS dev mailing list.
>
> Le lun. 14 oct. 2019 à 08:29, VOLPES-EXT, Jacky 
>  a écrit :
>>
>> I didn’t share any code because I don’t know how to be more clear… :/
>
>
> You said your code is not working and/or not called. So without seing it, it 
> was confusing ;-)
>
>>
>> The objective would be to prevent the plugin to be uninstalled in our 
>> specific company context :
>>
>> I want every user to have a specific set of plugins already installed in 
>> their QGis environment so they don’t have to manage installations or updates 
>> of plugins (thanks to the QGIS_PLUGINPATH environment var, where I will 
>> install and update the plugins for them).
>>
>>
>>
>> But as a result, if one user decides to uninstall a plugin, it will be 
>> uninstalled for every user.
>
>
> Seems weird to change every plugin you are going to install for them by 
> adding this flag.
> So you are using a network share for all installed plugins?
> Why not a read only directory?
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] pyqgis - canUninstallPlugin

2019-10-14 Thread Etienne Trimaille
Hi,

I'm adding back the QGIS dev mailing list.

Le lun. 14 oct. 2019 à 08:29, VOLPES-EXT, Jacky <
jacky.volpes-...@canal-de-provence.com> a écrit :

> I didn’t share any code because I don’t know how to be more clear… :/
>

You said your code is not working and/or not called. So without seing it,
it was confusing ;-)


> The objective would be to prevent the plugin to be uninstalled in our
> specific company context :
>
> I want every user to have a specific set of plugins already installed in
> their QGis environment so they don’t have to manage installations or
> updates of plugins (thanks to the QGIS_PLUGINPATH environment var, where I
> will install and update the plugins for them).
>
>
>
> But as a result, if one user decides to uninstall a plugin, it will be
> uninstalled for every user.
>

Seems weird to change every plugin you are going to install for them by
adding this flag.
So you are using a network share for all installed plugins?
Why not a read only directory?

>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer