browser: linux: x11: use desktop filename as wm class
commita3c1e5fdd23d8c0e721e3a02fbb27e65a13446ca
authorlionel.g.landwerlin <lionel.g.landwerlin@intel.com>
Tue, 4 Aug 2015 17:58:19 +0000 (4 10:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 4 Aug 2015 18:00:40 +0000 (4 18:00 +0000)
tree42e887103c555b96289a346cd546ab80034b6c98
parentc183e0caa7e5330dcc4c023272bfc341954755b3
browser: linux: x11: use desktop filename as wm class

For modern x11 window manager to map applications (ie .desktop files)
to windows, windows need to have their WM_CLASS property set to the
.desktop filename (modulo lower/upper case).

For Chromium, this is the case. But for Google Chrome stable, this
isn't, as the .desktop filename is google-chrome.desktop, and the
WM_CLASS is set to "google-chrome-stable" (chrome's the binary
filename).

This CL changes GetProgramClassName() to return the .desktop filename
(in the case of google-chrome.desktop, it will be "google-chrome").

BUG=456542

Review URL: https://codereview.chromium.org/1259773005

Cr-Commit-Position: refs/heads/master@{#341746}
chrome/browser/shell_integration_linux.cc