diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-25 00:45:27 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-05-19 03:43:28 +0200 |
commit | 191163592fe7c1af9319c1d226c4b766f0a32e7b (patch) | |
tree | b0fec5487ba90b6ba89ed8c125a340b28095f0b0 /desktop | |
parent | d94a06a873e7e081cacaf918fa49ef61ef560804 (diff) |
executable names on linux and windows are different
Also use different user agent strings.
Change-Id: I047e743f2ea13ee5ea6bff1cb5d6d86ca2ac6417
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/updater.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/desktop/source/app/updater.cxx b/desktop/source/app/updater.cxx index 0ca03bc9de9e..5b4b5c1ebac3 100644 --- a/desktop/source/app/updater.cxx +++ b/desktop/source/app/updater.cxx @@ -38,17 +38,22 @@ class error_updater : public std::exception { }; -static const char kUserAgent[] = "UpdateChecker/1.0 (Linux)"; +#ifdef UNX +static const char kUserAgent[] = "LibreOffice UpdateChecker/1.0 (Linux)"; +#else +static const char kUserAgent[] = "LibreOffice UpdateChecker/1.0 (unknown platform)"; +#endif #ifdef UNX const char* pUpdaterName = "updater"; +const char* pSofficeExeName = "soffice"; #elif defined(WNT) const char* pUpdaterName = "updater.exe"; +const char* pSofficeExeName = "soffice.exe"; #else #error "Need implementation" #endif -const char* pSofficeExeName = "soffice"; void CopyFileToDir(const OUString& rTempDirURL, const OUString rFileName, const OUString& rOldDir) { |