50 lines
922 B
Python
50 lines
922 B
Python
#! /usr/bin/python
|
|
|
|
# To change this template, choose Tools | Templates
|
|
# and open the template in the editor.
|
|
|
|
__author__="bjschuma"
|
|
__date__ ="$Dec 21, 2009 9:18:52 PM$"
|
|
|
|
|
|
global name, app, type, path, opt
|
|
name = "ocarina"
|
|
app = "ocarina"
|
|
type = "core"
|
|
path = ""
|
|
opt = []
|
|
|
|
import settings
|
|
from bt.message import write
|
|
from bt.file import *
|
|
import bt.proc
|
|
from manager import manager
|
|
from tools import database
|
|
from tools import gstreamer
|
|
|
|
|
|
settings.set("user", join(settings.get("user"),".ocarina2"))
|
|
mkdir(settings.get("user"))
|
|
settings.set("appname","ocarina")
|
|
|
|
|
|
# Called every time the plugin is enabled
|
|
def open():
|
|
write("Ocarina has been started",True)
|
|
database.init()
|
|
gstreamer.init()
|
|
|
|
|
|
# Called every time the plugin is stopped
|
|
def close():
|
|
write("Ocarina has been stopped",True)
|
|
|
|
|
|
def help():
|
|
return "A simple music player"
|
|
|
|
|
|
# Called when the plugin needs to perform some action
|
|
def run(args=None):
|
|
pass
|