This file is indexed.

/usr/share/apertium/dbus-1/service.py is in apertium-dbus 0.1-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import gobject

import dbus
import dbus.service 
import dbus.mainloop.glib

dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
method = dbus.service.method


class Service(dbus.service.Object):
    def __init__(self, name):
        dbus.service.Object.__init__(self, dbus.SessionBus(), name)


def make_proxy(path, interface):
    slash_index = path.index('/')
    dbus_name = path[:slash_index]
    obj_name  = path[slash_index:]

    return dbus.Interface(dbus.SessionBus().get_object(dbus_name, obj_name), interface)


def add_signal_receiver(*args, **kwargs):
    dbus.SessionBus().add_signal_receiver(*args, **kwargs)


mainloop = None

def quit():
    mainloop.quit()

def run_as(name):
    global mainloop
    
    name = dbus.service.BusName(name, dbus.SessionBus())    
    mainloop = gobject.MainLoop()
    mainloop.run()