Short version. On my machine, the doubled backslash makes Audacity
not find anyqwhere to store temp files, in the absence of audacity.cfg.
With no backslashes, the same problem mostly but not always happens,
so I am seeing some moonphase behaviour.
With AudacityApp.cpp as it is now in HEAD (one backslash) I don't seem
to have a problem.
Post by Paul LicameliIf the backslash is necessary, it might be correct to double the backslash
character inside the quoted string in C++ source code, to get the correct
effect, and remove the compilation warning about something questionable.
If I double the backslash, the warning is removed but with no audacity.cfg
present, Audacity reliably says on launch that it can't find anywhere to
store temporary files.
If I just have a space between "Application" and "Support" and launch
Audacity built with Xcode IDE from the DerivedData folder, no audacity.cfg
present, there seems no problem. I tried four times.
If instead I build with xcodebuild so as to package and install Audacity,
still with the space between "Application" and "Support", then launch
Audacity with no audacity.cfg present from the tmp directory where the
install goes, then (almost always) Audacity says it cannot find
anywhere to store temp files. This was why I thought the escape was
necessary but I only tried it twice when I originally made that assumption.
Audacity did launch on try 9 out of 10 with the correct directory listed
in Directories Preferences.
I also tried replacing Audacity.app in tmp with the Audacity.app
from DerivedData. Audacity launched two times in five.
If instead I delete the entire
"/Users/gale/Library/Application Support/audacity" folder, then
(mostly) Audacity launches, but not always.
When I delete that entire folder and Audacity says it cannot find
anywhere for temp files, sometimes it actually creates
/Users/gale/Library/Application Support/audacity/SessionData
with a lockfile.
All I can say for sure is that with the escaped version, I have
not yet had a launch problem.
I suggest someone else tries it, building release configuration.
Perhaps unescaped space does work but some other Widgets
bug is being provoked by it?
Are there other easily testable cases where wxMac is already
asked to handle a space in a path?
Gale
Post by Paul LicameliPRL
Post by Gale AndrewsIt's not a typo. The backslash was necessary for the Mac to
http://bugzilla.audacityteam.org/show_bug.cgi?id=1220#c10
i.e. enclosing in double quotes does not work.
Single quotes - another method on Mac of quoting a name
with spaces - does not work in bash scripts on my Mac, but
I haven't tried single quotes inside double quotes or your
suggested double backslash for what we want to do.
If we change it, that would reopen the P1 until retested, of
course.
Gale
I think it is just a typo and there should not be a '\' at all. Space is a
valid character.
--James.
The line is
defaultTempDir.Printf(wxT("%s/Library/Application\
Support/audacity/SessionData"),
tmpDirLoc.c_str());
The warning is
Unknown escape sequence '\ '
I am not sure whether the correct thing requires removing the \ or adding
another \ .
PRL
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel