Default location of preferences has changed on Linux

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Default location of preferences has changed on Linux

Stevethefiddle
The default location for preferences on Linux is documented as:
~/.audacity-data/
which is where it has been for many years.

Testing a fresh debug installation of Audacity 2.1.3 alpha on Debian
Stable, the default location is now:
~/.Audacity-data/

Note that the default Linux file system is case sensitive.

Steve

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Audacity-quality mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-quality
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Default location of preferences has changed on Linux

Stevethefiddle
This change means that Audacity 2.1.3 fails to read preferences from
previously installed versions.

Steve

On 18 January 2017 at 13:58, Steve the Fiddle <[hidden email]> wrote:

> The default location for preferences on Linux is documented as:
> ~/.audacity-data/
> which is where it has been for many years.
>
> Testing a fresh debug installation of Audacity 2.1.3 alpha on Debian
> Stable, the default location is now:
> ~/.Audacity-data/
>
> Note that the default Linux file system is case sensitive.
>
> Steve

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Audacity-quality mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-quality
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Default location of preferences has changed on Linux

James Crook
Possibly caused by this fix (for Mac) so that Quit has the right capitalisation?
https://github.com/audacity/audacity/commit/e65d0ca77d4c95b06a51f9419bedbfc24da8d76b

Seems best to make that conditional on WXMAC?
#if defined(__WXMAC__)
    wxString appName = wxT('Audacity');
#else
    wxString appName = wxT('audacity');
#endif

An alternative is at line 116 of FileNames.cpp
#if defined( __WXGTK__ )
         dataDir = wxStandardPaths::Get().GetUserDataDir() + wxT("-data");
         // SetAppName has set us with Audacity with capital A.
         // That is what we want (in Mac, for menus).
         // For GTK we want lower case name in the path.
         dataDir.Replace("Audacity-data", "audacity-data" );
#else
         dataDir = wxStandardPaths::Get().GetUserDataDir();
#endif

I think the latter is hackier.

--James.




On 1/18/2017 2:00 PM, Steve the Fiddle wrote:
This change means that Audacity 2.1.3 fails to read preferences from
previously installed versions.

Steve

On 18 January 2017 at 13:58, Steve the Fiddle [hidden email] wrote:
The default location for preferences on Linux is documented as:
~/.audacity-data/
which is where it has been for many years.

Testing a fresh debug installation of Audacity 2.1.3 alpha on Debian
Stable, the default location is now:
~/.Audacity-data/

Note that the default Linux file system is case sensitive.

Steve
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Audacity-quality mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-quality




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Audacity-quality mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-quality
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Default location of preferences has changed on Linux

Stevethefiddle
Bug logged here:
http://bugzilla.audacityteam.org/show_bug.cgi?id=1577

Steve

On 18 January 2017 at 15:07, James Crook <[hidden email]> wrote:

> Possibly caused by this fix (for Mac) so that Quit has the right
> capitalisation?
> https://github.com/audacity/audacity/commit/e65d0ca77d4c95b06a51f9419bedbfc24da8d76b
>
> Seems best to make that conditional on WXMAC?
> #if defined(__WXMAC__)
>     wxString appName = wxT('Audacity');
> #else
>     wxString appName = wxT('audacity');
> #endif
>
> An alternative is at line 116 of FileNames.cpp
> #if defined( __WXGTK__ )
>          dataDir = wxStandardPaths::Get().GetUserDataDir() + wxT("-data");
>          // SetAppName has set us with Audacity with capital A.
>          // That is what we want (in Mac, for menus).
>          // For GTK we want lower case name in the path.
>          dataDir.Replace("Audacity-data", "audacity-data" );
> #else
>          dataDir = wxStandardPaths::Get().GetUserDataDir();
> #endif
>
> I think the latter is hackier.
>
> --James.
>
>
>
>
>
> On 1/18/2017 2:00 PM, Steve the Fiddle wrote:
>
> This change means that Audacity 2.1.3 fails to read preferences from
> previously installed versions.
>
> Steve
>
> On 18 January 2017 at 13:58, Steve the Fiddle <[hidden email]>
> wrote:
>
> The default location for preferences on Linux is documented as:
> ~/.audacity-data/
> which is where it has been for many years.
>
> Testing a fresh debug installation of Audacity 2.1.3 alpha on Debian
> Stable, the default location is now:
> ~/.Audacity-data/
>
> Note that the default Linux file system is case sensitive.
>
> Steve
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Audacity-quality mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/audacity-quality
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Audacity-quality mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/audacity-quality
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Audacity-quality mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-quality
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Default location of preferences has changed on Linux

Gale
Administrator
In reply to this post by James Crook
On 18 January 2017 at 15:07, James Crook <[hidden email]> wrote:

> Possibly caused by this fix (for Mac) so that Quit has the right
> capitalisation?
> https://github.com/audacity/audacity/commit/e65d0ca77d4c95b06a51f9419bedbfc24da8d76b
>
> Seems best to make that conditional on WXMAC?
> #if defined(__WXMAC__)
>     wxString appName = wxT('Audacity');
> #else
>     wxString appName = wxT('audacity');
> #endif

