diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-06 16:00:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-09 12:16:57 +0100 |
commit | 526f80404c87a41fe46cf5694b32b469875e5c6d (patch) | |
tree | aa01f0fc4612b1427fc99cebd9f40c748e53f7fe /vcl | |
parent | 2567a8c8e2722ea56508b0e85a6fdfe3b265d595 (diff) |
Related: fdo#30763 fill in default user realname under GNOME3
i.e. recognize that gnome-shell is a gnome session
so we use gconfbackend for default settings
so that we get a default name filled in for FirstName, LastName
so that the author/editor properties of new documents gets filled in by default
out of the box
so that the last-used position in odf files gets restored for that user
Change-Id: I6630866e64414e886c80abad1ca6200ffc25b378
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/generic/desktopdetect/desktopdetector.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/unx/generic/desktopdetect/desktopdetector.cxx b/vcl/unx/generic/desktopdetect/desktopdetector.cxx index 68b3b711dd82..f33c76dafe32 100644 --- a/vcl/unx/generic/desktopdetect/desktopdetector.cxx +++ b/vcl/unx/generic/desktopdetect/desktopdetector.cxx @@ -111,8 +111,13 @@ static bool is_gnome_desktop( Display* pDisplay ) if( pProp && nType == nUTFAtom ) { OString aWMName( (sal_Char*)pProp ); - if( aWMName.equalsIgnoreAsciiCase( "gnome-panel" ) ) + if ( + (aWMName.equalsIgnoreAsciiCase("gnome-shell")) || + (aWMName.equalsIgnoreAsciiCase("gnome-panel")) + ) + { ret = true; + } } if( pProp ) XFree( pProp ); |