Commit 109b9f7c authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Improve showing the printer management UI on Linux with Cinnamon.

Some users with Cinnamon use gnome-control-center for native printer
management. So try launching it for Cinnamon users.

BUG=869845

Change-Id: Icbb73dd4db72c5151175015ffd8e6d0aaae76cf4
Reviewed-on: https://chromium-review.googlesource.com/1226529Reviewed-by: default avatarChristian Dullweber <dullweber@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#591308}
parent 78ec22b9
...@@ -66,13 +66,13 @@ void DetectAndOpenPrinterConfigDialog() { ...@@ -66,13 +66,13 @@ void DetectAndOpenPrinterConfigDialog() {
opened = OpenPrinterConfigDialog(kKde5KcmPrinterCommand) || opened = OpenPrinterConfigDialog(kKde5KcmPrinterCommand) ||
OpenPrinterConfigDialog(kSystemConfigPrinterCommand); OpenPrinterConfigDialog(kSystemConfigPrinterCommand);
break; break;
case base::nix::DESKTOP_ENVIRONMENT_CINNAMON:
case base::nix::DESKTOP_ENVIRONMENT_KDE3: case base::nix::DESKTOP_ENVIRONMENT_KDE3:
case base::nix::DESKTOP_ENVIRONMENT_PANTHEON: case base::nix::DESKTOP_ENVIRONMENT_PANTHEON:
case base::nix::DESKTOP_ENVIRONMENT_UNITY: case base::nix::DESKTOP_ENVIRONMENT_UNITY:
case base::nix::DESKTOP_ENVIRONMENT_XFCE: case base::nix::DESKTOP_ENVIRONMENT_XFCE:
opened = OpenPrinterConfigDialog(kSystemConfigPrinterCommand); opened = OpenPrinterConfigDialog(kSystemConfigPrinterCommand);
break; break;
case base::nix::DESKTOP_ENVIRONMENT_CINNAMON:
case base::nix::DESKTOP_ENVIRONMENT_GNOME: case base::nix::DESKTOP_ENVIRONMENT_GNOME:
case base::nix::DESKTOP_ENVIRONMENT_OTHER: case base::nix::DESKTOP_ENVIRONMENT_OTHER:
opened = OpenPrinterConfigDialog(kSystemConfigPrinterCommand) || opened = OpenPrinterConfigDialog(kSystemConfigPrinterCommand) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment