#1 2012-01-15 15:15:50

debugger
Member
Registered: 2007-03-17
Posts: 44

Plugin location.

Hi,

Few scenarious:

* gcstar is installed from system repository, I do not have root privileges. I have a plugin, which is located somewhere in my home (for example, in ~/.local/share/gcstar/GCPlugins/GCfilms/MyPlugin.pm). I want gcstar loads and use my personal plugin.

* gcstar is installed from system repository, I have root priviledges, and want my plugin system-wide, available for all the users. But I do not want to pollute system directories, so I want to put a plugin into /usr/local/share/gcstar/GCPlugins/GCfilms/MyPlugin.pm.

I think it would be nice if gcstar looks for plugins in several directories. For example, it could follow XDG Base Directory Specification, e. g.:

Look for plugins into $XDG_DATA_HOME (default is $HOME/.local/share) first; then go to directories listen in $XDG_DATA_DIRS (default is /usr/local/share/:/usr/share/).

(Of course, gcstar/GCPlugins/ suffix should be appended to every directory).

Any comments?

Offline

 



Should you have a problem using GCstar, you can open a bug report or request some support on GCstar forums.