[Libreoffice-commits] core.git: vcl/unx
Stephan Bergmann
sbergman at redhat.com
Thu Sep 5 02:12:42 PDT 2013
vcl/unx/generic/desktopdetect/desktopdetector.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 379a53017447fbf2a459f82ae8905b6683e80e8d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Sep 5 11:08:23 2013 +0200
Consistently use rtl_getAppCommandArg here
...2a9c1d1a75b7d4e79dfbc6be3dada1a1e959e58e "Make dialogs fail with an exception
in headless tests" missed one of the osl_getCommandArg calls, which can lead to
problems when there are any -env: arguments preceeding the --display argument.
Reported by renduly on IRC.
Change-Id: I98dd24be840d561dce51034088f3e44adff9f2ff
diff --git a/vcl/unx/generic/desktopdetect/desktopdetector.cxx b/vcl/unx/generic/desktopdetect/desktopdetector.cxx
index d2d91de..6edf8d1 100644
--- a/vcl/unx/generic/desktopdetect/desktopdetector.cxx
+++ b/vcl/unx/generic/desktopdetect/desktopdetector.cxx
@@ -318,7 +318,7 @@ DESKTOP_DETECTOR_PUBLIC DesktopType get_desktop_environment()
rtl_getAppCommandArg( i, &aParam.pData );
if( i < nParams-1 && (aParam == "-display" || aParam == "--display" ) )
{
- osl_getCommandArg( i+1, &aParam.pData );
+ rtl_getAppCommandArg( i+1, &aParam.pData );
aBParm = OUStringToOString( aParam, osl_getThreadTextEncoding() );
pDisplayStr = aBParm.getStr();
break;
More information about the Libreoffice-commits
mailing list