Opened 14 years ago

Closed 14 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 14 years ago.
patch to allow python plugins in the user's home dir

Download all attachments as: .zip

Change History (5)

comment:1 Changed 14 years ago by perrygeo

Cc: perrygeo@… added

Changed 14 years ago by perrygeo

Attachment: qgis_homedir_plugins.diff added

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

comment:2 Changed 14 years ago by perrygeo

Type: defectenhancement

comment:3 Changed 14 years ago by gsherman

Test and works on both Linux and OS X

comment:4 Changed 14 years ago by gsherman

Resolution: fixed
Status: newclosed

Committed to HEAD

Note: See TracTickets for help on using tickets.