Skip to content

Commit faeddaf

Browse files
[virtualbox:1.6] Add info on vboxapi requirement
1 parent cd79024 commit faeddaf

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

virtualbox/__init__.py

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
# -*- coding: utf-8 -*-
22
# Copyright (c) 2024 Manuel Schneider
3+
"""
4+
This plugin is based on [virtualbox-python](https://pypi.org/project/virtualbox/) and needs the 'vboxapi' module which
5+
is part of the VirtualBox SDK. Some distributions package the SDK, e.g. Arch has
6+
[virtualbox-sdk](https://archlinux.org/packages/extra/x86_64/virtualbox-sdk/).
7+
"""
38

49
import virtualbox
510
from virtualbox.library import LockType, MachineState
611

712
from albert import *
813

9-
md_iid = '2.0'
10-
md_version = "1.5"
14+
md_iid = '2.2'
15+
md_version = "1.6"
1116
md_name = "VirtualBox"
1217
md_description = "Manage your VirtualBox machines"
1318
md_license = "MIT"
@@ -67,6 +72,17 @@ def __init__(self):
6772
PluginInstance.__init__(self, extensions=[self])
6873
self.iconUrls = ["xdg:virtualbox", ":unknown"]
6974

75+
def configWidget(self):
76+
return [
77+
{
78+
'type': 'label',
79+
'text': __doc__.strip(),
80+
'widget_properties': {
81+
'textFormat': 'Qt::MarkdownText'
82+
}
83+
}
84+
]
85+
7086
def handleTriggerQuery(self, query):
7187
items = []
7288
pattern = query.string.strip().lower()

0 commit comments

Comments
 (0)