2014-12-01 20:55:28 +01:00
|
|
|
#!/usr/bin/env python3
|
2012-04-15 11:59:43 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2013-03-02 03:18:11 +01:00
|
|
|
"""MPDCoverGrid (GTK version) is a client for the Music Player Daemon, focused on albums instead of single tracks."""
|
2012-04-15 11:59:43 +02:00
|
|
|
|
2013-03-02 03:18:11 +01:00
|
|
|
__author__ = "coderkun"
|
|
|
|
__email__ = "<olli@coderkun.de>"
|
|
|
|
__license__ = "GPL"
|
2013-10-16 15:30:28 +02:00
|
|
|
__version__ = "0.4"
|
2013-03-02 03:18:11 +01:00
|
|
|
__status__ = "Development"
|
2012-04-15 11:59:43 +02:00
|
|
|
|
|
|
|
|
2013-03-01 15:27:27 +01:00
|
|
|
|
2012-04-16 01:31:38 +02:00
|
|
|
|
2013-10-16 15:30:28 +02:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2013-03-02 03:38:13 +01:00
|
|
|
from gi.repository import Gtk, Gdk, GObject
|
2012-04-16 01:31:38 +02:00
|
|
|
|
2013-10-16 15:30:28 +02:00
|
|
|
from gui import gtk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Set environment
|
|
|
|
srcdir = os.path.abspath(os.path.join(os.path.dirname(gtk.__file__), '..'))
|
|
|
|
if not os.environ.get('GSETTINGS_SCHEMA_DIR'):
|
2014-12-01 20:55:28 +01:00
|
|
|
os.environ['GSETTINGS_SCHEMA_DIR'] = os.path.join(srcdir, 'data')
|
2013-10-16 15:30:28 +02:00
|
|
|
|
|
|
|
|
2012-04-15 11:59:43 +02:00
|
|
|
|
|
|
|
|
2014-12-01 20:55:28 +01:00
|
|
|
def start():
|
|
|
|
app = gtk.Application()
|
|
|
|
exit_status = app.run(sys.argv)
|
|
|
|
sys.exit(exit_status)
|
|
|
|
|
2012-04-15 11:59:43 +02:00
|
|
|
|
2014-12-01 20:55:28 +01:00
|
|
|
if __name__ == "__main__":
|
|
|
|
# Start application
|
|
|
|
start()
|