Skip to content

Commit

Permalink
[virtualbox:1.6] Add info on vboxapi requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSchneid3r committed Mar 1, 2024
1 parent cd79024 commit faeddaf
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions virtualbox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2024 Manuel Schneider
"""
This plugin is based on [virtualbox-python](https://pypi.org/project/virtualbox/) and needs the 'vboxapi' module which
is part of the VirtualBox SDK. Some distributions package the SDK, e.g. Arch has
[virtualbox-sdk](https://archlinux.org/packages/extra/x86_64/virtualbox-sdk/).
"""

import virtualbox
from virtualbox.library import LockType, MachineState

from albert import *

md_iid = '2.0'
md_version = "1.5"
md_iid = '2.2'
md_version = "1.6"
md_name = "VirtualBox"
md_description = "Manage your VirtualBox machines"
md_license = "MIT"
Expand Down Expand Up @@ -67,6 +72,17 @@ def __init__(self):
PluginInstance.__init__(self, extensions=[self])
self.iconUrls = ["xdg:virtualbox", ":unknown"]

def configWidget(self):
return [
{
'type': 'label',
'text': __doc__.strip(),
'widget_properties': {
'textFormat': 'Qt::MarkdownText'
}
}
]

def handleTriggerQuery(self, query):
items = []
pattern = query.string.strip().lower()
Expand Down

0 comments on commit faeddaf

Please sign in to comment.