That would still mean those with case-sensitive file systems on Mac
would lose their settings (not such a big problem as on Linux, but
does not seem the correct solution).

Likewise the alternative FileNames.cpp fix proposed below would
have to be for Mac too, to be a complete fix.

Why was the AUDACITY_NAME #define changed to lower case,
which was the cause of bug 1538?


Gale



> An alternative is at line 116 of FileNames.cpp
> #if defined( __WXGTK__ )
>          dataDir = wxStandardPaths::Get().GetUserDataDir() + wxT("-data");
>          // SetAppName has set us with Audacity with capital A.
>          // That is what we want (in Mac, for menus).
>          // For GTK we want lower case name in the path.
>          dataDir.Replace("Audacity-data", "audacity-data" );
> #else
>          dataDir = wxStandardPaths::Get().GetUserDataDir();
> #endif
>
> I think the latter is hackier.
>
> --James.
>
>
>
>
>
> On 1/18/2017 2:00 PM, Steve the Fiddle wrote:
>
> This change means that Audacity 2.1.3 fails to read preferences from
> previously installed versions.
>
> Steve
>
> On 18 January 2017 at 13:58, Steve the Fiddle <[hidden email]>
> wrote:
>
> The default location for preferences on Linux is documented as:
> ~/.audacity-data/
> which is where it has been for many years.
>
> Testing a fresh debug installation of Audacity 2.1.3 alpha on Debian
> Stable, the default location is now:
> ~/.Audacity-data/
>
> Note that the default Linux file system is case sensitive.
>
> Steve
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Audacity-quality mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/audacity-quality
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Audacity-quality mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/audacity-quality
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Audacity-quality mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-quality
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Default location of preferences has changed on Linux

Peter Sampson-2
In reply to this post by Stevethefiddle
An oddness in the 4Jan Mac build 51f91f3
the last one before James' change for Bug 1538

while it has "Hide audacity" and "Quit audacity" uncapitalized

"About Audacity" was capitalized

Peter

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Audacity-quality mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-quality
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Default location of preferences has changed on Linux

Stevethefiddle
In reply to this post by Gale
With a fresh installation of Audacity on Linux, there are no
Equalization presets.

EQDefaultCurves.xml is correctly written to
/usr/local/share/audacity/
but Audacity is attempting to read it from
/usr/local/share/Audacity/

Steve

On 18 January 2017 at 16:55, Gale Andrews <[hidden email]> wrote:

> On 18 January 2017 at 15:07, James Crook <[hidden email]> wrote:
>> Possibly caused by this fix (for Mac) so that Quit has the right
>> capitalisation?
>> https://github.com/audacity/audacity/commit/e65d0ca77d4c95b06a51f9419bedbfc24da8d76b
>>
>> Seems best to make that conditional on WXMAC?
>> #if defined(__WXMAC__)
>>     wxString appName = wxT('Audacity');
>> #else
>>     wxString appName = wxT('audacity');
>> #endif
>
> That would still mean those with case-sensitive file systems on Mac
> would lose their settings (not such a big problem as on Linux, but
> does not seem the correct solution).
>
> Likewise the alternative FileNames.cpp fix proposed below would
> have to be for Mac too, to be a complete fix.
>
> Why was the AUDACITY_NAME #define changed to lower case,
> which was the cause of bug 1538?
>
>
> Gale
>
>
>
>> An alternative is at line 116 of FileNames.cpp
>> #if defined( __WXGTK__ )
>>          dataDir = wxStandardPaths::Get().GetUserDataDir() + wxT("-data");
>>          // SetAppName has set us with Audacity with capital A.
>>          // That is what we want (in Mac, for menus).
>>          // For GTK we want lower case name in the path.
>>          dataDir.Replace("Audacity-data", "audacity-data" );
>> #else
>>          dataDir = wxStandardPaths::Get().GetUserDataDir();
>> #endif
>>
>> I think the latter is hackier.
>>
>> --James.
>>
>>
>>
>>
>>
>> On 1/18/2017 2:00 PM, Steve the Fiddle wrote:
>>
>> This change means that Audacity 2.1.3 fails to read preferences from
>> previously installed versions.
>>
>> Steve
>>
>> On 18 January 2017 at 13:58, Steve the Fiddle <[hidden email]>
>> wrote:
>>
>> The default location for preferences on Linux is documented as:
>> ~/.audacity-data/
>> which is where it has been for many years.
>>
>> Testing a fresh debug installation of Audacity 2.1.3 alpha on Debian
>> Stable, the default location is now:
>> ~/.Audacity-data/
>>
>> Note that the default Linux file system is case sensitive.
>>
>> Steve
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Audacity-quality mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/audacity-quality
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Audacity-quality mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/audacity-quality
>>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Audacity-quality mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/audacity-quality

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Audacity-quality mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-quality
Loading...