<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import os
import subprocess

class Provider:
    def __init__(self, name, icon, description, config):
        self.name = name
        self.icon = icon
        self.description = description
        self.config = config

    async def search(self, query):
        return
        yield


def launch_command(command, shell=False):
    if os.getenv("FLATPAK_SANDBOX_DIR"):
        if shell:
            command = ["sh", "-c", command]
        subprocess.run(["flatpak-spawn", "--host"] + command)
    else:
        if shell:
            subprocess.run(command, shell=True)
        else:
            subprocess.run(command)


def xdg_open(path):
    launch_command(["xdg-open", path])


def run_desktop_entry(filename):
    launch_command(["gio", "launch", filename])
</pre></body></html>