Disabled Gnome Search (for now)
This commit is contained in:
parent
ad25d5a50f
commit
6e8bff8493
@ -16,9 +16,15 @@ class SearchProvider:
|
|||||||
return
|
return
|
||||||
|
|
||||||
print("ALPACA D-Bus connection obtained")
|
print("ALPACA D-Bus connection obtained")
|
||||||
|
|
||||||
interface_info = self.get_interface_info()
|
interface_info = self.get_interface_info()
|
||||||
self.registration_id = self.connection.register_object(DBUS_OBJECT_PATH, interface_info, self.handle_method_call, None)
|
|
||||||
|
self.registration_id = self.connection.register_object(
|
||||||
|
DBUS_OBJECT_PATH,
|
||||||
|
interface_info,
|
||||||
|
self.handle_method_call,
|
||||||
|
None,
|
||||||
|
None
|
||||||
|
)
|
||||||
|
|
||||||
if self.registration_id > 0:
|
if self.registration_id > 0:
|
||||||
print(f"ALPACA Object registered with ID: {self.registration_id}")
|
print(f"ALPACA Object registered with ID: {self.registration_id}")
|
||||||
@ -28,28 +34,38 @@ class SearchProvider:
|
|||||||
def get_interface_info(self):
|
def get_interface_info(self):
|
||||||
print("ALPACA get_interface_info")
|
print("ALPACA get_interface_info")
|
||||||
xml = """
|
xml = """
|
||||||
<node>
|
<node>
|
||||||
<interface name='org.gnome.Shell.SearchProvider2'>
|
<interface name="org.gnome.Shell.SearchProvider2">
|
||||||
<method name='GetInitialResultSet'>
|
|
||||||
<arg type='as' name='terms' direction='in'/>
|
<method name="GetInitialResultSet">
|
||||||
<arg type='as' name='results' direction='out'/>
|
<arg type="as" name="terms" direction="in" />
|
||||||
</method>
|
<arg type="as" name="results" direction="out" />
|
||||||
<method name='GetSubsearchResultSet'>
|
</method>
|
||||||
<arg type='as' name='previous_results' direction='in'/>
|
|
||||||
<arg type='as' name='terms' direction='in'/>
|
<method name="GetSubsearchResultSet">
|
||||||
<arg type='as' name='results' direction='out'/>
|
<arg type="as" name="previous_results" direction="in" />
|
||||||
</method>
|
<arg type="as" name="terms" direction="in" />
|
||||||
<method name='GetResultMetas'>
|
<arg type="as" name="results" direction="out" />
|
||||||
<arg type='as' name='identifiers' direction='in'/>
|
</method>
|
||||||
<arg type='a{sv}' name='metas' direction='out'/>
|
|
||||||
</method>
|
<method name="GetResultMetas">
|
||||||
<method name='ActivateResult'>
|
<arg type="as" name="identifiers" direction="in" />
|
||||||
<arg type='s' name='identifier' direction='in'/>
|
<arg type="aa{sv}" name="metas" direction="out" />
|
||||||
<arg type='as' name='terms' direction='in'/>
|
</method>
|
||||||
<arg type='i' name='timestamp' direction='in'/>
|
|
||||||
</method>
|
<method name="ActivateResult">
|
||||||
</interface>
|
<arg type="s" name="identifier" direction="in" />
|
||||||
</node>
|
<arg type="as" name="terms" direction="in" />
|
||||||
|
<arg type="u" name="timestamp" direction="in" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<method name="LaunchSearch">
|
||||||
|
<arg type="as" name="terms" direction="in" />
|
||||||
|
<arg type="u" name="timestamp" direction="in" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
</node>
|
||||||
"""
|
"""
|
||||||
return Gio.DBusNodeInfo.new_for_xml(xml).interfaces[0]
|
return Gio.DBusNodeInfo.new_for_xml(xml).interfaces[0]
|
||||||
|
|
||||||
|
@ -26,14 +26,14 @@ configure_file(
|
|||||||
install_mode: 'r-xr-xr-x'
|
install_mode: 'r-xr-xr-x'
|
||||||
)
|
)
|
||||||
|
|
||||||
configure_file(
|
#configure_file(
|
||||||
input: 'alpaca_search_provider.in',
|
#input: 'alpaca_search_provider.in',
|
||||||
output: 'alpaca_search_provider',
|
#output: 'alpaca_search_provider',
|
||||||
configuration: conf,
|
#configuration: conf,
|
||||||
install: true,
|
#install: true,
|
||||||
install_dir: get_option('bindir'),
|
#install_dir: get_option('bindir'),
|
||||||
install_mode: 'r-xr-xr-x'
|
#install_mode: 'r-xr-xr-x'
|
||||||
)
|
#)
|
||||||
|
|
||||||
alpaca_sources = [
|
alpaca_sources = [
|
||||||
'__init__.py',
|
'__init__.py',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user