chromium/chrome/browser/printing/printer_manager_dialog_linux.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/printing/printer_manager_dialog.h"

#include <memory>

#include "base/containers/span.h"
#include "base/environment.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/nix/xdg_util.h"
#include "base/process/kill.h"
#include "base/process/launch.h"
#include "base/task/thread_pool.h"
#include "base/threading/scoped_blocking_call.h"

namespace {

// Older KDE shipped with system-config-printer-kde, which was buggy. Thus do
// not bother with system-config-printer-kde and just always use
// system-config-printer.
// https://bugs.kde.org/show_bug.cgi?id=271957.
constexpr const char* kSystemConfigPrinterCommand[] =;

// Newer KDE has an improved print manager.
constexpr const char* kKde4KcmPrinterCommand[] =;
constexpr const char* kKde5KcmPrinterCommand[] =;
constexpr const char* kKde6KcmPrinterCommand[] =;

// Older GNOME printer manager. Used as a fallback.
constexpr const char* kGnomeControlCenterPrintersCommand[] =;

// Print manager in Deepin OS named "dde-printer".
constexpr const char* kDeepinPrinterCommand[] =;

// Returns true if the dialog was opened successfully.
bool OpenPrinterConfigDialog(base::span<const char* const> command) {}

// Detect the command based on the deskop environment and open the printer
// manager dialog.
void DetectAndOpenPrinterConfigDialog() {}

}  // namespace

namespace printing {

void PrinterManagerDialog::ShowPrinterManagerDialog() {}

}  // namespace printing