Extend plugin path via command line

This forum is about all development around libVLC.
kostyan
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Jun 2012 12:07
VLC version: 2.1.0-git
Operating System: Linux
Location: Berlin, Germany

Extend plugin path via command line

Postby kostyan » 26 Oct 2012 23:45

Is it possible to provide VLC an additional folder where to look for plugins via command line? Or even to provide a path to a specific plugin file? The only related options I found in the help output and in the forum are --plugin-path and --data-path but both seem to be deprecated.
Konstantin Miller
Technische Universität Berlin

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Extend plugin path via command line

Postby Jean-Baptiste Kempf » 27 Oct 2012 17:23

You should set an ENV variable
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

kostyan
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Jun 2012 12:07
VLC version: 2.1.0-git
Operating System: Linux
Location: Berlin, Germany

Re: Extend plugin path via command line

Postby kostyan » 30 Oct 2012 08:15

As far as I see it, vlc.c overwrites the content of the environment variable VLC_PLUGIN_PATH in line 134.
Konstantin Miller
Technische Universität Berlin

Rémi Denis-Courmont
Developer
Developer
Posts: 15280
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Extend plugin path via command line

Postby Rémi Denis-Courmont » 30 Oct 2012 08:47

It does not.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kostyan
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Jun 2012 12:07
VLC version: 2.1.0-git
Operating System: Linux
Location: Berlin, Germany

Re: Extend plugin path via command line

Postby kostyan » 30 Oct 2012 09:34

Am I missing something? In vlc.c, line 134, this happens:

#ifdef TOP_BUILDDIR
setenv ("VLC_PLUGIN_PATH", TOP_BUILDDIR"/modules", 1).
setenv ("VLC_DATA_PATH", TOP_SRCDIR"/share", 1);
#endif

man setenv: The setenv() function adds the variable name to the environment with the value value, if name does not already exist. If name does exist in the environment, then its value is changed to value if overwrite is nonzero; if overwrite is zero, then the value of name is not changed.
Konstantin Miller
Technische Universität Berlin

Rémi Denis-Courmont
Developer
Developer
Posts: 15280
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Extend plugin path via command line

Postby Rémi Denis-Courmont » 30 Oct 2012 10:01

ifdef...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kostyan
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Jun 2012 12:07
VLC version: 2.1.0-git
Operating System: Linux
Location: Berlin, Germany

Re: Extend plugin path via command line

Postby kostyan » 30 Oct 2012 10:55

Sure, but TOP_BUILDDIR is set when you compile from GIT.
Konstantin Miller
Technische Universität Berlin

Rémi Denis-Courmont
Developer
Developer
Posts: 15280
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Extend plugin path via command line

Postby Rémi Denis-Courmont » 30 Oct 2012 16:38

Of course, it is. The static VLC build is meant to debug the git tree and its plugins.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kostyan
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Jun 2012 12:07
VLC version: 2.1.0-git
Operating System: Linux
Location: Berlin, Germany

Re: Extend plugin path via command line

Postby kostyan » 30 Oct 2012 17:29

Ok, I see. That means that with VLC built from GIT there is no way to add a plugin from outside the tree, right?
Konstantin Miller
Technische Universität Berlin

Rémi Denis-Courmont
Developer
Developer
Posts: 15280
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Extend plugin path via command line

Postby Rémi Denis-Courmont » 30 Oct 2012 17:40

That question means nothing. The source code does what you make it do.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests