Move Plug-ins and Modules folders

Audio software developers forum.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Move Plug-ins and Modules folders

Post by steve » Fri Apr 30, 2010 9:15 am

On Linux the Plug-ins and Modules folders are by default only accessible with root access.
In my opinion it would be more convenient if they were in the home folder, possibly as a default in "~/.audacity-data"
It is a PITA to have to change the permissions and reinstall plug-ins after every update.

More generally this proposal is to move the plug-ins and modules folders to the same folder as Audacity Preferences.

A follow up question:
Is it possible to customise Audacity so that the plug-ins and modules folders are in my home directory (on Linux)? How would I do that?
Last edited by steve on Fri Apr 24, 2015 3:23 pm, edited 2 times in total.
Reason: thread transferred to Wiki Feature Requests - but retained on the forum as may benefit future readers
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Move Plug-ins and Modules folders

Post by Gale Andrews » Sat May 01, 2010 1:47 am

What have you updated that causes the problem - Ubuntu? I had no issues accessing existing plug-ins after updating to Ubuntu 10.04 and then installing Audacity compiled from SVN (plug-ins and nyquist folders at usr/local/share/audacity). Are you talking about installing an updated Audacity package, where the plug-ins and nyquist folders are installed to usr/share/audacity, and then losing extra plug-ins you had added there since the last package? Are such plug-ins removed?

