Commit Graph

69 Commits (9edad026f4494de1a6f02ecc3f477faa27a361ef)

Author SHA1 Message Date
Ansariel 8b6392c0aa Merge viewer-bugsplat 2018-12-16 13:04:08 +01:00
Ansariel 04e6314e77 Backed out changeset: 79a10cf7bf74 2018-12-16 11:19:53 +01:00
Nat Goodspeed 4a13657285 SL-10153: auto name{expression} declares an initializer_list
instead of a variable of type decltype(expression).

Using SHGetKnownFolderPath(FOLDERID_Fonts) in LLFontGL::getFontPathSystem()
requires new Windows #include files.

A variable with a constructor can't be declared within the braces of a switch
statement, even outside any of its case clauses.
2018-12-15 09:13:24 -05:00
Nat Goodspeed c4096f670c SL-10153: Review and rationalize fetching paths from environment.
Use LLStringUtil::getenv() or getoptenv() whenever we fetch a string that will
be used as a pathname.

Use LLFile::tmpdir() instead of getenv("TEMP").

As an added extra-special bonus, finally clean up $TMP/llcontrol-test-zzzzzz
directories that have been accumulating every time we run a local build!
2018-12-14 15:38:13 -05:00
Nat Goodspeed bb4a649b9c SL-10153: Validate APPDATA, LOCALAPPDATA by checking existence. 2018-12-11 15:47:29 -05:00
Nat Goodspeed 9479d422d4 SL-10153: Use a degenerate singleton for PRELOG log file.
The previous build declared a static std::ofstream; but the code that
determines the pathname for the log file is called so early that static
objects have not yet been constructed. Declare a pointer instead, and
instantiate it on demand.
2018-12-10 17:14:31 -05:00
Nat Goodspeed a36cd3a292 SL-10153: Try to handle non-English non-ASCII Windows APPDATA. 2018-12-08 10:30:18 -05:00
Nat Goodspeed 758e7e8df7 SL-10174: LOCALAPPDATA bad? Try SHGetFolderPath(CSIDL_LOCAL_APPDATA).
This logic is essentially copy-and-edited from the same suspenders-and-belt
concerning APPDATA and CSIDL_APPDATA for SL-10153.
2018-12-06 14:33:51 -05:00
Nat Goodspeed 7a336f63cc SL-10153: If $APPDATA isn't already good, try SHGetFolderPath().
In that case, also update $APPDATA for child processes.
2018-12-05 16:57:00 -05:00
Ansariel 6219aec54f Merge viewer-neko 2018-03-02 10:52:44 +01:00
andreykproductengine 5100abb778 MAINT-8297 Cleanup 2018-03-01 02:44:08 +02:00
Ansariel c4e18fbcaa Merge viewer-neko 2018-02-27 18:08:48 +01:00
Andrey Kleshchev e55fcbeeee MAINT-8297 Removing old ca bundle 2018-02-21 17:32:06 +00:00
andreykproductengine b2f61c0e0b MAINT-8297 Fixed "Missing CA File" message when running under debugger on windows 2018-02-15 21:48:18 +02:00
Ansariel 3a1fcb9521 Merge Firestorm LGPL 2018-01-17 20:28:45 +01:00
Oz Linden d7c8678c3a merge 5.1.0-release 2018-01-17 12:43:28 -05:00
Ansariel a32f6defc6 Undo the changes from e4ab100d3f3e - SHGetKnownFolderPath works fine here with user "Testuseäöü" - no idea if the VMP launcher screws it up though 2018-01-04 14:26:26 +01:00
Ansariel 799309f890 Merge viewer-64 2018-01-04 13:09:03 +01:00
Nat Goodspeed 5002bf5660 MAINT-8087: Use env vars from VMP for AppData\Roaming and Local.
On Windows, when logged in with a non-ASCII username, every one of the three
documented APIs -- SHGetSpecialFolderPath(), SHGetFolderPath() and
SHGetKnownFolderPath() -- fails to retrieve any pathname at all. We cannot
account for the fact that the oldest of these continues to work with the
release viewer and within a Python script (though not, curiously, from a
Python interactive session). With a non-ASCII username, they consistently fail
when called from an Alex Ivy viewer build: "The filename, directory name, or
volume label syntax is incorrect."

Empirically, with a non-ASCII username, the preset APPDATA and LOCALAPPDATA
environment variables are also useless, e.g. c:\Users\??????\AppData\Roaming
where those are, yup, actual question marks.

Empirically, the VMP is able to successfully call SHGetFolderPath() to
retrieve both AppData\Roaming and AppData\Local. Therefore, we make the VMP
set the APPDATA and LOCALAPPDATA environment variables to the UTF-8 encoded
correct pathnames. Instead of calling SHGetSomethingFolderPath() at all, make
LLDir_Win32 retrieve those environment variables.

Make LLFile::mkdir() treat "directory already exists" as a success case. Every
single call fell into one of two categories: either it didn't check success at
all, or it tested specially to exempt errno == EEXIST. Migrate that test into
mkdir(); eliminate it from call sites.

