Opened 17 years ago

Closed 17 years ago

#781 closed enhancement (fixed)

Python plugins installed in user's home directory

Reported by: perrygeo Owned by: perrygeo
Priority: minor: annoyance Milestone:
Component: Python plugins and bindings Version: Trunk
Keywords: plugin repository Cc: perrygeo@…
Must Fix for Release: No Platform: Debian
Platform Version: Awaiting user input: yes

Description

In discussing the idea of a plugin repository plugin (a gui allowing you to search for and install new python plugins), the major hangup is that of permissions. Many users will be running qgis as a non-privledged user and will not have write access to the system plugin directory (ie /usr/share/qgis/python/plugins )

It would be beneficial to, in addition to the system plugin directory, to allow each user their own plugin directory, preferably somewhere like ~/.qgis/python/plugins.

I've attached a patch as proof-of-concept. Here's the summary:

  • ~/.qgis/python/plugins is added to the python sys.path.
  • the application and plugin manager search both the system and the users plugin directory for the list of available plugins.

If someone could take a look at the patch and try it out, it would be greatly appreciated.

Attachments (1)

qgis_homedir_plugins.diff (4.2 KB ) - added by perrygeo 17 years ago.
patch to allow python plugins in the user's home dir

Download all attachments as: .zip

Change History (5)

comment:1 by perrygeo, 17 years ago

Cc: perrygeo@… added

by perrygeo, 17 years ago

Attachment: qgis_homedir_plugins.diff added

patch to allow python plugins in the user's home dir

comment:2 by perrygeo, 17 years ago

Type: defectenhancement

comment:3 by gsherman, 17 years ago

Test and works on both Linux and OS X

comment:4 by gsherman, 17 years ago

Resolution: fixed
Status: newclosed

Committed to HEAD

Note: See TracTickets for help on using tickets.