[modules/disk] Fix multi-instance disk

This commit is contained in:
Tobi-wan Kenobi 2016-11-27 18:36:45 +01:00
parent 28a4f4ab9d
commit ca64851687

View file

@ -16,7 +16,7 @@ class Module(bumblebee.module.Module):
super(Module, self).__init__(output, config, alias)
self._path = self._config.parameter("path", "/")
output.add_callback(module=self.instance(), button=1, cmd="nautilus {instance}")
output.add_callback(module=self.instance(), button=1, cmd="nautilus {}".format(self._path))
def widgets(self):
st = os.statvfs(self._path)