Incidentally, neither the Audacity "1.3.12.2" package for Ubuntu 10.04, or default-configured SVN seem to produce a modules folder. (Or, I don't know where to look for it).

Richard proposed putting user plug-ins in ~/.audacity-data back in 2008, partly because of the root access problem:
http://audacity.238276.n2.nabble.com/Pe ... ml#a257330

As you see I was a bit hesitant (knowing little about Linux then) on the grounds the folder would be hidden (it doesn't show in Nautilus on Ubuntu by default). Neither the current situation (paste greyed out if you try and add to the plug-ins folder) or the proposal (the folder for plug-ins would be hidden) are ideal for novices. I guess though ~/.audacity-data is less bad on the whole... if we improve our documentation about plug-in locations for Linux.
stevethefiddle wrote:Is it possible to customise Audacity so that the plug-ins and modules folders are in my home directory (on Linux)?
Set environment variables? But I'll let a Linux Guru answer that one.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Storer
Posts: 91
Joined: Wed Mar 04, 2009 8:02 pm
Operating System: Please select

Re: Move Plug-ins and Modules folders

Post by Storer » Sat May 01, 2010 2:11 am

+1.
I'm usually using the latest nightly build, and don't want to clobber the previous version on install, so I install in a new "Program Files" folder. Then it's a PITA to move all my extra plug-ins to the new plug-ins folder. I don't want to move the standard plug-ins, in case one of them has changed since my last version download.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Move Plug-ins and Modules folders

Post by Gale Andrews » Sat May 01, 2010 7:25 am

Storer wrote:+1.
I'm usually using the latest nightly build, and don't want to clobber the previous version on install, so I install in a new "Program Files" folder. Then it's a PITA to move all my extra plug-ins to the new plug-ins folder. I don't want to move the standard plug-ins, in case one of them has changed since my last version download.
I'm not sure if Steve was suggesting moving the Plug-Ins folder to Audacity's data folder on WIndows? While that would give a per-user plug-ins folder, it would be hidden by default because it's application data, and I think that probably rules it out on WIndows. If the Audacity data folder was not hidden, you have the problem with Windows users going in there and breaking the .cfg file.

For Storer's problem, you could keep just one folder for the Nightly Builds and rename the new audacity executable before extracting it to the Nightly folder. That could be handy because you could for example compare behaviour of the current nightly with the one before by running either from your Nightly folder. If you extract the new "Plug-Ins" folder into the Nightly folder, that should update files in Plug-Ins with the same name, without messing with your other plug-ins. 7-Zip can certainly handle that OK.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Move Plug-ins and Modules folders

Post by steve » Sat May 01, 2010 12:04 pm

Gale Andrews wrote:Are you talking about installing an updated Audacity package, where the plug-ins and nyquist folders are installed to usr/share/audacity, and then losing extra plug-ins you had added there since the last package? Are such plug-ins removed?
Custom Plug-ins are lost if the old version is uninstalled as the plug-ins folder is deleted.
Custom Plug-ins are not lost if a new version of Audacity is installed over the top of the old one, but the Plug-ins folder reverts to read only, which is inconvenient for adding, removing or modifying plug-ins.
I think that custom plug-ins are lost if Audacity is updated through Synaptic though it's been a long time since I've done that and I don't remember with 100% certainty. In the Nabble thread Richard Ash confirms this is the case:

"They could put them in /usr/share/audacity/plug-ins, but the'd have to
be a system admin to do so, and they would loose them from there every
time they upgrade audacity via their package manager."


The Modules folder is not created by default, but I generally install the Nyquist Workbench, so if I'm doing a clean install then I need sudo to create the folder and paste the module. As far as I'm aware the Modules folder must currently be in the same folder as the nyquist and plug-ins folders for modules to work.

As both the Modules and Plug-ins are intended to allow Users to add their own customisations it would appear logical (and would be more convenient on Linux) for those folders to be located somewhere in the Home directory.
Gale Andrews wrote:I was a bit hesitant ... on the grounds the folder would be hidden (it doesn't show in Nautilus on Ubuntu by default).
Ctrl+H (show hidden files/folders) is a lot more user friendly than sudo.
Gale Andrews wrote:Set environment variables? But I'll let a Linux Guru answer that one.
Is there a Linux guru that we can ask?
Gale Andrews wrote: I'm not sure if Steve was suggesting moving the Plug-Ins folder to Audacity's data folder on WIndows? While that would give a per-user plug-ins folder, it would be hidden by default because it's application data, and I think that probably rules it out on WIndows. If the Audacity data folder was not hidden, you have the problem with Windows users going in there and breaking the .cfg file.
I think the case is less compelling on Windows. As you say, per user plug-ins would be nice, but for novice users, finding the correct folder in Program Files is somewhat easier than finding it in Applications Data.

On balance I think that the current location is preferable on Windows, but somewhere in the Home directory is preferable for Linux users.

Could there be an option in audacity.cfg for setting the location? I don't think it would be necessary to have an option in "Edit menu > Preferences" as it is only likely to be "advanced" users that will want or need to change it from the default, and they should be capable of safely editing the audacity.cfg file manually.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Move Plug-ins and Modules folders

Post by Gale Andrews » Sat May 01, 2010 1:20 pm

stevethefiddle wrote:
Gale Andrews wrote:I was a bit hesitant ... on the grounds the folder would be hidden (it doesn't show in Nautilus on Ubuntu by default).
Ctrl+H (show hidden files/folders) is a lot more user friendly than sudo.
.
True, though in some ways the fact the folder is invisible is worse. If you know nothing about hidden files/folders and you cannot see a folder, you have no reason to believe it's there.
stevethefiddle wrote:Is there a Linux guru that we can ask?
Richard will probably see this thread given he subscribes to [email protected]
stevethefiddle wrote: Could there be an option in audacity.cfg for setting the location? I don't think it would be necessary to have an option in "Edit menu > Preferences" as it is only likely to be "advanced" users that will want or need to change it from the default, and they should be capable of safely editing the audacity.cfg file manually.
Richard suggested in that thread using an AUDACITY_PATH environment variable on all platforms to set a custom plug-in directory. That made sense to me (more expected for Linux power users than fiddling in .cfg files).


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

waxcylinder
Forum Staff
Posts: 14684
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Move Plug-ins and Modules folders

Post by waxcylinder » Tue Jun 08, 2010 10:54 am

Thread transferred to Wiki "Pending Feature Requests Page" - but also retained on the forum but moved to "General Audio Programming" as this thread my help future firum readers.

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

Post Reply