mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
This commit is squashed history taken out of the refresh-app-awareness-v2 branch. It aggregated most of the new D-Bus helper logic in a pair of packages. The dbusutil package contains non-silly logic to connect to the session and system bus, as well as public mocking helpers. The dbustest sub-package contains two helpers that provide dbus.Conn for testing interaction and for testing bus access. Note that I chose to leave behind one file in testutils, as it contains existing test code used by user agent code. I can do that in another pass to isolate it from this move. This code is used in feature/refresh-app-awareness-v2, for both the existing code in "snap run" and the new code in sandbox/cgroup package. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
23 lines
749 B
Go
23 lines
749 B
Go
// -*- Mode: Go; indent-tabs-mode: t -*-
|
|
|
|
/*
|
|
* Copyright (C) 2020 Canonical Ltd
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 3 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
package dbusutil
|
|
|
|
var IsSessionBusLikelyPresent = isSessionBusLikelyPresent
|