Make LLDir::append() and add() convenience functions accept variadic
arguments. Replace add(add()...) constructs, as well as clumsy concatenations
of directory names and getDirDelimiter(), with simple variadic add() calls.
2017-12-20 22:51:26 -05:00
Nat Goodspeed 867b5f5a90 MAINT-8087: #include header for CoTaskMemFree() function
which is required to free the pointer returned by SHGetKnownFolderPath().
2017-12-14 18:47:15 -05:00
Nat Goodspeed bdea97399b MAINT-8087: Use SHGetKnownFolderPath(), not SHGetSpecialFolderPath().
SHGetSpecialFolderPath() is deprecated, and empirically it appears to be
failing when the user name contains non-ASCII characters. The relevant
Microsoft documentation pages recommend calling SHGetKnownFolderPath()
instead.

Also, the SHGetSpecialFolderPath() calls had no error checking or reporting,
which is why we can only say it "appears to be" failing. Make sure that if
SHGetKnownFolderPath() fails, at least we try to tell somebody about it.
2017-12-14 17:54:06 -05:00
Ansariel 915496bbea Merge viewer-vivox 2017-03-21 22:14:02 +01:00
Oz Linden ac10109dfa update CA file name in one place I missed 2016-07-28 14:05:38 -04:00
Ansariel 3192fe832f Merge viewer-quickgraphics 2016-03-08 01:41:31 +01:00
Oz Linden c8726aba30 remove execute permission from many files that should not have it 2015-11-10 09:48:56 -05:00
Tank_Master 6babf8abd2 Merge LL 3.7.7 2014-06-09 11:29:57 -07:00
Richard Linden e340009fc5 second phase summer cleaning
replace llinfos, lldebugs, etc with new LL_INFOS(), LL_DEBUGS(), etc.
2013-08-09 17:11:19 -07:00
Graham Madarasz c19200eb00 BUG-2707 add some logging to help narrow down what part of login instance handling is going awry 2013-05-30 17:01:28 -07:00
Graham Madarasz bf6182daa8 Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
Tank_Master 718f6fa0ff merge LL 3.6.1 2013-07-10 00:23:23 -07:00
Tank_Master d4640277d0 Merge LL 3.5.3 release. 2013-07-09 16:24:58 -07:00
Aura Linden eca6199852 Ported slplugin and some other missing components for cocoa. 2012-11-12 18:06:32 -08:00
Tonya Souther 30e8da41b0 Merging Cocoa UI rework. 2013-01-05 13:55:41 -06:00
Nicky 1714747536 After merge compare FS tree agsindt V/dev.
- Adjust whitespaces/include order to make FS source look as close to V/dev as possible.
- Include source in V/dev that's not in FS and comment it out with an annotation.
2012-01-18 19:04:59 +01:00
Seth ProductEngine e213a36f70 STORM-477 Restored the backed out changeset: b62b260aa04d 2011-05-11 18:12:23 +03:00
brad kittenbrink 83a42e91d4 Ported over mani's patch for handling finding of the RO appdata dir when running from the debugger.
ported from changeset https://hg.lindenlab.com/alain/indra-common/changeset/99a9d1876e83/
reviewed by Richard.
2011-02-17 16:20:58 -08:00
Alain Linden c98996e684 fix test failure caused by dubious method for testing an empty string. 2011-02-15 12:03:45 -08:00
Richard Linden 50d21a75a7 merge 2010-11-15 15:52:54 -08:00
Oz Linden 96112dfa26 STORM-477: fixed getNextFileInDir on Windows7, improved test cases and documentation
--HG--
branch : storm-102
2010-11-03 13:33:29 -04:00
Oz Linden 330978decd STORM-480 remove (unused) LLDir::getRandomFileInDir
--HG--
branch : storm-102
2010-10-28 22:40:37 -04:00
Oz Linden 4fa6500b51 STORM-480 remove unused "wrap" parameter from LLDir::getNetFileInDir
--HG--
branch : storm-102
2010-10-28 18:09:09 -04:00
Richard Linden 7a975354a2 EXP-297 FIX Gray Bar shown on top of Skylight Viewer login screen during login on Gaikai 2010-10-25 12:35:40 -07:00
Wolfspirit 5d6aaef6e5 Don't default WorkingDir to ExecutableDir if WorkingDir has "skins" and "app_settings" folder.
This allows the use of /indra/newview as WorkingDir to change skins and settings directly.
Official LL Patch (except of the extra check for app_settings)
2011-08-12 22:21:52 +02:00
Arrehn e277b8a4ac Merge with LL 2.6.9, initial work. Needs tests, extra XUI merging with particular skins. 2011-08-04 11:53:40 -04:00
Arrehn 10e88f3891 Merge with RLVa-LL2.5.2 2011-04-09 22:24:22 -07:00
Tank_Master 6a0aad5758 Use a buffer for debug console output (improves speed on Windows when console is enabled). Ported from Singularity, patch by Shyotl 2011-03-16 09:00:53 -07:00
Richard Linden 83e0ee0f3f fixed full path not appearing in debug output for param block errors by using full path for LLDir::mAppRODataDir 2010-09-14 20:10:44 -07:00
Oz Linden 06b0d72efa Change license from GPL to LGPL (version 2.1) 2010-08-13 07:24:57 -04:00
Tofu Linden 2af183c51d remove LL_PATH_BROWSER_PROFILE
it really has no point now - it's not used by the viewer, and the webkit plugin's private space should be opaque to the viewer.
2009-12-09 13:20:25 -08:00
Tofu Linden 15fbfa5ae1 rename LL_PATH_MOZILLA_PROFILE to LL_PATH_BROWSER_PROFILE 2009-12-09 10:31:50 -08:00