Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 8e3635b

Browse files
[goldendict] v3
1 parent 1a09f38 commit 8e3635b

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

goldendict/__init__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@
66

77
from albert import *
88

9-
md_iid = '2.3'
10-
md_version = '1.5'
11-
md_name = 'GoldenDict'
12-
md_description = 'Quick access to GoldenDict'
13-
md_license = 'MIT'
14-
md_url = 'https://github.com/albertlauncher/python/tree/main/goldendict'
15-
md_authors = '@manuelschneid3r'
9+
md_iid = "3.0"
10+
md_version = "2.0"
11+
md_name = "GoldenDict"
12+
md_description = "Quick access to GoldenDict"
13+
md_license = "MIT"
14+
md_url = "https://github.com/albertlauncher/python/tree/main/goldendict"
15+
md_authors = "@manuelschneid3r"
1616

1717

1818
class Plugin(PluginInstance, TriggerQueryHandler):
1919

2020
def __init__(self):
2121
PluginInstance.__init__(self)
22-
TriggerQueryHandler.__init__(
23-
self, self.id, self.name, self.description,
24-
defaultTrigger='gd '
25-
)
22+
TriggerQueryHandler.__init__(self)
2623

2724
commands = [
2825
'/var/lib/flatpak/exports/bin/org.goldendict.GoldenDict', # flatpak
@@ -43,6 +40,9 @@ def __init__(self):
4340
warning(f"Multiple GoldenDict commands found: {', '.join(executables)}")
4441
warning(f"Using {self.executable}")
4542

43+
def defaultTrigger(self):
44+
return "gd "
45+
4646
def handleTriggerQuery(self, query):
4747
q = query.string.strip()
4848
query.add(

0 commit comments

Comments
 (0)