only show debug info in development
This commit is contained in:
parent
cbf3b48903
commit
706f97d95f
@ -12,6 +12,7 @@ import dbus
|
|||||||
import dbus.mainloop.glib
|
import dbus.mainloop.glib
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
import threading
|
import threading
|
||||||
|
import os
|
||||||
from icecream import ic
|
from icecream import ic
|
||||||
from xpm_resources import palette, background, patterns
|
from xpm_resources import palette, background, patterns
|
||||||
|
|
||||||
@ -20,7 +21,6 @@ line_height = 9
|
|||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Application(wmoo.Application):
|
class Application(wmoo.Application):
|
||||||
"""
|
"""
|
||||||
Display dockapp and respond to libpurple dbus
|
Display dockapp and respond to libpurple dbus
|
||||||
@ -226,6 +226,9 @@ def main():
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
"""
|
"""
|
||||||
|
if os.environ.get("PRODUCTION") == "true":
|
||||||
|
ic.disable()
|
||||||
|
|
||||||
app = Application(font_name='5x8',
|
app = Application(font_name='5x8',
|
||||||
margin = 3,
|
margin = 3,
|
||||||
bg=0,
|
bg=0,
|
||||||
|
Loading…
Reference in New Issue
Block a user