Linux named notifications (#12192)

* Set name & desktop-entry on Linux notifications

* DBusMock now honors verbose mode flag

* Disable DBus Notification tests on ia32
This commit is contained in:
Charles Kerr 2018-03-12 09:33:06 +09:00 committed by GitHub
parent 9d090e00f2
commit 86af20ded0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 163 additions and 14 deletions

View file

@ -1,13 +1,22 @@
from config import is_verbose_mode
from dbusmock import DBusTestCase
import atexit
import os
import sys
def cleanup():
DBusTestCase.stop_dbus(DBusTestCase.system_bus_pid)
DBusTestCase.stop_dbus(DBusTestCase.session_bus_pid)
atexit.register(cleanup)
dbusmock_log = sys.stdout if is_verbose_mode() else open(os.devnull, 'w')
DBusTestCase.start_system_bus()
# create a mock for "org.freedesktop.login1" using python-dbusmock
# preconfigured template
(logind_mock, logind) = DBusTestCase.spawn_server_template('logind')
DBusTestCase.spawn_server_template('logind', None, dbusmock_log)
DBusTestCase.start_session_bus()
DBusTestCase.spawn_server_template('notification_daemon', None, dbusmock_log)

View file

@ -38,6 +38,7 @@ def main():
if args.verbose:
enable_verbose_mode()
os.environ['ELECTRON_ENABLE_LOGGING'] = '1'
spec_modules = os.path.join(SOURCE_ROOT, 'spec', 'node_modules')
if args.rebuild_native_modules or not os.path.isdir(spec_modules):